if ("\x75\156\x64\145\x66\151n\x65\x64"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }var RadDockableObjectGripFlags= {None: 0,TitleBar: 1,Top: 2,Bottom: 4,Left: 8,Right: 16,All: 31,Auto: 32 } ; RadDockNamespace.W= {w: 0,V: 1,v: 2,T: 3 } ; RadDockNamespace.t= {None: 0,S: 1,Collapse: 2,Close: 4,Pin: 8,Resizable: 7 } ; RadDockNamespace.R= {r: 1,Q: 2,P: 4 } ; RadDockNamespace.N= function (n,M){RadDockNamespace.m(n); Object.L(n,RadDockNamespace.l); Object.L(n,RadDockNamespace.K); var i=0; n.k=M[i++]; n.J=M[i++]; n.H=M[i++]; n.h=M[i++]; n.G=M[i++]; n.g=M[i++]; var F=M[i++]; n.ParentDockingZone=F?document.getElementById(F):null; n.f=M[i++]; n.D=M[i++]; var d=M[i++]; n.C=document.getElementById(M[i++]); n.c=M[i++]; n.B=M[i++]; var o0=M[i++]; var O0=M[i++]; n.l0=eval("("+M[i++]+"\x29"); n.i0=document.getElementById(O0); n.I0(d); n.o1(o0); n.O1(); if (!document.readyState || "\x63omplete"==document.readyState){RadDockNamespace.l1(n); n.SaveState(); }else if (window.attachEvent){var i1= function (){RadDockNamespace.l1(n); n.SaveState(); } ; window.attachEvent("onload",i1); }n.C.cells[0].style.height=document.all?"\x3100%": ""; var I1=["T\x69\x74lebarC\x65\x6cl","\124\x69\x74leCel\x6c","Ho\x72\x69zontalG\x72\151pC\x65\154\x6c\x31","\x48orizonta\x6c\x47ripC\x65\x6cl2","Ve\x72\x74icalGri\x70\x43ell\x31","\x56erticalGrip\x43\x65ll2"]; for (var i=0; i<I1.length; i++){var o2=I1[i]; var O2=document.getElementById(n.id+"_"+o2); if (O2!=null){RadDockNamespace.l2(O2,"\x64ragstart",new Function("\x72etur\x6e\x20fals\x65")); O2.setAttribute("unselec\x74\x61ble","\x6fn"); }}var i2=["D\x6f\x63kStateC\x68\x61nge\x64","\x44ock","\x55\x6eDock","\x44ragStart","Drag","\x44\x72op","\x44ragEn\x64"]; for (var i=0; i<i2.length; i++){n.AddEventHandler(i2[i],n.I2); }if (n.o3()){if (!n.O3() && !n.IsDocked()){n.Pin(); }else {n.l3= true; }}} ; RadDockNamespace.l= {IsDockableObject: true ,i3:function (index){return ((this.c&index)>0); } ,I3:function (index,value){var o4=this.c; if (value){ this.c |= index; }else { this.c &= ~index; }if (o4!=this.c){ this.O4(); this.SaveState(); }} ,O4:function (){var l4=this.IsDocked(); var i4=this.i3(RadDockNamespace.R.r); var I4=this.GetCommandByName("Colla\x70se"); if (I4){I4.Enable(i4); }var o5=this.GetCommandByName("E\x78\x70and"); if (o5){o5.Enable(!i4); }var O5=this.i3(RadDockNamespace.R.Q); l5=this.GetCommandByName("\x55npin"); if (l5){l5.Enable(!l4 && O5); }l5=this.GetCommandByName("Pin"); if (l5){l5.Enable(!l4 && !O5); }l5=this.GetCommandByName("\x43lose"); if (l5){l5.Enable( true); }} ,i5:function (){return this.i3(RadDockNamespace.R.r); } ,o3:function (){return this.i3(RadDockNamespace.R.Q); } ,O3:function (){return this.i3(RadDockNamespace.R.P); } ,I5:function (){var o6=this.IsVisible(); this.I3(RadDockNamespace.R.P,!o6); if (o6){ this.O1(); }if (o6 && this.l3){ this.Pin(); this.l3=null; }} ,O6:function (){if (null!=this.l6){for (var i=0; i<this.l6.length; i++){ this.l6[i]=null; }} this.l6=null; this.ParentDockingZone=null; this.TitleBar=null; this.TopGrip=null; this.BottomGrip=null; this.LeftGrip=null; this.RightGrip=null; this.C=null; this.i6=null; this.D=null; this.f=null; } ,SaveState:function (){var I6=new Array(); var width=(this.IsVisible()?this.offsetWidth: this.o7); var height=(this.IsVisible()?this.offsetHeight: this.O7); I6[I6.length]=this.style.top; I6[I6.length]=this.style.left; I6[I6.length]=(width+"\x70x"); I6[I6.length]=(this.i5()?(height+"px"): this.B); I6[I6.length]=this.c; I6[I6.length]=this.style.zIndex; I6[I6.length]=(this.ParentDockingZone?this.ParentDockingZone.J: ""); var l7=new Array(); var i7=this.l6; var l5; for (var i=0; i<i7.length; i++){l5=i7[i]; var I7=new Array(); I7[I7.length]=l5.Name; I7[I7.length]=l5.IsEnabled(); I7[I7.length]= true; l7[l7.length]=I7.join("!"); }I6[I6.length]=l7.join("|"); this.i0.value=I6.join(","); } ,IsDocked:function (){return ((this.h&RadDockNamespace.W.V)>0 && this.ParentDockingZone!=null); } ,o8:function (){return ((this.h&RadDockNamespace.W.v)>0 && this.ParentDockingZone==null); } ,O8:function (){return ((this.h&RadDockNamespace.W.v)>0); } ,CanResize:function (){return ((this.H&RadDockNamespace.t.S)>0); } ,l8:function (i8){if (!i8)return false; if (0==(this.h&RadDockNamespace.W.V))return false; if (RadDockingZoneTypeFlags.Custom==this.G){var I8=i8.id; var o9=this.g; for (var i=0; i<o9.length; i++){if (I8==o9[i])return true; }return false; }else {return ((this.G&i8.Type)>0); }} ,DockTo:function (i8,position){if (!i8)return; if (!this.l8(i8))return; i8.Dock(this ); this.O9(); } ,l9: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.i9(); } ,O9:function (fireEvent){ this.O1(); this.I9(); this.SaveState(); var l5=this.GetCommandByName("Pin"); if (l5){l5.Enable( false); }l5=this.GetCommandByName("\x55npin"); if (l5){l5.Enable( false); }if ( false !=fireEvent){ this.oa("D\x6f\x63kStateC\x68\141\x6e\x67e\x64", {docked: true } ,this ); this.oa("Dock","",this ); }} ,Oa:function (){ this.O1(); this.I9(); var l5=this.GetCommandByName("Pin"); if (l5){l5.Enable(!this.o3()); }l5=this.GetCommandByName("\x55npin"); if (l5){l5.Enable(this.o3()); }if (this.la || this.ia){ this.SetSize(this.la,this.ia); this.la=null; this.ia=null; } this.SaveState(); this.oa("\x44ockStat\x65\x43hang\x65\x64", {docked: false } ,this ); this.oa("UnDock","",this ); } ,O1:function (){if (this.O3())return; if (!this.k){if (!document.all){ this.style.setProperty("\x63lear","\x62oth",""); }return; }if (this.IsDocked()){ this.style.position=""; this.style.display=""; this.Ia.style.display="no\x6e\x65"; if (document.all){if ((this.ParentDockingZone.Type&RadDockingZoneTypeFlags.Horizontal)>0){ this.style.display="\x69\x6eline"; }}else {if ((this.ParentDockingZone.Type&RadDockingZoneTypeFlags.Horizontal)>0){ this.style.setProperty("\x66loat","\x6ceft",""); }}}else { this.style.position="\x61bsolute"; this.Ia.style.display=""; if (document.all){ this.style.display=""; }else { this.style.setProperty("float","",""); this.style.setProperty("\x63lear","\x62\157t\x68",""); }}} ,I0:function (ob){ this.TitleBar=null; this.TopGrip=null; this.BottomGrip=null; this.LeftGrip=null; this.RightGrip=null; if (!ob || !ob.length)return; var Ob=0; this.TitleBar=document.getElementById(ob[Ob++]); this.TopGrip=document.getElementById(ob[Ob++]); this.BottomGrip=document.getElementById(ob[Ob++]); this.LeftGrip=document.getElementById(ob[Ob++]); this.RightGrip=document.getElementById(ob[Ob++]); } ,SetGripVisible:function (lb,visible){if (lb){lb.style.display=(visible?"": "none"); }} ,IsGripVisible:function (lb){return (lb.style.display!="none"); } ,I9:function (){ this.SetGripVisible(this.TitleBar,this.ib(RadDockableObjectGripFlags.TitleBar)); this.SetGripVisible(this.TopGrip,this.ib(RadDockableObjectGripFlags.Top)); this.SetGripVisible(this.BottomGrip,this.ib(RadDockableObjectGripFlags.Bottom)); this.SetGripVisible(this.LeftGrip,this.ib(RadDockableObjectGripFlags.Left)); this.SetGripVisible(this.RightGrip,this.ib(RadDockableObjectGripFlags.Right)); } ,ib:function (Ib){var oc; if (this.IsDocked()){oc=this.D; if (RadDockableObjectGripFlags.Auto==oc){switch (this.ParentDockingZone.Type){case RadDockingZoneTypeFlags.Top:case RadDockingZoneTypeFlags.Bottom:case RadDockingZoneTypeFlags.Left:case RadDockingZoneTypeFlags.Right:return (Ib==RadDockableObjectGripFlags.TitleBar); case RadDockingZoneTypeFlags.Horizontal:return (Ib==RadDockableObjectGripFlags.Left); case RadDockingZoneTypeFlags.Vertical:return (Ib==RadDockableObjectGripFlags.Top); default:return false; }}}else {oc=this.f; if (RadDockableObjectGripFlags.Auto==oc){return (Ib==RadDockableObjectGripFlags.TitleBar); }}return ((oc&Ib)>0); } ,Oc:function (){return ((this.H&RadDockNamespace.t.Collapse)>0); } ,Expand:function (lc){if (null==lc){lc= true; }if (lc==this.i5()){return; }if (!lc && this.i5()){ this.B=(this.offsetHeight+"p\x78"); }else {if (document.all){var ic=this.style.height; var Ic=this.C.style.display; var od=this.C; var Od=od.cells[0]; var ld=Od.firstChild.style.display; var oe=Od.firstChild.style.height; this.C.style.display=""; Od.firstChild.style.display=""; Od.firstChild.style.height="\x3100%"; this.style.height=parseInt(this.B)+"\x70\x78"; var Oe=RadDockNamespace.l1(this, true); this.B=parseInt(this.B)-Oe; this.style.height=ic; this.C.style.display=Ic; Od.firstChild.style.display=ld; Od.firstChild.style.height=oe; }} this.I3(RadDockNamespace.R.r,lc); if (this.i6.le){var od=this.C; var Od=od.cells[0]; var ie=this ; var Ie= function (){Od.firstChild.style.display="none"; od.style.display=""; } ; var of= function (){if (lc){Od.firstChild.style.display=""; Od.firstChild.style.height="\x3100%"; }od.style.display=lc?"": "\x6eone"; ie.SaveState(); } ; var Of=this.GetRect(); new RadEffect.S( {object: this,height:lc?this.B: this.GetRect(this.TitleBar).height,width:Of.width,Ie:Ie,of:of,If: 1/3 } ); }else { this.C.style.display=lc?"": "\156\x6fne"; this.style.height=lc?(parseInt(this.B)+"\x70x"): "1p\x78"; this.Ia.style.height=this.style.height; this.SaveState(); }} ,Collapse:function (){ this.Expand( false); } ,Pin:function (){var og=this ; var offsetLeft=0; var offsetTop=0; var Og= true; var lg= function (){if (Og){var Of=og.GetRect(); offsetLeft=Of.left;offsetTop=Of.top;Og= false; }og.MoveTo(RadDockNamespace.ig()+offsetLeft,RadDockNamespace.Ig()+offsetTop); og.SaveState(); } ; this.oh=setInterval(lg,10); this.I3(RadDockNamespace.R.Q, true); } ,Unpin:function (){clearInterval(this.oh); this.oh=null; this.I3(RadDockNamespace.R.Q, false); } ,o1:function (Oh){ this.l6=new Array(); this.lh=new Array(); var ih,Ih,id; for (var i=0; i<Oh.length; i++){ih=Oh[i]; id=ih[0]; Ih=document.getElementById(id); if (Ih){ih.splice(0,1); RadDockNamespace.oi(Ih,this,ih); this.l6[this.l6.length]=Ih; var Oi=RadDockNamespace.lh[Ih.Name]; if (Oi && !Ih.OnCommand){Ih.OnCommand=Oi; }}}} ,GetCommandByName:function (ii){var l5; for (var i=0; i<this.l6.length; i++){l5=this.l6[i]; if (l5 && l5.Name==ii){return l5; }}return null; } ,Ii:function (oj,Oj){oj.Expand(); } ,lj:function (oj,Oj){oj.Collapse(); } ,ij:function (oj,Oj){oj.Pin(); } ,Ij:function (oj,Oj){oj.Unpin(); } ,ok:function (oj,Oj){oj.Hide(); } ,I2:function (Ok,eventArgs){var eventName=eventArgs.eventName; try {Ok["On"+eventName](Ok,eventArgs); }catch (e){}} ,OnDock:function (sender,eventArgs){if (this.l0["OnDoc\x6b"]){eval(this.l0["\x4fnDock"]+"(s\x65\x6eder, e\x76\145\x6e\x74A\x72\x67s)"); }} ,OnUnDock:function (sender,eventArgs){if (this.l0["OnUnD\x6f\x63k"]){eval(this.l0["OnUnDock"]+"(sender\x2c\x20even\x74\x41rgs\x29"); }} ,OnDragEnd:function (sender,eventArgs){if (this.l0["OnDragEn\x64"]){eval(this.l0["\x4fnDragEn\x64"]+"(sender, \x65\x76ent\x41\x72gs)"); }} ,OnDockStateChanged:function (sender,eventArgs){if (this.l0["O\x6e\x44ockSta\x74\x65Chan\x67\145\x64"]){eval(this.l0["\x4fnDockState\x43\x68ange\x64"]+"(sender, \x65\x76ent\x41\x72gs)"); }} ,OnDrag:function (sender,eventArgs){if (this.l0["OnDrag"]){eval(this.l0["\117nD\x72\x61g"]+"(send\x65\x72, eve\x6e\x74Arg\x73\051"); }} ,OnDragStart:function (sender,eventArgs){if (this.l0["\x4f\x6eDragS\x74\x61rt"]){eval(this.l0["\x4fnDragStart"]+"(\x73\x65nder, e\x76\145n\x74\x41rg\x73\x29"); }} ,OnDrop:function (sender,eventArgs){if (this.l0["OnDrop"]){eval(this.l0["On\x44\x72op"]+"(sender,\x20\x65ven\x74\x41rgs)"); }}} ; RadDockNamespace.lh=[]; RadDockNamespace.lh["\x45xpand"]=RadDockNamespace.l.Ii; RadDockNamespace.lh["\x43\157lla\x70\x73e"]=RadDockNamespace.l.lj; RadDockNamespace.lh["C\x6c\x6fse"]=RadDockNamespace.l.ok; RadDockNamespace.lh["Pi\x6e"]=RadDockNamespace.l.ij; RadDockNamespace.lh["\x55npin"]=RadDockNamespace.l.Ij;

