// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.

Telerik.Web.DomElement.setVisible=function(e,_2){
if(!e){
return;
}
if(_2!=Telerik.Web.DomElement.getVisible(e)){
if(_2){
if(e.style.removeAttribute){
e.style.removeAttribute("display");
}else{
e.style.removeProperty("display");
}
}else{
e.style.display="none";
}
e.style.visibility=_2?"visible":"hidden";
}
};
Telerik.Web.DomElement.getVisible=function(e){
if(!e){
return false;
}
return (("none"!=TelerikCommonScripts.getCurrentStyle(e,"display"))&&("hidden"!=TelerikCommonScripts.getCurrentStyle(e,"visibility")));
};
Sys.UI.Control.overlaps=function overlaps(r1,r2){
var _6=(r1.x>=r2.x&&r1.x<=(r2.x+r2.width));
var _7=((r1.x+r1.width)>=r2.x&&(r1.x+r1.width)<=r2.x+r2.width);
var _8=((r1.x<r2.x)&&((r1.x+r1.width)>(r2.x+r2.width)));
var _9=(r1.y>=r2.y&&r1.y<=(r2.y+r2.height));
var _a=((r1.y+r1.height)>=r2.y&&(r1.y+r1.height)<=r2.y+r2.height);
var _b=((r1.y<r2.y)&&((r1.y+r1.height)>(r2.y+r2.height)));
if((_6||_7||_8)&&(_9||_a||_b)){
return true;
}
return false;
};


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();