if ("\x75\x6edefin\x65d"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }var RadDockableObjectGripFlags= {None: 0,TitleBar: 1,Top: 2,Bottom: 4,Left: 8,Right: 16,All: 31,Auto: 32 } ; RadDockNamespace.O= {o: 0,I: 1,A: 2,U: 3 } ; RadDockNamespace.Z= {None: 0,z: 1,Collapse: 2,Close: 4,Pin: 8,W: 6,Resizable: 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.H=R[i++]; var h=R[i++]; S.G=document.getElementById(R[i++]); S.g=R[i++]; S.F=R[i++]; var f=R[i++]; var D=R[i++]; var d=R[i++]; S.C=document.getElementById(D); S.c(h); S.B(f); S.o0(); if (!document.readyState || "\x63om\x70\x6cete"==document.readyState){S.SaveState(); }else if (window.attachEvent){var O0= function (){S.SaveState(); } ; window.attachEvent("onload",O0); }S.G.cells[0].style.height=document.all?"\x3100%": ""; if ("\x73tring"==typeof(d) && d.indexOf("\x28")==-1 && d.indexOf("\x29")==-1){S.AddEventHandler("Dock\x53\x74ateCh\x61\x6eged",eval(d)); }if (S.l0()){if (!S.i0()){S.Pin(); }else {S.I0= true; }}} ; RadDockNamespace.P= {IsDockableObject: true ,o1:function (index){return ((this.g&index)>0); } ,O1:function (index,value){var l1=this.g; if (value){ this.g |= index; }else { this.g &= ~index; }if (l1!=this.g){ this.i1(); this.SaveState(); }} ,i1:function (){var I1=this.IsDocked(); var o2=this.o1(RadDockNamespace.w.V); var O2=this.GetCommandByName("C\x6fllapse"); if (O2){O2.Enable(o2); }var l2=this.GetCommandByName("\x45xpand"); if (l2){l2.Enable(!o2); }var i2=this.o1(RadDockNamespace.w.v); I2=this.GetCommandByName("U\x6e\x70in"); if (I2){I2.Enable(!I1 && i2); }I2=this.GetCommandByName("\120\x69n"); if (I2){I2.Enable(!I1 && !i2); }I2=this.GetCommandByName("Clo\x73\x65"); if (I2){I2.Enable( true); }} ,o3:function (){return this.o1(RadDockNamespace.w.V); } ,l0:function (){return this.o1(RadDockNamespace.w.v); } ,i0:function (){return this.o1(RadDockNamespace.w.T); } ,O3:function (){var l3=this.IsVisible(); this.O1(RadDockNamespace.w.T,!l3); if (l3){ this.o0(); }if (l3 && this.I0){ this.Pin(); this.I0=null; }} ,i3: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.G=null; this.o4=null; this.H=null; this.J=null; } ,SaveState:function (){var O4=new Array(); var width=(this.IsVisible()?this.offsetWidth: this.l4); var height=(this.IsVisible()?this.offsetHeight: this.i4); O4[O4.length]=this.style.top; O4[O4.length]=this.style.left; O4[O4.length]=(width+"px"); O4[O4.length]=(this.o3()?(height+"\x70\x78"): this.F); O4[O4.length]=this.g; O4[O4.length]=this.style.zIndex; O4[O4.length]=(this.ParentDockingZone?this.ParentDockingZone.M: ""); var I4=new Array(); var o5=this.I3; var I2; for (var i=0; i<o5.length; i++){I2=o5[i]; var O5=new Array(); O5[O5.length]=I2.Name; O5[O5.length]=I2.IsEnabled(); O5[O5.length]= true; I4[I4.length]=O5.join("!"); }O4[O4.length]=I4.join("\x7c"); this.C.value=O4.join(","); } ,IsDocked:function (){return ((this.L&RadDockNamespace.O.I)>0 && this.ParentDockingZone!=null); } ,l5:function (){return ((this.L&RadDockNamespace.O.A)>0 && this.ParentDockingZone==null); } ,i5:function (){return ((this.L&RadDockNamespace.O.A)>0); } ,CanResize:function (){return ((this.m&RadDockNamespace.Z.z)>0); } ,I5:function (o6){if (!o6)return false; if (0==(this.L&RadDockNamespace.O.I))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\x52M")[0]; parentNode=parentNode?parentNode:document.body; parentNode.appendChild(this ); this.O7(); } ,I6:function (fireEvent){ this.o0(); this.l7(); this.SaveState(); var I2=this.GetCommandByName("P\x69\x6e"); if (I2){I2.Enable( false); }I2=this.GetCommandByName("\x55npin"); if (I2){I2.Enable( false); }if ( false !=fireEvent){ this.i7("DockS\x74\x61teCha\x6e\147\x65\144", {docked: true } ); }} ,I7:function (){ this.o0(); this.l7(); var I2=this.GetCommandByName("\x50in"); if (I2){I2.Enable(!this.l0()); }I2=this.GetCommandByName("Unpin"); if (I2){I2.Enable(this.l0()); }if (this.o8 || this.O8){ this.SetSize(this.o8,this.O8); this.o8=null; this.O8=null; } this.SaveState(); this.i7("D\x6f\x63kState\x43\150a\x6e\x67e\x64", {docked: false } ); } ,o0:function (){if (this.i0())return; if (!this.n){if (!document.all){ this.style.setProperty("clear","both",""); }return; }if (this.IsDocked()){ this.style.position=""; this.style.display=""; if (document.all){ this.style.display="\x69nline"; }else { this.style.setProperty("\x66loat","\x6ceft",""); }}else { this.style.position="a\x62\x73olute"; if (document.all){ this.style.display=""; }else { this.style.setProperty("\x66\x6coat","",""); this.style.setProperty("\x63lear","b\x6f\x74h",""); }}} ,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,visible){if (I8){I8.style.display=(visible?"": "non\x65"); }} ,IsGripVisible:function (I8){return (I8.style.display!="none"); } ,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 (O9){var l9; if (this.IsDocked()){l9=this.H; if (RadDockableObjectGripFlags.Auto==l9){switch (this.ParentDockingZone.Type){case RadDockingZoneTypeFlags.Top:case RadDockingZoneTypeFlags.Bottom:case RadDockingZoneTypeFlags.Left:case RadDockingZoneTypeFlags.Right:return (O9==RadDockableObjectGripFlags.TitleBar); case RadDockingZoneTypeFlags.Horizontal:return (O9==RadDockableObjectGripFlags.Left); case RadDockingZoneTypeFlags.Vertical:return (O9==RadDockableObjectGripFlags.Top); default:return false; }}}else {l9=this.J; if (RadDockableObjectGripFlags.Auto==l9){return (O9==RadDockableObjectGripFlags.TitleBar); }}return ((l9&O9)>0); } ,i9:function (){return ((this.m&RadDockNamespace.Z.Collapse)>0); } ,Expand:function (o2){if (null==o2){o2= true; }if (o2==this.o3()){return; }if (!o2 && this.o3()){ this.F=(this.offsetHeight+"px"); } this.O1(RadDockNamespace.w.V,o2); if (this.o4.I9){var oa=this.G; var Oa=oa.cells[0]; var la=this ; var ia= function (){Oa.firstChild.style.display="\x6e\x6f\x6ee"; oa.style.display=""; } ; var Ia= function (){if (o2){Oa.firstChild.style.display=""; Oa.firstChild.style.height="100%"; }oa.style.display=o2?"": "\x6eone"; la.SaveState(); } ; var ob=this.GetRect(); this.style.width=ob.width+"px"; this.style.height=ob.height+"px"; new RadEffect.z( {object: this,height:o2?this.F: this.GetRect(this.TitleBar).height,width:ob.width,ia:ia,Ia:Ia,Ob: 1/3 } ); }else { this.G.style.display=o2?"": "none"; this.style.height=o2?(parseInt(this.F)+"\x70x"): "1"; 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 lb=this ; var ib= function (){lb.MoveTo(document.body.scrollLeft+offsetLeft,document.body.scrollTop+offsetTop); lb.SaveState(); } ; this.Ib=setInterval(ib,10); this.O1(RadDockNamespace.w.v, true); } ,Unpin:function (){clearInterval(this.Ib); this.Ib=null; this.O1(RadDockNamespace.w.v, false); } ,B:function (oc){ this.I3=new Array(); this.Oc=new Array(); var lc,ic,id; for (var i=0; i<oc.length; i++){lc=oc[i]; id=lc[0]; ic=document.getElementById(id); if (ic){lc.splice(0,1); RadDockNamespace.Ic(ic,this,lc); this.I3[this.I3.length]=ic; var od=RadDockNamespace.Oc[ic.Name]; if (od && !ic.OnCommand){ic.OnCommand=od; }}}} ,GetCommandByName:function (Od){var I2; for (var i=0; i<this.I3.length; i++){I2=this.I3[i]; if (I2 && I2.Name==Od){return I2; }}return null; } ,ld: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.Oc=[]; RadDockNamespace.Oc["\x45\x78pand"]=RadDockNamespace.P.ld; RadDockNamespace.Oc["\x43ollapse"]=RadDockNamespace.P.le; RadDockNamespace.Oc["Clos\x65"]=RadDockNamespace.P.of; RadDockNamespace.Oc["\x50\x69n"]=RadDockNamespace.P.ie; RadDockNamespace.Oc["\x55npin"]=RadDockNamespace.P.Ie;

