if ("\165nd\x65fined"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }RadDockNamespace.i1n= function (left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ; RadDockNamespace.i1n.prototype.I1n= function (){return new i1n(this.left,this.top,this.width,this.height); };RadDockNamespace.i1n.prototype.l19= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; RadDockNamespace.i1n.prototype.o1o= function (ow){if (null==ow)return false; if (this ==ow)return true; return (ow.left<this.right && ow.top<this.bottom && ow.right>this.left && ow.bottom>this.top); } ; RadDockNamespace.i1n.prototype.ToString= function (){return "\x6ceft:"+this.left+"\x20"+"\x72ight:"+this.right+"\x20"+"\x74\x6fp:"+this.top+"\x20"+"b\x6f\x74tom:"+this.bottom+" "+"("+this.width+"\x20x "+this.height+"\x29"; } ; RadDockNamespace.i1n.prototype.O1o= function (ow){if (null==ow)return false; if (this ==ow)return this.I1n(); if (!this.o1o(ow))return new i1n(); var left=Math.max(this.left,ow.left); var top=Math.max(this.top,ow.top); var right=Math.min(this.right,ow.right); var bottom=Math.min(this.bottom,ow.bottom); return new i1n(left,right,right-left,bottom-top); } ; function RadGetElementRect(S){if (!S){S=this ; }var left=0; var top=0; var width=S.offsetWidth; var height=S.offsetHeight; var offsetParent,style; while (S.offsetParent){left+=(S.offsetLeft-S.scrollLeft); top+=(S.offsetTop-S.scrollTop); S=S.offsetParent; }if (S.x)left=S.x; if (S.y)top=S.y; left=RadDockNamespace.I1b(left,0); top=RadDockNamespace.I1b(top,0); width=RadDockNamespace.I1b(width,0); height=RadDockNamespace.I1b(height,0); return new RadDockNamespace.i1n(left,top,width,height); }RadDockNamespace.l1o= function (S){if (S.currentStyle){return S.currentStyle; }else {return document.defaultView.getComputedStyle(S,null); }} ;
