if ("\x75\x6e\x64\x65\x66\x69\x6e\x65\x64" == typeof(RadDockNamespace)){RadDockNamespace=new Object(); }var RadDockableObjectGripFlags= {None: 0,TitleBar: 1,Top: 2,Bottom: 4,Left: 8,Right: 020,All: 037,Auto: 040 } ; RadDockNamespace.O= {o: 0,Y: 1,I: 2,A: 3 } ; RadDockNamespace.U= {None: 0,Z: 1,Collapse: 2,z: 4,Pin: 8,X: 6,W: 7 } ; RadDockNamespace.w= {V: 1,v: 2,T: 4 } ; RadDockNamespace.t= function (S,R){RadDockNamespace.r(S); Object.Q(S,RadDockNamespace.P); Object.Q(S,RadDockNamespace.N); var i=0; S.n=R[i++]; S.M=R[i++]; S.m=R[i++]; S.L=R[i++]; S.l=R[i++]; S.K=R[i++]; var k=R[i++]; S.ParentDockingZone=k?document.getElementById(k):null; S.J=R[i++]; S.j=R[i++]; var H=R[i++]; S.h=document.getElementById(R[i++]); S.G=R[i++]; S.g=R[i++]; var F=R[i++]; var f=R[i++]; var D=R[i++]; S.d=document.getElementById(f); S.C(H); S.c(F); S.B(); if (!document.readyState||"\x63\x6f\x6d\x70\x6c\x65\x74\x65" == document.readyState){S.SaveState(); }else if (window.attachEvent){var o0= function (){S.SaveState(); } ; window.attachEvent("\x6f\x6e\x6c\x6f\x61\x64",o0); }S.h.cells[0].style.height=document.all?"\x31\x30\x30\x25": ""; if ("\x73\x74\x72\x69\x6e\x67" == typeof(D)&&D.indexOf("\x28") == -1&&D.indexOf("\x29") == -1){S.AddEventHandler("\x44\x6f\x63\x6b\x53\x74\x61\x74\x65\x43\x68\x61\x6e\x67\x65\x64",eval(D)); }if (S.O0()){if (!S.l0()){S.Pin(); }else {S.i0= true; }}} ; RadDockNamespace.P= {IsDockableObject: true ,I0:function (index){return ((this.G&index)>0); } ,o1:function (index,value){var O1=this.G; if (value){ this.G |= index; }else { this.G &= ~index; }if (O1 != this.G){ this.l1(); this.SaveState(); }} ,l1:function (){var i1=this.IsDocked(); var I1=this.I0(RadDockNamespace.w.V); var o2=this.GetCommandByName("\x43\x6f\x6c\x6c\x61\x70\x73\x65"); if (o2){o2.Enable(I1); }var O2=this.GetCommandByName("\x45\x78\x70\x61\x6e\x64"); if (O2){O2.Enable(!I1); }var l2=this.I0(RadDockNamespace.w.v); i2=this.GetCommandByName("\x55\x6e\x70\x69\x6e"); if (i2){i2.Enable(!i1&&l2); }i2=this.GetCommandByName("\x50\x69\x6e"); if (i2){i2.Enable(!i1&&!l2); }i2=this.GetCommandByName("\x43\x6c\x6f\x73\x65"); if (i2){i2.Enable( true); }} ,I2:function (){return this.I0(RadDockNamespace.w.V); } ,O0:function (){return this.I0(RadDockNamespace.w.v); } ,l0:function (){return this.I0(RadDockNamespace.w.T); } ,o3:function (){var O3=this.IsVisible(); this.o1(RadDockNamespace.w.T,!O3); if (O3){ this.B(); }if (O3&&this.i0){ this.Pin(); this.i0=null; }} ,l3:function (){if (null != this.i3){for (var i=0; i<this.i3.length; i++){ this.i3[i]=null; }} this.i3=null; this.ParentDockingZone=null; this.TitleBar=null; this.TopGrip=null; this.BottomGrip=null; this.LeftGrip=null; this.RightGrip=null; this.h=null; this.I3=null; this.j=null; this.J=null; } ,SaveState:function (){var o4=new Array(); var width=(this.IsVisible()?this.offsetWidth: this.O4); var height=(this.IsVisible()?this.offsetHeight: this.l4); o4[o4.length]=this.style.top; o4[o4.length]=this.style.left; o4[o4.length]=(width+"\x70\x78"); o4[o4.length]=(this.I2()?(height+"\x70\x78"): this.g); o4[o4.length]=this.G; o4[o4.length]=this.style.zIndex; o4[o4.length]=(this.ParentDockingZone?this.ParentDockingZone.M: ""); var i4=new Array(); var I4=this.i3; var i2; for (var i=0; i<I4.length; i++){i2=I4[i]; var o5=new Array(); o5[o5.length]=i2.Name; o5[o5.length]=i2.IsEnabled(); o5[o5.length]= true; i4[i4.length]=o5.join("\x21"); }o4[o4.length]=i4.join("\x7c"); this.d.value=o4.join("\x2c"); } ,IsDocked:function (){return ((this.L&RadDockNamespace.O.Y)>0&&this.ParentDockingZone != null); } ,O5:function (){return ((this.L&RadDockNamespace.O.I)>0&&this.ParentDockingZone == null); } ,l5:function (){return ((this.L&RadDockNamespace.O.I)>0); } ,i5:function (){return ((this.m&RadDockNamespace.U.Z)>0); } ,I5:function (o6){if (!o6)return false; if (0 == (this.L&RadDockNamespace.O.Y))return false; if (RadDockingZoneTypeFlags.Custom == this.l){var O6=o6.id; var l6=this.K; for (var i=0; i<l6.length; i++){if (O6 == l6[i])return true; }return false; }else {return ((this.l&o6.Type)>0); }} ,DockTo:function (o6,position){if (!o6)return; if (!this.I5(o6))return; o6.i6(this ); this.I6(); } ,o7:function (){ this.ParentDockingZone=null; this.parentNode.removeChild(this ); var parentNode=document.getElementsByTagName("\x46\x4f\x52\x4d")[0]; parentNode=parentNode?parentNode:document.body; parentNode.appendChild(this ); this.O7(); } ,I6:function (fireEvent){ this.B(); this.l7(); this.SaveState(); var i2=this.GetCommandByName("\x50\x69\x6e"); if (i2){i2.Enable( false); }i2=this.GetCommandByName("\x55\x6e\x70\x69\x6e"); if (i2){i2.Enable( false); }if ( false != fireEvent){ this.i7("\x44\x6f\x63\x6b\x53\x74\x61\x74\x65\x43\x68\x61\x6e\x67\x65\x64", {docked: true } ); }} ,I7:function (){ this.B(); this.l7(); var i2=this.GetCommandByName("\x50\x69\x6e"); if (i2){i2.Enable(!this.O0()); }i2=this.GetCommandByName("\x55\x6e\x70\x69\x6e"); if (i2){i2.Enable(this.O0()); }if (this.o8||this.O8){ this.SetSize(this.o8,this.O8); this.o8=null; this.O8=null; } this.SaveState(); this.i7("\x44\x6f\x63\x6b\x53\x74\x61\x74\x65\x43\x68\x61\x6e\x67\x65\x64", {docked: false } ); } ,B:function (){if (this.l0())return; if (!this.n){if (!document.all){ this.style.setProperty("\x63\x6c\x65\x61\x72","\x62\x6f\x74\x68",""); }return; }if (this.IsDocked()){ this.style.position=""; this.style.display=""; if (document.all){ this.style.display="\x69\x6e\x6c\x69\x6e\x65"; }else { this.style.setProperty("\x66\x6c\x6f\x61\x74","\x6c\x65\x66\x74",""); }}else { this.style.position="\x61\x62\x73\x6f\x6c\x75\x74\x65"; if (document.all){ this.style.display=""; }else { this.style.setProperty("\x66\x6c\x6f\x61\x74","",""); this.style.setProperty("\x63\x6c\x65\x61\x72","\x62\x6f\x74\x68",""); }}} ,C:function (l8){ this.TitleBar=null; this.TopGrip=null; this.BottomGrip=null; this.LeftGrip=null; this.RightGrip=null; if (!l8||!l8.length)return; var i8=0; this.TitleBar=document.getElementById(l8[i8++]); this.TopGrip=document.getElementById(l8[i8++]); this.BottomGrip=document.getElementById(l8[i8++]); this.LeftGrip=document.getElementById(l8[i8++]); this.RightGrip=document.getElementById(l8[i8++]); } ,SetGripVisible:function (I8,o9){if (I8){I8.style.display=(o9?"": "\x6e\x6f\x6e\x65"); }} ,IsGripVisible:function (I8){return (I8.style.display != "\x6e\x6f\x6e\x65"); } ,l7:function (){ this.SetGripVisible(this.TitleBar,this.O9(RadDockableObjectGripFlags.TitleBar)); this.SetGripVisible(this.TopGrip,this.O9(RadDockableObjectGripFlags.Top)); this.SetGripVisible(this.BottomGrip,this.O9(RadDockableObjectGripFlags.Bottom)); this.SetGripVisible(this.LeftGrip,this.O9(RadDockableObjectGripFlags.Left)); this.SetGripVisible(this.RightGrip,this.O9(RadDockableObjectGripFlags.Right)); } ,O9:function (l9){var i9; if (this.IsDocked()){i9=this.j; if (RadDockableObjectGripFlags.Auto == i9){switch (this.ParentDockingZone.Type){case RadDockingZoneTypeFlags.Top:case RadDockingZoneTypeFlags.Bottom:case RadDockingZoneTypeFlags.Left:case RadDockingZoneTypeFlags.Right:return (l9 == RadDockableObjectGripFlags.TitleBar); case RadDockingZoneTypeFlags.Horizontal:return (l9 == RadDockableObjectGripFlags.Left); case RadDockingZoneTypeFlags.Vertical:return (l9 == RadDockableObjectGripFlags.Top); default:return false; }}}else {i9=this.J; if (RadDockableObjectGripFlags.Auto == i9){return (l9 == RadDockableObjectGripFlags.TitleBar); }}return ((i9&l9)>0); } ,I9:function (){return ((this.m&RadDockNamespace.U.Collapse)>0); } ,Expand:function (I1){if (null == I1){I1= true; }if (I1 == this.I2()){return; }if (!I1&&this.I2()){ this.g=(this.offsetHeight+"\x70\x78"); } this.o1(RadDockNamespace.w.V,I1); if (this.I3.oa){var Oa=this.h; var la=Oa.cells[0]; var ia=this ; var Ia= function (){la.firstChild.style.display="\x6e\x6f\x6e\x65"; Oa.style.display=""; } ; var ob= function (){if (I1){la.firstChild.style.display=""; la.firstChild.style.height="\x31\x30\x30\x25"; }Oa.style.display=I1?"": "\x6e\x6f\x6e\x65"; ia.SaveState(); } ; var Ob=this.GetRect(); this.style.width=Ob.width+"\x70\x78"; this.style.height=Ob.height+"\x70\x78"; new RadEffect.Z( {object: this,height:I1?this.g: this.GetRect(this.TitleBar).height,width:Ob.width,Ia:Ia,ob:ob,lb: 1/3 } ); }else { this.h.style.display=I1?"": "\x6e\x6f\x6e\x65"; this.style.height=I1?(parseInt(this.g)+"\x70\x78"): "\x31"; this.SaveState(); }} ,Collapse:function (){ this.Expand( false); } ,Pin:function (){var Ob=this.GetRect(); var offsetLeft=(Ob.left-document.body.scrollLeft); var offsetTop=(Ob.top-document.body.scrollTop); var ib=this ; var Ib= function (){ib.MoveTo(document.body.scrollLeft+offsetLeft,document.body.scrollTop+offsetTop); ib.SaveState(); } ; this.oc=setInterval(Ib,012); this.o1(RadDockNamespace.w.v, true); } ,Unpin:function (){clearInterval(this.oc); this.oc=null; this.o1(RadDockNamespace.w.v, false); } ,c:function (Oc){ this.i3=new Array(); this.lc=new Array(); var ic,Ic,id; for (var i=0; i<Oc.length; i++){ic=Oc[i]; id=ic[0]; Ic=document.getElementById(id); if (Ic){ic.splice(0,1); RadDockNamespace.od(Ic,this,ic); this.i3[this.i3.length]=Ic; var Od=RadDockNamespace.lc[Ic.Name]; if (Od&&!Ic.OnCommand){Ic.OnCommand=Od; }}}} ,GetCommandByName:function (ld){var i2; for (var i=0; i<this.i3.length; i++){i2=this.i3[i]; if (i2&&i2.Name == ld){return i2; }}return null; } ,Id:function (oe,Oe){oe.Expand(); } ,le:function (oe,Oe){oe.Collapse(); } ,ie:function (oe,Oe){oe.Pin(); } ,Ie:function (oe,Oe){oe.Unpin(); } ,of:function (oe,Oe){oe.Hide(); }} ; RadDockNamespace.lc=[]; RadDockNamespace.lc["\x45\x78\x70\x61\x6e\x64"]=RadDockNamespace.P.Id; RadDockNamespace.lc["\x43\x6f\x6c\x6c\x61\x70\x73\x65"]=RadDockNamespace.P.le; RadDockNamespace.lc["\x43\x6c\x6f\x73\x65"]=RadDockNamespace.P.of; RadDockNamespace.lc["\x50\x69\x6e"]=RadDockNamespace.P.ie; RadDockNamespace.lc["\x55\x6e\x70\x69\x6e"]=RadDockNamespace.P.Ie;
