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)=="\x75\x6edefine\x64"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"\x6cink"+"\x20rel=\047\163t\x79\x6ces\x68\x65\x65\x74\047\x20type\x3d\047\x74ext/\x63ss\047\x20hre\x66=\047"+I+"\x27\040/>"); }else {var U=document.createElement("LINK"); U.rel="\x73tyleshe\x65\x74"; U.type="text/css"; U.href=I; document.getElementById(o+"StyleSheetH\x6f\x6cder").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("\116o RadTree\x56iew inst\x61\x6ece\x20\150a\x73\x20be\x65\x6e c\x72eat\x65d on t\x68e ser\x76\145r\x2e\012"+"\x4d\x61ke su\x72\x65 tha\x74\040\x79\x6fu h\x61\166e\x20\x74he\x20contr\x6f\154 \x69nstan\x63\145 \x63reat\x65\144.\x0a"+"\x50lease\x20\x72evie\x77\x20thi\x73\040a\x72\x74ic\x6c\x65 f\x6fr add\x69\164i\x6f\156a\x6c info\x72matio\x6e."); };RadTreeNode.prototype.R= function (){var url=this.TreeView.LoadOnDemandUrl+"\x26rtnClient\x49\x44="+this.ClientID+"&rtnLevel\x3d"+this.Level+"\x26rtnID="+this.ID+"&rtnParent\x50\x6fsit\x69\x6fn="+this.GetParentPositions()+"&rtnText="+this.T(this.Text)+"\046\x72\x74nValue\x3d"+this.T(this.Value)+"\x26rtnCatego\x72\x79="+this.T(this.Category)+"\x26rtnCh\x65\x63ked="+this.Checked; var Q; if (typeof(XMLHttpRequest)!="u\x6edefined"){Q=new XMLHttpRequest(); }else {Q=new ActiveXObject("\x4d\x69crosoft\x2e\130M\x4c\x48TTP"); }url=url+"&t\x69\x6deStamp\x3d"+encodeURIComponent((new Date()).getTime()); Q.open("\x47ET",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.treevi\x65\x77: S\x65\x72ve\x72\x20err\x6f\x72 i\x6e\x20\x74he No\x64\x65Ex\x70\141\x6ed eve\x6e\164\x20\150a\x6edler\x2c pr\x65ss \x6fk \x74o vi\x65w th\x65 re\x73ult."); document.body.innerHTML=html; return; }var index=html.indexOf("\x2c"); 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=="\x41"){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+"\x4c\x6fading")); l=P.TextElement().parentNode; break; case 3:l=P.TextElement().parentNode; }if (P.Nodes.length>0){rtvInsertHTML(l,m); var images=l.getElementsByTagName("I\x4d\x47"); for (var i=0; i<images.length; i++){RadTreeView.K(images[i]); }var k=l.getElementsByTagName("INPUT"); 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("Node\x45xpand",this.ClientID); return; }if (this.ExpandOnServer==2){if (!this.Z){ this.Z= true; switch (this.TreeView.LoadingMessagePosition){case 0: this.TextElement().innerHTML="\074\x73pan clas\x73\x3d"+this.TreeView.LoadingMessageCssClass+"\x3e"+this.TreeView.LoadingMessage+"</span> "+this.TextElement().innerHTML; break; case 1: this.TextElement().innerHTML=this.TextElement().innerHTML+" "+"\x3cspan c\x6c\x61ss="+this.TreeView.LoadingMessageCssClass+"\076"+this.TreeView.LoadingMessage+"</span> "; break; case 2:rtvInsertHTML(this.TextElement().parentNode,"\x3cdiv id\x3d"+this.ClientID+"\x4coading\x20"+"\x20clas\x73\x3d"+this.TreeView.LoadingMessageCssClass+"\x3e"+this.TreeView.LoadingMessage+"</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\x65\x6e"; H.style.height="1px"; H.style.display="block"; H.firstChild.style.position="relative"; window.setTimeout("\162\x74\x76NodeEx\x70\x61nd(1\x2c\047"+H.id+"\x27\054"+this.TreeView.ExpandDelay+");",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+"\x30"; }parentNode=parentNode.Parent; }return h; } ; RadTreeNode.prototype.Collapse= function (){if (this.Nodes.length>0){if (this.TreeView.ExpandDelay>0){var H=document.getElementById("\x47"+this.ClientID); if (H.scrollHeight!="\x75ndefined"){H.style.overflow="h\x69\x64\x64en"; H.style.display="\x62lock"; H.firstChild.style.position="\x72elative"; window.setTimeout("\x72tvNodeCo\x6c\x6caps\x65\x28"+H.scrollHeight+",\047"+H.id+"\047\x2c"+this.TreeView.ExpandDelay+"\x20\x29;",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="\x6eone"; 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=="A"){ this.TextElement().click(); }else if (this.Action){ this.TreeView.J("N\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="han\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="\x64efaul\x74"; }} 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("\116od\x65\103he\x63\x6b",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+"c"); if (this.IsSet(this.SignImage)){C.src=this.SignImage; }} ; RadTreeNode.prototype.TextElement= function (){var B=document.getElementById(this.ClientID); var o0=B.getElementsByTagName("\x73pan")[0]; if (o0==null){o0=B.getElementsByTagName("a")[0]; }return o0; } ; RadTreeNode.prototype.ImageElement= function (){return document.getElementById(this.ClientID+"i"); } ; 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("input"); i0.setAttribute("\x74ype","\164\x65\x78t"); 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("character",o1); l1.moveEnd("\x63haracter",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+":"+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 \x6e\x6ft f\x6f\x75nd\x3a\040\x0a\015\x0a\015"+url+"\x0a\x0d\012\x0dAre you\x20\x75si\x6e\x67 U\x52\x4c Re\x77\162i\x74er? \x50lea\x73\145,\x20try s\x65\164t\x69ng t\x68e Aja\x78Url\x20pro\x70erty\x20to \x6datch\x20the\x20corr\x65ct \x55RL \x79ou \x6eeed"; alert(O2); this.TreeView.FireEvent(this.TreeView.AfterClientCallBackError,this.TreeView); }else {try {eval(s); var l2=eval(this.ClientID+"\x43lientData"); 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="\x28lo\x61\x64ing ..\x2e\x29"; this.LoadingMessagePosition=0; this.LoadingMessageCssClass="Loading\x4d\x65ssage"; this.O3=null; this.l3="\x6f\x6e"; this.i3=null; this.I3= false; } ; RadTreeView.K= function (o4){o4.align="\x61bsmid\x64\x6ce"; o4.style.display="\x69\x6eline"; if (!document.all || window.opera){o4.nextSibling.style.verticalAlign="middle"; }};RadTreeView.prototype.OnInit= function (){var ImageList=new Array(); this.PreloadImages(ImageList); GlobalTreeViewImageList=ImageList; var images=document.getElementById(this.Container).getElementsByTagName("IM\x47"); 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("\x49\x4ePUT"); for (var i=0; i<k.length; i++){RadTreeView.K(k[i]); }if (document.addEventListener && (!RadTreeView_KeyboardHooked)){RadTreeView_KeyboardHooked= true; document.addEventListener("\x6beydown",this.KeyDownMozilla, false); }if ((!RadTreeView_MouseMoveHooked) && (this.DragAndDrop)){RadTreeView_MouseMoveHooked= true; if (document.attachEvent){document.attachEvent("\x6fnmousem\x6f\x76e",rtvMouseMove); }if (document.addEventListener){document.addEventListener("\x6d\157\x75\x73emov\x65",rtvMouseMove, false); }}if (!RadTreeView_MouseUpHooked){RadTreeView_MouseUpHooked= true; if (document.attachEvent){document.attachEvent("\x6f\x6emouse\x75\x70",rtvMouseUp); }if (document.addEventListener){document.addEventListener("mous\x65\x75p",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,"mout",e); } ; l4.oncontextmenu= function (e){rtvDispatcher(l0.ClientID,"contex\x74",e); } ; l4.onscroll= function (e){rtvDispatcher(l0.ClientID,"\x73croll",e); } ; l4.onclick= function (e){rtvDispatcher(l0.ClientID,"\x6dclick",e); } ; l4.ondblclick= function (e){rtvDispatcher(l0.ClientID,"\x6ddclick",e); } ; l4.onkeydown= function (e){rtvDispatcher(l0.ClientID,"\x6beydow\x6e",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\x6eunloa\x64", 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])=="\x66unctio\x6e"){l4[o5]=null; }}for (var o5 in this ){if (o5!="\x44ispos\x65"){ this[o5]=null; }}} this.i4=null; }catch (O5){}};RadTreeView.prototype.PreloadImages= function (images){var imageData=eval(this.ClientID+"Im\x61\x67eData"); 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+"ClientDat\x61"); 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)?"\061": "\x30"; l6+=i6; }document.getElementById(this.ClientID+"\137ex\x70\x61nded").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": "0"; O7+=l7; }document.getElementById(this.ClientID+"_\x73\145l\x65\x63ted").value=O7; } ; RadTreeView.prototype.Scroll= function (e){document.getElementById(this.ClientID+"_scrol\x6c").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+":"+this.I1(i7)+":"+this.I1(o8); this.J("\x43ontextMen\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=="comple\x74e"){var I8="\x72tvcm"+this.ClientID+name; var menu=document.getElementById(I8); if (menu){var o9=menu.cloneNode( true); o9.id=I8+"_clone"; document.body.appendChild(o9); o9=document.getElementById(I8+"_clone"); o9.style.left=this.O9(e)+"px"; o9.style.top=this.l9(e)+"\x70x"; o9.style.position="\x61\142\x73\x6flute"; o9.style.display="\x62\x6cock"; this.ContextMenuVisible= true; this.ContextMenuName=name; document.all?e.returnValue= false :e.preventDefault(); }}} ; RadTreeView.prototype.l9= function (e){if (document.compatMode && document.compatMode=="CSS1C\x6f\x6dpat"){return (e.clientY+document.documentElement.scrollTop); }return (e.clientY+document.body.scrollTop); } ; RadTreeView.prototype.O9= function (e){if (document.compatMode && document.compatMode=="CSS1\x43\x6fmpat"){return (e.clientX+document.documentElement.scrollLeft); }return (e.clientX+document.body.scrollLeft); } ; RadTreeView.prototype.HideContextMenu= function (){if (!document.readyState || document.readyState=="\x63omplete"){var i9=document.getElementById("\x72\x74vcm"+this.ClientID+this.ContextMenuName+"_\x63\x6cone"); 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!="DIV"){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=="\x49MG"){var oa=src.className; if (this.IsSet(oa) && this.Oa(oa)){ this.Toggle(src.parentNode.id); }}if (src.tagName=="INP\x55\x54" && 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("div"); 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="g\x72ay"; 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="a\x62\x73olute"; this.DragClone.style.display="\x6eone"; 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\x50ara\x6d\054\x20Ra\x64TreeV\x69ewGlo\x62\141l\x53econ\x64Param\x2c Rad\x54ree\x56iew\x47loba\x6cThir\x64Para\x6d);"; 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+"#"+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)!="undefined" || od.indexOf("\x5fdoPost\x42\x61ck")>-1 || od.indexOf("\x41syncRequ\x65\x73t")>-1){eval(od); }}else {if (this.CausesValidation){if (!(typeof(Page_ClientValidate)!="function" || 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,"\x26squote"); ld=ld.replace(/\x23/g,"&\x73\x73harp"); ld=ld.replace(/\x3a/g,"&scolon"); ld=ld.replace(/\x5c/g,"\134\x5c"); return ld; } ; RadTreeView.prototype.g= function (oe){if (oe && oe.tagName=="\104IV" && 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="1px d\x6f\x74ted b\x6c\x61ck"; this.l3="\x61bove"; }else {l.style.borderBottom="\x31px dotted \x62\x6cack"; this.l3="below"; } 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])!="function") && 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])!="\x66\x75\156\x63\x74ion") && 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="\x6fver"; 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+"\x23"; var Oh=""; if (Og==null){Oh="\x6eull"+"#"+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("\x4e\x6fdeDrop",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+"\x70x"; window.setTimeout("rtv\x4e\x6fdeExpa\x6e\x64("+height+"\x2c"+"\x27"+id+"\047\x2c"+Ih+"\x29;",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+"px"; window.setTimeout("rtvNod\x65\x43olla\x70\x73e("+height+","+"\047"+id+"\047\x2c"+Ih+"\x20);",5); }} ; function rtvGetNodeID(e){if (RadTreeView_Active==null)return; var target=(e.srcElement)?e.srcElement:e.target; if (target.tagName=="\x49MG" && 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=="DI\x56"){return target.id; }while (target!=null){if ((target.tagName=="\x53PAN" || target.tagName=="\x41") && rtvInsideNode(target)){return target.parentNode.id; }target=target.parentNode; }return null; } ; function rtvInsideNode(oe){if (oe.parentNode && oe.parentNode.tagName=="\x44IV" && 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!="mclick" && w!="\x63clic\x6b")return; if (Ii.EditMode)return; RadTreeView_Active=Ii; switch (w){case "\x6d\x6fver":if (l8!=null)Ii.MouseOverDispatcher(e,l8); break; case "mout":if (l8!=null)Ii.MouseOutDispatcher(e,l8); break; case "\x6dclick":Ii.MouseClickDispatcher(e); break; case "mdclick":if (l8!=null)Ii.DoubleClickDispatcher(e,l8); break; case "mdown":Ii.MouseDown(e); break; case "mup":Ii.oj(e); break; case "c\x6f\x6etext":if (l8!=null){Ii.ContextMenu(e,l8); return false; }break; case "\x63\x63lick":Ii.ContextMenuClick(e,i7,I7,o8); break; case "scrol\x6c":Ii.Scroll(e); break; case "\x66ocus":Ii.Focus(e); case "\x6beydown":Ii.KeyDown(e); }}} ; function rtvAppendStyleSheet(o,I){var Oj=(navigator.appName=="Mic\x72\x6fsoft I\x6e\x74erne\x74 Explo\x72\x65r") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var lj=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (Oj || lj){document.write("\x3c"+"l\x69\x6ek"+" rel=\047stylesh\x65\x65t\047\x20type\x3d\047t\x65\x78t/\x63\x73\x73\047\x20href\x3d\047"+I+"\x27>"); }else {var U=document.createElement("\x4c\x49NK"); U.rel="\x73tylesheet"; U.type="\x74ext/cs\x73"; U.href=I; document.getElementById(o+"\x53tyleSheet\x48\x6flder").appendChild(U); }} ; function rtvInsertHTML(ij,html){if (ij.tagName=="\x41"){ij=ij.parentNode; }if (document.all){ij.insertAdjacentHTML("before\x45\x6ed",html); }else {var r=ij.ownerDocument.createRange(); r.setStartBefore(ij); var Ij=r.createContextualFragment(html); ij.appendChild(Ij); }} ;
