var RadTreeView_KeyboardHooked= false; var RadTreeView_Active=null; var RadTreeView_DragActive=null; var RadTreeView_MouseMoveHooked= false; var RadTreeView_MouseUpHooked= false; var RadTreeView_MouseY=0; var RadTreeViewGlobalFirstParam=null; var RadTreeViewGlobalSecondParam=null; var RadTreeViewGlobalThirdParam=null; var contextMenuToBeHidden=null; if (typeof(window.RadControlsNamespace)=="\165ndef\x69\x6eed"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"l\x69\x6ek"+" \x72\x65l=\047\x73tyl\x65\x73he\x65t\047\x20type=\x27\x74ext\x2fcss\x27 href\x3d\047"+I+"\x27\x20/>"); }else {var U=document.createElement("\x4cINK"); U.rel="sty\x6c\x65sheet"; U.type="\x74\x65xt/css"; U.href=I; document.getElementById(o+"St\x79\x6ceSheetH\x6f\154de\x72").appendChild(U); }} ; function RadTreeNode(){ this.Parent=null; this.TreeView=null; this.Nodes=new Array(); this.ID=null; this.ClientID=null; this.SignImage=null; this.SignImageExpanded=null; this.Image=0; this.ImageExpanded=0; this.Action=null; this.Index=0; this.Level=0; this.Text=null; this.Value=null; this.Category=null; this.NodeCss=null; this.NodeCssOver=null; this.NodeCssSelect=null; this.ContextMenuName=null; this.Enabled= true; this.Expanded= false; this.Checked= false; this.Selected= false; this.DragEnabled=1; this.DropEnabled=1; this.EditEnabled=1; this.ExpandOnServer=0; this.IsClientNode=0; this.Attributes=new Array(); this.Z= false; } ; RadTreeNode.prototype.ScrollIntoView= function (){var z=this.TextElement(); var W=document.getElementById(this.TreeView.Container); W.scrollTop=z.offsetTop+z.offsetHeight; } ; RadTreeNode.prototype.Next= function (){var V=(this.Parent!=null)?this.Parent.Nodes: this.TreeView.Nodes; return (this.Index>=V.length)?null:V[this.Index+1]; } ; RadTreeNode.prototype.Prev= function (){var V=(this.Parent!=null)?this.Parent.Nodes: this.TreeView.Nodes; return (this.Index<=0)?null:V[this.Index-1]; } ; RadTreeNode.prototype.NextVisible= function (){if (this.Expanded)return this.Nodes[0]; if (this.Next()!=null)return this.Next(); var v=this ; while (v.Parent!=null){if (v.Parent.Next()!=null)return v.Parent.Next(); v=v.Parent; }return null; } ; RadTreeNode.prototype.PrevVisible= function (){if (this.Prev()!=null){return this.Prev(); }if (this.Parent!=null){return this.Parent; }return null; } ; RadTreeNode.prototype.Toggle= function (){if (this.Enabled){if (this.TreeView.FireEvent(this.TreeView.BeforeClientToggle,this )== false){return; } (this.Expanded)?this.Collapse(): this.Expand(); this.TreeView.FireEvent(this.TreeView.AfterClientToggle,this ); }} ; RadTreeNode.prototype.CollapseNonParentNodes= function (){for (var i=0; i<this.TreeView.AllNodes.length; i++){if (this.TreeView.AllNodes[i].Expanded && !this.IsParent(this.TreeView.AllNodes[i])){ this.TreeView.AllNodes[i].CollapseNoEffect(); }}} ; RadTreeNode.prototype.T= function (s){try {return encodeURIComponent(s); }catch (e){return escape(s); }} ; RadTreeNode.prototype.S= function (){ throw new Error("No Ra\x64\x54\x72eeV\x69\x65w in\x73tance \x68\x61s b\x65\x65n \x63rea\x74ed on\x20\164\x68e se\x72\166e\x72.\012"+"\x4d\141ke \x73\x75re t\x68\x61t \x79\x6fu h\x61\166e\x20\x74he \x63ontr\x6f\x6c i\x6estanc\x65\040\x63reate\x64.\012"+"Please re\x76\x69ew t\x68\x69s a\x72\164i\x63\x6ce f\x6f\162 \x61dditio\x6eal in\x66\x6frm\x61tion."); };RadTreeNode.prototype.R= function (){var url=this.TreeView.LoadOnDemandUrl+"\x26rtnClie\x6e\x74ID="+this.ClientID+"&rtnLevel="+this.Level+"&rtn\x49\x44="+this.ID+"\x26\162tnP\x61\x72entP\x6f\x73it\x69\157n="+this.GetParentPositions()+"\x26rtnTex\x74\x3d"+this.T(this.Text)+"\x26rtnVal\x75\x65="+this.T(this.Value)+"&rtnCa\x74\x65gory="+this.T(this.Category)+"\x26\162tnC\x68\x65cked="+this.Checked; var Q; if (typeof(XMLHttpRequest)!="unde\x66\x69ned"){Q=new XMLHttpRequest(); }else {Q=new ActiveXObject("Microsoft\x2e\x58MLHT\x54\x50"); }url=url+"\x26\x74imeSta\x6d\x70="+encodeURIComponent((new Date()).getTime()); Q.open("\x47\x45T",url, true); var P=this ; Q.onreadystatechange= function (){if (Q.readyState!=4)return; var html=Q.responseText; if (Q.status==500){alert("\x72.a.d.tre\x65\x76iew\x3a\x20Se\x72\x76er \x65\x72ror\x20\151\x6e the \x4eodeEx\x70\x61nd\x20event\x20\150a\x6edler\x2c\040\x70r\x65ss \x6fk t\x6f vie\x77 the\x20res\x75lt."); document.body.innerHTML=html; return; }var index=html.indexOf(","); var N=parseInt(html.substring(0,index)); var M=html.substring(index+1,N+index+1); var m=html.substring(N+index+1); P.LoadNodesOnDemand(M,Q.status,url); P.ImageOn(); P.SignOn(); P.Expanded= true; P.ExpandOnServer=0; var L=P.TextElement().parentNode; var l=L.parentNode; switch (P.TreeView.LoadingMessagePosition){case 0:case 1:if (L.tagName=="A"){L.firstChild.innerHTML=P.Text; }else {l=P.TextElement().parentNode; if (P.TextElement().innerText){P.TextElement().innerText=P.Text; }else {P.TextElement().innerHTML=P.Text; }}break; case 2:L.removeChild(document.getElementById(P.ClientID+"Loading")); l=P.TextElement().parentNode; break; case 3:l=P.TextElement().parentNode; }if (P.Nodes.length>0){rtvInsertHTML(l,m); var images=l.getElementsByTagName("\x49M\x47"); for (var i=0; i<images.length; i++){RadTreeView.K(images[i]); }var k=l.getElementsByTagName("\111\x4e\x50UT"); for (var i=0; i<k.length; i++){RadTreeView.K(k[i]); }}P.Z= false; P.TreeView.FireEvent(P.TreeView.AfterClientToggle,P); } ; Q.send(null); } ; RadTreeNode.prototype.Expand= function (){if (this.ExpandOnServer){if (!this.TreeView.FireEvent(this.TreeView.BeforeClientToggle,this )){return; }if (this.ExpandOnServer==1){ this.TreeView.J("\x4e\x6f\x64eExpan\x64",this.ClientID); return; }if (this.ExpandOnServer==2){if (!this.Z){ this.Z= true; switch (this.TreeView.LoadingMessagePosition){case 0: this.TextElement().innerHTML="<span clas\x73\075"+this.TreeView.LoadingMessageCssClass+"\x3e"+this.TreeView.LoadingMessage+"</span> "+this.TextElement().innerHTML; break; case 1: this.TextElement().innerHTML=this.TextElement().innerHTML+"\x20"+"\x3c\x73pan c\x6c\x61ss="+this.TreeView.LoadingMessageCssClass+"\x3e"+this.TreeView.LoadingMessage+"</sp\x61\x6e> "; break; case 2:rtvInsertHTML(this.TextElement().parentNode,"<div id="+this.ClientID+"\x4c\x6fading "+" clas\x73\x3d"+this.TreeView.LoadingMessageCssClass+">"+this.TreeView.LoadingMessage+"\x3c/div>"); break; }var P=this ; window.setTimeout( function (){P.R();} ,20); return; }}}if (!this.Nodes.length){return; }if (this.TreeView.SingleExpandPath){ this.CollapseNonParentNodes(); }var H=document.getElementById("G"+this.ClientID); if (this.TreeView.ExpandDelay>0){H.style.overflow="hidd\x65n"; H.style.height="\x31px"; H.style.display="block"; H.firstChild.style.position="rel\x61\x74ive"; window.setTimeout("\x72tvNodeExpan\x64\x281,\047"+H.id+"\x27\x2c"+this.TreeView.ExpandDelay+"\x29;",20); }else {H.style.display="\x62lock"; } this.ImageOn(); this.SignOn(); this.Expanded= true; if (!this.IsClientNode){ this.TreeView.UpdateExpandedState(); }} ; RadTreeNode.prototype.GetParentPositions= function (){var parentNode=this ; var h=""; while (parentNode!=null){if (parentNode.Next()!=null){h=h+"\x31"; }else {h=h+"0"; }parentNode=parentNode.Parent; }return h; } ; RadTreeNode.prototype.Collapse= function (){if (this.Nodes.length>0){if (this.TreeView.ExpandDelay>0){var H=document.getElementById("G"+this.ClientID); if (H.scrollHeight!="\x75\x6edefine\x64"){H.style.overflow="\x68idden"; H.style.display="b\x6c\x6fck"; H.firstChild.style.position="\x72\x65lative"; window.setTimeout("rtvNode\x43\x6fllap\x73\x65("+H.scrollHeight+",\x27"+H.id+"\x27\x2c"+this.TreeView.ExpandDelay+" );",20); }else { this.CollapseNoEffect(); }}else { this.CollapseNoEffect(); } this.ImageOff(); this.SignOff(); this.Expanded= false; this.TreeView.UpdateExpandedState(); }} ; RadTreeNode.prototype.CollapseNoEffect= function (){if (this.Nodes.length>0){var H=document.getElementById("G"+this.ClientID); H.style.display="none"; this.ImageOff(); this.SignOff(); this.Expanded= false; this.TreeView.UpdateExpandedState(); }} ; RadTreeNode.prototype.Highlight= function (e){if (!this.Enabled){return; }if (e){if (this.TreeView.MultipleSelect && (e.ctrlKey || e.shiftKey)){if (this.Selected){ this.TextElement().className=this.NodeCss; this.Selected= false; if (this.TreeView.SelectedNode==this ){ this.TreeView.SelectedNode=null; } this.TreeView.UpdateSelectedState(); return; }}else { this.TreeView.UnSelectAllNodes(); }} this.TextElement().className=this.NodeCssSelect; this.TreeView.SelectNode(this ); this.TreeView.FireEvent(this.TreeView.AfterClientHighlight,this ); } ; RadTreeNode.prototype.ExecuteAction= function (e){if (this.IsClientNode){return; }if (this.TextElement().tagName=="\x41"){ this.TextElement().click(); }else if (this.Action){ this.TreeView.J("\x4e\x6fdeClick",this.ClientID); }if (e){ (document.all)?e.returnValue= false :e.preventDefault(); }} ; RadTreeNode.prototype.Select= function (e){if (this.TreeView.FireEvent(this.TreeView.BeforeClientClick,this,e)== false)return; if (this.Enabled){ this.Highlight(e); this.TreeView.LastHighlighted=this ; this.ExecuteAction(); }else { (document.all)?e.returnValue= false :e.preventDefault(); } this.TreeView.FireEvent(this.TreeView.AfterClientClick,this,e); } ; RadTreeNode.prototype.UnSelect= function (){
if (this.TextElement().parentNode && this.TextElement().parentNode.tagName=="A"){
 this.TextElement().parentNode.className=this.NodeCss; } 
 this.TextElement().className=this.NodeCss; this.Selected= false; 
 } ; RadTreeNode.prototype.Disable= function (){ 
 this.TextElement().className=this.TreeView.NodeCssDisable;
  this.Enabled= false; this.Selected= false;
   if (this.CheckElement()!=null){ this.CheckElement().disabled= true; }} ;
    RadTreeNode.prototype.Enable= function (){
     this.TextElement().className=this.NodeCss; this.Enabled= true;
      if (this.CheckElement()!=null){ this.CheckElement().disabled= false; }} ;
       RadTreeNode.prototype.Hover= function (e){var l=(e.srcElement)?e.srcElement:e.target; 
       if (this.TreeView.g(l)){ this.TreeView.F(this,l,e); return; }
       if (this.Enabled){
       if (this.TreeView.FireEvent(this.TreeView.BeforeClientHighlight,this )== false){return; }
        this.TreeView.LastHighlighted=this ; 
        if (RadTreeView_DragActive!=null && RadTreeView_DragActive.DragClone!=null && (!this.Expanded) && this.ExpandOnServer!=1){var P=this ; window.setTimeout( function (){P.f(); } ,1000); }if (!this.Selected){ this.TextElement().className=this.NodeCssOver; if (this.Image){ this.ImageElement().style.cursor="\150a\x6e\x64"; }} this.TreeView.FireEvent(this.TreeView.AfterClientHighlight,this ); }} ; RadTreeNode.prototype.UnHover= function (e){var l=(e.srcElement)?e.srcElement:e.target; if (this.TreeView.g(l)){ this.TreeView.D(l); return; }if (this.Enabled){ this.TreeView.LastHighlighted=null; if (!this.Selected){ this.TextElement().className=this.NodeCss; if (this.Image){ this.ImageElement().style.cursor="\x64efault"; }} this.TreeView.FireEvent(this.TreeView.AfterClientMouseOut,this ); }} ; RadTreeNode.prototype.f= function (){if (RadTreeView_DragActive!=null && RadTreeView_DragActive.DragClone!=null && (!this.Expanded)){if (RadTreeView_Active.LastHighlighted==this ){ this.Expand(); }}} ; RadTreeNode.prototype.CheckBoxClick= function (e){if (this.Enabled){if (this.TreeView.FireEvent(this.TreeView.BeforeClientCheck,this )== false){ (this.Checked)?this.Check(): this.UnCheck(); return; } (this.Checked)?this.UnCheck(): this.Check(); if (this.TreeView.AutoPostBackOnCheck){ this.TreeView.J("\116\x6fdeCheck",this.ClientID); this.TreeView.FireEvent(this.TreeView.AfterClientCheck,this ); return; } this.TreeView.FireEvent(this.TreeView.AfterClientCheck,this ); }} ; RadTreeNode.prototype.Check= function (){if (this.CheckElement()!=null){ this.CheckElement().checked= true; this.Checked= true; this.TreeView.UpdateCheckedState(); }} ; RadTreeNode.prototype.UnCheck= function (){if (this.CheckElement()!=null){ this.CheckElement().checked= false; this.Checked= false; this.TreeView.UpdateCheckedState(); }} ; RadTreeNode.prototype.IsSet= function (a){return (a!=null && a!=""); } ; RadTreeNode.prototype.ImageOn= function (){var d=document.getElementById(this.ClientID+"i"); if (this.ImageExpanded!=0){d.src=this.ImageExpanded; }} ; RadTreeNode.prototype.ImageOff= function (){var d=document.getElementById(this.ClientID+"i"); if (this.Image!=0){d.src=this.Image; }} ; RadTreeNode.prototype.SignOn= function (){var C=document.getElementById(this.ClientID+"c"); if (this.IsSet(this.SignImageExpanded)){C.src=this.SignImageExpanded; }} ; RadTreeNode.prototype.SignOff= function (){var C=document.getElementById(this.ClientID+"\x63"); if (this.IsSet(this.SignImage)){C.src=this.SignImage; }} ; RadTreeNode.prototype.TextElement= function (){var B=document.getElementById(this.ClientID); var o0=B.getElementsByTagName("s\x70\141\x6e")[0]; if (o0==null){o0=B.getElementsByTagName("a")[0]; }return o0; } ; RadTreeNode.prototype.ImageElement= function (){return document.getElementById(this.ClientID+"\x69"); } ; RadTreeNode.prototype.CheckElement= function (){return document.getElementById(this.ClientID).getElementsByTagName("input")[0]; } ; RadTreeNode.prototype.IsParent= function (node){var parent=this.Parent; while (parent!=null){if (node==parent)return true; parent=parent.Parent; }return false; } ; RadTreeNode.prototype.StartEdit= function (){if (this.EditEnabled){var O0=this.Text; this.TreeView.EditMode= true; var parentElement=this.TextElement().parentNode; this.TreeView.EditTextElement=this.TextElement().cloneNode( true); this.TextElement().parentNode.removeChild(this.TextElement()); var l0=this ; var i0=document.createElement("\x69np\x75\x74"); i0.setAttribute("type","\x74ext"); i0.setAttribute("\x73ize",this.Text.length+3); i0.setAttribute("value",O0); i0.className=this.TreeView.NodeCssEdit; var I0=this ; i0.onblur= function (){I0.EndEdit(); } ; i0.onchange= function (){I0.EndEdit(); } ; i0.onkeypress= function (e){I0.AnalyzeEditKeypress(e); } ; i0.onsubmit= function (){return false; } ; parentElement.appendChild(i0); this.TreeView.EditInputElement=i0; i0.focus(); i0.onselectstart= function (e){if (!e)e=window.event; if (e.stopPropagation){e.stopPropagation(); }else {e.cancelBubble= true; }} ; var o1=0; var O1=this.Text.length; if (i0.createTextRange){var l1=i0.createTextRange(); l1.moveStart("c\x68aracter",o1); l1.moveEnd("charact\x65\x72",O1); l1.select(); }else {i0.setSelectionRange(o1,O1); }}} ; RadTreeNode.prototype.EndEdit= function (){ this.TreeView.EditInputElement.onblur=null; this.TreeView.EditInputElement.onchange=null; var parentElement=this.TreeView.EditInputElement.parentNode; if (this.TreeView.FireEvent(this.TreeView.AfterClientEdit,this,this.Text,this.TreeView.EditInputElement.value)!= false){if (this.Text!=this.TreeView.EditInputElement.value){var i1=this.ClientID+"\x3a"+this.TreeView.I1(this.TreeView.EditInputElement.value); this.TreeView.J("NodeEdit",i1); return; } this.TreeView.EditTextElement.innerHTML=this.TreeView.EditInputElement.value; this.Text=this.TreeView.EditInputElement.value; } this.TreeView.EditInputElement.parentNode.removeChild(this.TreeView.EditInputElement); parentElement.appendChild(this.TreeView.EditTextElement); this.TreeView.EditMode= false; this.TreeView.EditInputElement=null; this.TreeView.EditTextElement=null; } ; RadTreeNode.prototype.AnalyzeEditKeypress= function (e){if (document.all)e=event; if (e.keyCode==13){ (document.all)?e.returnValue= false :e.preventDefault(); if (e.cancelBubble){e.cancelBubble= true; } this.EndEdit(); return false; }if (e.keyCode==27){ this.TreeView.EditInputElement.value=this.TreeView.EditTextElement.innerHTML; this.EndEdit(); }return true; } ; RadTreeNode.prototype.LoadNodesOnDemand= function (s,o2,url){if (o2==404){var O2="CallBac\x6b URL not\x20\x66oun\x64: \012\015\x0a\x0d"+url+"\x0a\015\012\x0dAre yo\x75\x20us\x69\156g\x20\x55RL \x52\145w\x72iter\x3f Pl\x65\141s\x65\054\x20\164r\x79 set\x74\151n\x67 the\x20Aj\x61xUr\x6c pro\x70erty\x20to \x6datc\x68 the\x20cor\x72ect\x20URL\x20yo\x75 ne\x65d"; alert(O2); this.TreeView.FireEvent(this.TreeView.AfterClientCallBackError,this.TreeView); }else {try {eval(s); var l2=eval(this.ClientID+"C\x6c\x69entData"); for (var i=0; i<l2.length; i++){l2[i][17]=0; this.TreeView.LoadNode(l2[i],null,this ); }}catch (e){ this.TreeView.FireEvent(this.TreeView.AfterClientCallBackError,this.TreeView); }}} ; function RadTreeView(i2){if (window.tlrkTreeViews==null){window.tlrkTreeViews=new Array(); }if (window.tlrkTreeViews[i2]!=null){I2=window.tlrkTreeViews[i2]; I2.Dispose(); }tlrkTreeViews[i2]=this ; this.Nodes=new Array(); this.AllNodes=new Array(); this.ClientID=null; this.SelectedNode=null; this.DragMode= false; this.DragSource=null; this.DragClone=null; this.LastHighlighted=null; this.MouseInside= false; this.HtmlElementID=""; this.EditMode= false; this.EditTextElement=null; this.EditInputElement=null; this.BeforeClientClick=null; this.BeforeClientHighlight=null; this.AfterClientHighlight=null; this.AfterClientMouseOut=null; this.BeforeClientDrop=null; this.AfterClientDrop=null; this.BeforeClientToggle=null; this.AfterClientToggle=null; this.BeforeClientContextClick=null; this.BeforeClientContextMenu=null; this.AfterClientContextClick=null; this.BeforeClientCheck=null; this.AfterClientCheck=null; this.AfterClientMove=null; this.AfterClientFocus=null; this.BeforeClientDrag=null; this.AfterClientEdit=null; this.AfterClientClick=null; this.BeforeClientDoubleClick=null; this.AfterClientCallBackError=null; this.DragAndDropBetweenNodes= false; this.AutoPostBackOnCheck= false; this.CausesValidation= true; this.ContextMenuVisible= false; this.ContextMenuName=null; this.o3=null; this.SingleExpandPath= false; this.ExpandDelay=2; this.TabIndex=0; this.AllowNodeEditing= false; this.LoadOnDemandUrl=null; this.LoadingMessage="\x28\x6coading ..\x2e\x29"; this.LoadingMessagePosition=0; this.LoadingMessageCssClass="Loadin\x67\x4dessag\x65"; this.O3=null; this.l3="\x6fn"; this.i3=null; this.I3= false; } ; RadTreeView.K= function (o4){o4.align="absmiddl\x65"; o4.style.display="\151\x6e\x6cine"; if (!document.all || window.opera){o4.nextSibling.style.verticalAlign="mid\x64\x6ce"; }};RadTreeView.prototype.OnInit= function (){var ImageList=new Array(); this.PreloadImages(ImageList); GlobalTreeViewImageList=ImageList; var images=document.getElementById(this.Container).getElementsByTagName("IMG"); for (var i=0; i<images.length; i++){var index=images[i].className; if (index!=null && index!=""){images[i].src=ImageList[index]; RadTreeView.K(images[i]); }} this.LoadTree(ImageList); var k=document.getElementById(this.Container).getElementsByTagName("\x49NPU\x54"); for (var i=0; i<k.length; i++){RadTreeView.K(k[i]); }if (document.addEventListener && (!RadTreeView_KeyboardHooked)){RadTreeView_KeyboardHooked= true; document.addEventListener("ke\x79\x64own",this.KeyDownMozilla, false); }if ((!RadTreeView_MouseMoveHooked) && (this.DragAndDrop)){RadTreeView_MouseMoveHooked= true; if (document.attachEvent){document.attachEvent("onmous\x65\x6dove",rtvMouseMove); }if (document.addEventListener){document.addEventListener("\x6dousemove",rtvMouseMove, false); }}if (!RadTreeView_MouseUpHooked){RadTreeView_MouseUpHooked= true; if (document.attachEvent){document.attachEvent("onmouseup",rtvMouseUp); }if (document.addEventListener){document.addEventListener("\x6douseup",rtvMouseUp, false); }} this.O4(); this.I3= true; } ; RadTreeView.prototype.O4= function (){var l0=this ; var l4=document.getElementById(this.Container); l4.onfocus= function (e){rtvDispatcher(l0.ClientID,"\x66ocus",e); } ; l4.onmouseover= function (e){rtvDispatcher(l0.ClientID,"mover",e); } ; l4.onmouseout= function (e){rtvDispatcher(l0.ClientID,"\x6dout",e); } ; l4.oncontextmenu= function (e){rtvDispatcher(l0.ClientID,"\x63ontex\x74",e); } ; l4.onscroll= function (e){rtvDispatcher(l0.ClientID,"scroll",e); } ; l4.onclick= function (e){rtvDispatcher(l0.ClientID,"mclick",e); } ; l4.ondblclick= function (e){rtvDispatcher(l0.ClientID,"mdclick",e); } ; l4.onkeydown= function (e){rtvDispatcher(l0.ClientID,"\x6beydown",e); } ; l4.onselectstart= function (){return false; } ; l4.ondragstart= function (){return false; } ; if (this.DragAndDrop){l4.onmousedown= function (e){rtvDispatcher(l0.ClientID,"\x6ddown",e); } ; }if (window.attachEvent){window.attachEvent("\x6f\x6eunload", function (){l0.Dispose(); } ); } this.i4=l4; } ; RadTreeView.prototype.Dispose= function (){if (this.I4)return; this.I4= true; try {var l4=this.i4; if (l4!=null){for (var o5 in l4){if (typeof(l4[o5])=="f\x75nction"){l4[o5]=null; }}for (var o5 in this ){if (o5!="Dispo\x73\x65"){ this[o5]=null; }}} this.i4=null; }catch (O5){}};RadTreeView.prototype.PreloadImages= function (images){var imageData=eval(this.ClientID+"\x49mageDat\x61"); for (var i=0; i<imageData.length; i++){images[i]=imageData[i]; }} ; RadTreeView.prototype.FindNode= function (node){for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].ClientID==node){return this.AllNodes[i]; }}return null; } ; RadTreeView.prototype.FindNodeByText= function (text){for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Text==text){return this.AllNodes[i]; }}return null; } ; RadTreeView.prototype.FindNodeByValue= function (value){for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Value==value){return this.AllNodes[i]; }}return null; } ; RadTreeView.prototype.LoadTree= function (l5){var i5=eval(this.ClientID+"Client\x44ata"); for (var i=0; i<i5.length; i++){ this.LoadNode(i5[i],l5); }} ; RadTreeView.prototype.LoadNode= function (i5,l5,parentNode){var I5=new RadTreeNode(); I5.ClientID=i5[0]; I5.TreeView=this ; var o6=i5[17]; if (o6>0){I5.Parent=this.AllNodes[o6-1]; }if (parentNode!=null){I5.Parent=parentNode; }I5.NodeCss=this.NodeCss; I5.NodeCssOver=this.NodeCssOver; I5.NodeCssSelect=this.NodeCssSelect; I5.Text=i5[1]; I5.Value=i5[2]; I5.Category=i5[3]; if (l5!=null){I5.SignImage=l5[i5[4]]; I5.SignImageExpanded=l5[i5[5]]; }else {I5.SignImage=GlobalTreeViewImageList[i5[4]]; I5.SignImageExpanded=GlobalTreeViewImageList[i5[5]]; }if (i5[6]>0){I5.Image=l5[i5[6]]; }if (i5[7]>0){I5.ImageExpanded=l5[i5[7]]; }I5.Selected=i5[8]; if (I5.Selected){ this.SelectedNode=I5; }I5.Checked=i5[9]; I5.Enabled=i5[10]; I5.Expanded=i5[11]; I5.Action=i5[12]; if (this.IsSet(i5[13]))I5.NodeCss=i5[13]; if (this.IsSet(i5[14]))I5.ContextMenuName=i5[14]; this.AllNodes[this.AllNodes.length]=I5; if (I5.Parent!=null){I5.Parent.Nodes[I5.Parent.Nodes.length]=I5; }else { this.Nodes[this.Nodes.length]=I5; }I5.Index=i5[16]; I5.DragEnabled=i5[18]; I5.DropEnabled=i5[19]; I5.ExpandOnServer=i5[20]; if (this.IsSet(i5[21]))I5.NodeCssOver=i5[21]; if (this.IsSet(i5[22]))I5.NodeCssSelect=i5[22]; I5.Level=i5[23]; I5.ID=i5[24]; I5.IsClientNode=i5[25]; I5.EditEnabled=i5[26]; I5.Attributes=i5[27]; } ; RadTreeView.prototype.Toggle= function (node){ this.FindNode(node).Toggle(); } ; RadTreeView.prototype.Select= function (node,e){ this.FindNode(node).Select(e); } ; RadTreeView.prototype.Hover= function (node,e){var node=this.FindNode(node); if (node)node.Hover(e); } ; RadTreeView.prototype.UnHover= function (node,e){var node=this.FindNode(node); if (node)node.UnHover(e); } ; RadTreeView.prototype.CheckBoxClick= function (node,e){ this.FindNode(node).CheckBoxClick(e); } ; RadTreeView.prototype.Highlight= function (node,e){ this.FindNode(node).Highlight(e); } ; RadTreeView.prototype.SelectNode= function (node){ this.SelectedNode=node; node.Selected= true; this.UpdateSelectedState(); } ; RadTreeView.prototype.GetSelectedNodes= function (){var O6=new Array(); for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Selected)O6[O6.length]=this.AllNodes[i]; }return O6; } ; RadTreeView.prototype.UnSelectAllNodes= function (node){for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Selected && this.AllNodes[i].Enabled){ this.AllNodes[i].UnSelect(); }}} ; RadTreeView.prototype.KeyDownMozilla= function (e){var LastActiveRadTreeView=RadTreeView_Active; if (LastActiveRadTreeView){if (!LastActiveRadTreeView.I3)return; if (LastActiveRadTreeView!=null && LastActiveRadTreeView.SelectedNode!=null){if (LastActiveRadTreeView.EditMode)return; if (e.keyCode==107 || e.keyCode==109 || e.keyCode==37 || e.keyCode==39)LastActiveRadTreeView.SelectedNode.Toggle(); if (e.keyCode==40 && LastActiveRadTreeView.SelectedNode.NextVisible()!=null)LastActiveRadTreeView.SelectedNode.NextVisible().Highlight(e); if (e.keyCode==38 && LastActiveRadTreeView.SelectedNode.PrevVisible()!=null)LastActiveRadTreeView.SelectedNode.PrevVisible().Highlight(e); if (e.keyCode==13){if (LastActiveRadTreeView.FireEvent(LastActiveRadTreeView.BeforeClientClick,LastActiveRadTreeView.SelectedNode,e)== false){return; }LastActiveRadTreeView.SelectedNode.ExecuteAction(); LastActiveRadTreeView.FireEvent(LastActiveRadTreeView.AfterClientClick,LastActiveRadTreeView.SelectedNode,e); }if (e.keyCode==32)LastActiveRadTreeView.SelectedNode.CheckBoxClick(); if (e.keyCode==113 && LastActiveRadTreeView.AllowNodeEditing)LastActiveRadTreeView.SelectedNode.StartEdit(); }}} ; RadTreeView.prototype.KeyDown= function (e){if (this.EditMode)return; var node=this.SelectedNode; if (node!=null){if (e.keyCode==107 || e.keyCode==109 || e.keyCode==37 || e.keyCode==39)node.Toggle(); if (e.keyCode==40 && node.NextVisible()!=null)node.NextVisible().Highlight(e); if (e.keyCode==38 && node.PrevVisible()!=null)node.PrevVisible().Highlight(e); if (e.keyCode==13){if (this.FireEvent(this.BeforeClientClick,this.SelectedNode,e)== false){return; }node.ExecuteAction(e); this.FireEvent(this.AfterClientClick,this.SelectedNode,e); }if (e.keyCode==32){node.CheckBoxClick(); (document.all)?e.returnValue= false :e.preventDefault(); }if (e.keyCode==113 && this.AllowNodeEditing){node.StartEdit(); }}else {if (e.keyCode==38 || e.keyCode==40 || e.keyCode==13 || e.keyCode==32){ this.Nodes[0].Highlight(); }}} ; RadTreeView.prototype.UpdateState= function (){ this.UpdateExpandedState(); this.UpdateCheckedState(); this.UpdateSelectedState(); } ; RadTreeView.prototype.UpdateExpandedState= function (){var l6=""; for (var i=0; i<this.AllNodes.length; i++){var i6=(this.AllNodes[i].Expanded)?"1": "\x30"; l6+=i6; }document.getElementById(this.ClientID+"\x5fexpanded").value=l6; } ; RadTreeView.prototype.UpdateCheckedState= function (){var I6=""; for (var i=0; i<this.AllNodes.length; i++){var o7=(this.AllNodes[i].Checked)?"\x31": "0"; I6+=o7; }document.getElementById(this.ClientID+"\x5fchecked").value=I6; } ; RadTreeView.prototype.UpdateSelectedState= function (){var O7=""; for (var i=0; i<this.AllNodes.length; i++){var l7=(this.AllNodes[i].Selected)?"1": "\x30"; O7+=l7; }document.getElementById(this.ClientID+"\x5fselected").value=O7; } ; RadTreeView.prototype.Scroll= function (e){document.getElementById(this.ClientID+"_s\x63\x72oll").value=document.getElementById(this.Container).scrollTop; } ; RadTreeView.prototype.ContextMenuClick= function (e,i7,I7,o8){l0=this ; window.setTimeout( function (){l0.HideContextMenu();} ,10); if (this.FireEvent(this.BeforeClientContextClick,this.o3,i7,o8)== false){return; }if (I7){var O8=this.o3.ClientID+"\x3a"+this.I1(i7)+"\x3a"+this.I1(o8); this.J("C\x6f\x6etextMen\x75\x43lic\x6b",O8); }} ; RadTreeView.prototype.ContextMenu= function (e,l8){var src=(e.srcElement)?e.srcElement:e.target; var node=this.FindNode(l8); if (node!=null && this.BeforeClientContextMenu!=null){var i8=this.SelectedNode; if (this.FireEvent(this.BeforeClientContextMenu,node,e,i8)== false){return; } this.Highlight(l8,e,i8); }if (node!=null && node.ContextMenuName!=null && node.Enabled){if (!this.ContextMenuVisible){ this.o3=node; if (!node.Selected){ this.Highlight(l8,e); } this.ShowContextMenu(node.ContextMenuName,e); document.all?e.returnValue= false :e.preventDefault(); }}} ; RadTreeView.prototype.ShowContextMenu= function (name,e){if (!document.readyState || document.readyState=="complet\x65"){var I8="rtvcm"+this.ClientID+name; var menu=document.getElementById(I8); if (menu){var o9=menu.cloneNode( true); o9.id=I8+"\x5f\143l\x6f\x6ee"; document.body.appendChild(o9); o9=document.getElementById(I8+"\x5f\x63lone"); o9.style.left=this.O9(e)+"px"; o9.style.top=this.l9(e)+"px"; o9.style.position="\x61bsolut\x65"; o9.style.display="\x62lock"; this.ContextMenuVisible= true; this.ContextMenuName=name; document.all?e.returnValue= false :e.preventDefault(); }}} ; RadTreeView.prototype.l9= function (e){if (document.compatMode && document.compatMode=="CS\x53\x31Compat"){return (e.clientY+document.documentElement.scrollTop); }return (e.clientY+document.body.scrollTop); } ; RadTreeView.prototype.O9= function (e){if (document.compatMode && document.compatMode=="CSS\x31\x43ompat"){return (e.clientX+document.documentElement.scrollLeft); }return (e.clientX+document.body.scrollLeft); } ; RadTreeView.prototype.HideContextMenu= function (){if (!document.readyState || document.readyState=="compl\x65\x74e"){var i9=document.getElementById("rt\x76\x63m"+this.ClientID+this.ContextMenuName+"\x5f\x63lone"); if (i9){document.body.removeChild(i9); } this.ContextMenuVisible= false; }} ; RadTreeView.prototype.MouseClickDispatcher= function (e){var src=(e.srcElement)?e.srcElement:e.target; var l8=rtvGetNodeID(e); if (l8!=null && src.tagName!="\x44IV"){var I9=this.FindNode(l8); if (I9.Selected){if (this.AllowNodeEditing){I9.StartEdit(); return; }else { this.Select(l8,e); }}else { this.Select(l8,e); }}if (src.tagName=="IMG"){var oa=src.className; if (this.IsSet(oa) && this.Oa(oa)){ this.Toggle(src.parentNode.id); }}if (src.tagName=="INPUT" && rtvInsideNode(src)){ this.CheckBoxClick(src.parentNode.id,e); }} ; RadTreeView.prototype.Oa= function (la){return (la==1 || la==2 || la==5 || la==6 || la==7 || la==8 || la==10 || la==11); } ; RadTreeView.prototype.DoubleClickDispatcher= function (e,l8){var node=this.FindNode(l8); if (this.FireEvent(this.BeforeClientDoubleClick,node)== false){return; } this.Toggle(l8); } ; RadTreeView.prototype.MouseOverDispatcher= function (e,l8){ this.Hover(l8,e); } ; RadTreeView.prototype.MouseOutDispatcher= function (e,l8){ this.UnHover(l8,e); this.i3=null; this.LastHighlighted=null; } ; RadTreeView.prototype.MouseDown= function (e){if (this.LastHighlighted!=null && this.DragAndDrop){if (this.FireEvent(this.BeforeClientDrag,this.LastHighlighted)== false)return; if (!this.LastHighlighted.DragEnabled)return; if (e.button==2)return; this.DragSource=this.LastHighlighted; this.DragClone=document.createElement("\x64\x69\x76"); document.body.appendChild(this.DragClone); RadTreeView_DragActive=this ; var ia=""; if (this.MultipleSelect && (this.SelectedNodesCount()>1)){for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Selected){if (this.AllNodes[i].Image){var img=this.AllNodes[i].ImageElement(); var Ia=img.cloneNode( true); this.DragClone.appendChild(Ia); }var ob=this.AllNodes[i].TextElement().cloneNode( true); ob.className=this.AllNodes[i].NodeCss; ob.style.color="gra\x79"; this.DragClone.appendChild(ob); this.DragClone.appendChild(document.createElement("\x42R")); }ia=ia+"\x74ext"; }}if (ia==""){if (this.LastHighlighted.Image){var img=this.LastHighlighted.ImageElement(); var Ia=img.cloneNode( true); this.DragClone.appendChild(Ia); }var ob=this.LastHighlighted.TextElement().cloneNode( true); ob.className=this.LastHighlighted.NodeCss; ob.style.color="gray"; this.DragClone.appendChild(ob); } this.DragClone.style.position="\x61bsolute"; this.DragClone.style.display="none"; if (e.preventDefault){e.preventDefault(); }}} ; RadTreeView.prototype.SelectedNodesCount= function (){var count=0; for (var i=0; i<this.AllNodes.length; i++){if (this.AllNodes[i].Selected)count++; }return count; } ; RadTreeView.prototype.FireEvent= function (Ob,a,b,lb){if (!Ob){return true; }RadTreeViewGlobalFirstParam=a; RadTreeViewGlobalSecondParam=b; RadTreeViewGlobalThirdParam=lb; var s=Ob+"(\x52\x61dTreeV\x69\x65wGlo\x62\141\x6cFirs\x74\120ar\x61\155,\x20RadT\x72eeVie\x77\107l\x6f\142a\x6cSecon\x64Param\x2c RadT\x72ee\x56iewG\x6cobal\x54hird\x50aram\x29;"; return eval(s); } ; RadTreeView.prototype.Focus= function (e){ this.FireEvent(this.AfterClientFocus,this ); } ; RadTreeView.prototype.IsSet= function (a){return (a!=null && a!=""); } ; RadTreeView.prototype.ib= function (Ib){var oc=0; if (Ib.offsetParent){while (Ib.offsetParent){oc+=Ib.offsetLeft; Ib=Ib.offsetParent; }}else if (Ib.x)oc+=Ib.x; return oc; } ; RadTreeView.prototype.Oc= function (Ib){var lc=0; if (Ib.offsetParent){while (Ib.offsetParent){lc+=Ib.offsetTop; Ib=Ib.offsetParent; }}else if (Ib.y)lc+=Ib.y; return lc; } ; RadTreeView.prototype.J= function (ic,i1){var Ic=ic+"\x23"+i1; if (this.PostBackOptionsClientString){var od=this.PostBackOptionsClientString.replace(/\x40\x40\x61\x72\x67\x75\x6d\x65\x6e\x74\x73\x40\x40/g,Ic); if (typeof(WebForm_PostBackOptions)!="undef\x69ned" || od.indexOf("\x5f\x64oPostB\x61\x63k")>-1 || od.indexOf("\x41syncReques\x74")>-1){eval(od); }}else {if (this.CausesValidation){if (!(typeof(Page_ClientValidate)!="\x66unction" || Page_ClientValidate())){return; }}var Od=this.PostBackFunction.replace(/\x40\x40\x61\x72\x67\x75\x6d\x65\x6e\x74\x73\x40\x40/g,Ic); eval(Od); }} ; RadTreeView.prototype.I1= function (param){var ld=param.replace(/\x27/g,"&squote"); ld=ld.replace(/\x23/g,"\x26ssha\x72\x70"); ld=ld.replace(/\x3a/g,"&s\x63\x6flon"); ld=ld.replace(/\x5c/g,"\134\134"); return ld; } ; RadTreeView.prototype.g= function (oe){if (oe && oe.tagName=="DIV" && oe.id.indexOf(this.ID)>-1){return true; }return false; } ; RadTreeView.prototype.F= function (node,l,e){if (this.DragAndDropBetweenNodes && this.Oe()){ this.i3=node; var le=this.l9(e); var ie=this.Oc(l); if (le<ie+node.TextElement().offsetHeight){l.style.borderTop="\x31px dotted b\x6c\x61ck"; this.l3="\x61bove"; }else {l.style.borderBottom="1px do\x74\x74ed bl\x61\x63k"; this.l3="\x62elow"; } this.O3=l; }} ; RadTreeView.prototype.D= function (l){if (l && this.DragAndDropBetweenNodes && this.Oe()){l.style.borderTop=""; l.style.borderBottom=""; this.l3="\x6fver"; }} ; RadTreeView.prototype.Oe= function (){for (var key in tlrkTreeViews){if ((typeof(tlrkTreeViews[key])!="\x66unction") && tlrkTreeViews[key].DragClone!=null){return true; }}return false; } ; function rtvIsAnyContextMenuVisible(){for (var key in tlrkTreeViews)if ((typeof(tlrkTreeViews[key])!="\146\x75\x6ection") && tlrkTreeViews[key].ContextMenuVisible)return true; return false; } ; function rtvAdjustScroll(){if (RadTreeView_DragActive==null || RadTreeView_DragActive.DragClone==null || RadTreeView_Active==null){return; }var Ie=RadTreeView_Active; var of=document.getElementById(RadTreeView_Active.Container); var Of,If; Of=Ie.Oc(of); If=Of+of.offsetHeight; if ((RadTreeView_MouseY-Of)<50 && of.scrollTop>0){of.scrollTop=of.scrollTop-10; Ie.Scroll(); RadTreeView_ScrollTimeout=window.setTimeout( function (){rtvAdjustScroll(); } ,100); }else if ((If-RadTreeView_MouseY)<50 && of.scrollTop<(of.scrollHeight-of.offsetHeight+16)){of.scrollTop=of.scrollTop+10; Ie.Scroll(); RadTreeView_ScrollTimeout=window.setTimeout( function (){rtvAdjustScroll(); } ,100); }} ; function rtvMouseUp(e){if (RadTreeView_Active==null)return; if (e && !e.ctrlKey){for (var key in tlrkTreeViews){if ((typeof(tlrkTreeViews[key])!="functi\x6fn") && tlrkTreeViews[key].ContextMenuVisible){contextMenuToBeHidden=tlrkTreeViews[key]; window.setTimeout( function (){if (contextMenuToBeHidden){contextMenuToBeHidden.HideContextMenu(); }} ,10); return; }}}if (RadTreeView_DragActive==null || RadTreeView_DragActive.DragClone==null){return; } (document.all)?e.returnValue= false :e.preventDefault(); var og=RadTreeView_DragActive.DragSource; var Og=RadTreeView_Active.LastHighlighted; var lg=RadTreeView_Active; var ig="over"; var Ig; if (lg.O3){ig=lg.l3; Ig=lg.i3; lg.D(lg.O3); }if (Ig){Og=Ig; }document.body.removeChild(RadTreeView_DragActive.DragClone); RadTreeView_DragActive.DragClone=null; if (Og!=null && Og.DropEnabled== false)return; if (og==Og)return; if (RadTreeView_DragActive.FireEvent(RadTreeView_DragActive.BeforeClientDrop,og,Og,e)== false)return; if (og.IsClientNode || ((Og!=null) && Og.IsClientNode))return; var oh=RadTreeView_DragActive.ClientID+"#"+og.ClientID+"#"; var Oh=""; if (Og==null){Oh="null"+"\x23"+RadTreeView_DragActive.HtmlElementID; }else {Oh=lg.ClientID+"\x23"+Og.ClientID+"#"+ig; }if (Og==null && RadTreeView_DragActive.HtmlElementID==""){return; }var Od=oh+Oh; RadTreeView_DragActive.J("NodeDr\x6f\x70",Od); RadTreeView_DragActive.FireEvent(RadTreeView_DragActive.AfterClientDrop,og,Og,e); RadTreeView_DragActive=null; } ; function rtvMouseMove(e){if (rtvIsAnyContextMenuVisible()){return; }if (RadTreeView_DragActive!=null && RadTreeView_DragActive.DragClone!=null){var lh,ih; lh=RadTreeView_DragActive.O9(e)+8; ih=RadTreeView_DragActive.l9(e)+4; RadTreeView_MouseY=ih; rtvAdjustScroll(); RadTreeView_DragActive.DragClone.style.zIndex=999; RadTreeView_DragActive.DragClone.style.top=ih+"px"; RadTreeView_DragActive.DragClone.style.left=lh+"px"; RadTreeView_DragActive.DragClone.style.display="block"; RadTreeView_DragActive.FireEvent(RadTreeView_DragActive.AfterClientMove,e); (document.all)?e.returnValue= false :e.preventDefault(); }} ; function rtvNodeExpand(a,id,Ih){var oi=document.getElementById(id); var Oi=oi.scrollHeight; var ii=(Oi-a)/Ih; var height=a+ii; if (height>Oi-1){oi.style.height=""; oi.firstChild.style.position=""; }else {oi.style.height=height+"px"; window.setTimeout("\x72t\x76\x4eodeExp\x61\x6ed("+height+","+"\x27"+id+"\047,"+Ih+")\x3b",5); }} ; function rtvNodeCollapse(a,id,Ih){var oi=document.getElementById(id); var Oi=oi.scrollHeight; var ii=(Oi-Math.abs(Oi-a))/Ih; var height=a-ii; if (height<=3){oi.style.height=""; oi.style.display="\x6eone"; oi.firstChild.style.position=""; }else {oi.style.height=height+"\x70x"; window.setTimeout("\x72tvNodeCol\x6c\141p\x73\x65("+height+"\x2c"+"\047"+id+"\047\x2c"+Ih+" \x29\x3b",5); }} ; function rtvGetNodeID(e){if (RadTreeView_Active==null)return; var target=(e.srcElement)?e.srcElement:e.target; if (target.tagName=="IMG" && target.nextSibling){var index=target.className; if (index){index=parseInt(index); if (index>12){target=target.nextSibling; }}}if (target.id.indexOf(RadTreeView_Active.ID)>-1 && target.tagName=="\x44IV"){return target.id; }while (target!=null){if ((target.tagName=="\x53PAN" || target.tagName=="A") && rtvInsideNode(target)){return target.parentNode.id; }target=target.parentNode; }return null; } ; function rtvInsideNode(oe){if (oe.parentNode && oe.parentNode.tagName=="\104I\x56" && oe.parentNode.id.indexOf(RadTreeView_Active.ID)>-1){return oe.parentNode.id; }} ; function rtvDispatcher(t,w,e,i7,I7,o8){if (!e){e=window.event; }if (tlrkTreeViews){var l8=rtvGetNodeID(e); var Ii=tlrkTreeViews[t]; if (!Ii.I3)return; if (rtvIsAnyContextMenuVisible() && w!="\x6dclic\x6b" && w!="ccli\x63\x6b")return; if (Ii.EditMode)return; RadTreeView_Active=Ii; switch (w){case "mover":if (l8!=null)Ii.MouseOverDispatcher(e,l8); break; case "\x6dout":if (l8!=null)Ii.MouseOutDispatcher(e,l8); break; case "mclick":Ii.MouseClickDispatcher(e); break; case "\x6ddclick":if (l8!=null)Ii.DoubleClickDispatcher(e,l8); break; case "\x6d\x64own":Ii.MouseDown(e); break; case "\x6dup":Ii.oj(e); break; case "\x63ontext":if (l8!=null){Ii.ContextMenu(e,l8); return false; }break; case "cclick":Ii.ContextMenuClick(e,i7,I7,o8); break; case "scroll":Ii.Scroll(e); break; case "\x66ocus":Ii.Focus(e); case "k\x65\x79down":Ii.KeyDown(e); }}} ; function rtvAppendStyleSheet(o,I){var Oj=(navigator.appName=="\x4dicrosoft I\x6e\x74ern\x65\x74 \x45\x78plo\x72\145r") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var lj=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (Oj || lj){document.write("\x3c"+"link"+"\x20rel=\047\x73tyle\x73\x68eet\x27\x20ty\x70\x65=\047\x74ext\x2fcs\x73\047\x20\150r\x65\146=\x27"+I+"\x27\x3e"); }else {var U=document.createElement("\x4cINK"); U.rel="\163t\x79\x6ceshee\x74"; U.type="\x74\145xt/\x63\x73s"; U.href=I; document.getElementById(o+"S\x74\x79leSheet\x48\x6flder").appendChild(U); }} ; function rtvInsertHTML(ij,html){if (ij.tagName=="\x41"){ij=ij.parentNode; }if (document.all){ij.insertAdjacentHTML("beforeE\x6e\x64",html); }else {var r=ij.ownerDocument.createRange(); r.setStartBefore(ij); var Ij=r.createContextualFragment(html); ij.appendChild(Ij); }} ;

