function Node(id,_2,_3,_4,_5,_6,_7,_8,_9){ this.id=id; this.pid=_2; this.name=_3; this.url=_4; this.title=_5; this.target=_6; this.icon=_7; this.iconOpen=_8; this._io=_9||false; this._is=false; this._ls=false; this._hc=false; this._ai=0; this._p; } function dTree(_a,_b){ this.config={target:null,folderLinks:true,useSelection:true,useCookies:true,useLines:true,useIcons:true,useStatusText:false,closeSameLevel:false,inOrder:false}; this.icon={root:_b+"img/base.gif",folder:_b+"img/folder.gif",folderOpen:_b+"img/folderopen.gif",node:_b+"img/page.gif",empty:_b+"img/empty.gif",line:_b+"img/line.gif",join:_b+"img/join.gif",joinBottom:_b+"img/joinbottom.gif",plus:_b+"img/plus.gif",plusBottom:_b+"img/plusbottom.gif",minus:_b+"img/minus.gif",minusBottom:_b+"img/minusbottom.gif",nlPlus:_b+"img/nolines_plus.gif",nlMinus:_b+"img/nolines_minus.gif"}; this.obj=_a; this.aNodes=[]; this.aIndent=[]; this.root=new Node(-1); this.selectedNode=null; this.selectedFound=false; this.completed=false; } dTree.prototype.add=function(id,_d,_e,_f,_10,_11,_12,_13,_14){ this.aNodes[this.aNodes.length]=new Node(id,_d,_e,_f,_10,_11,_12,_13,_14); }; dTree.prototype.openAll=function(){ this.oAll(true); }; dTree.prototype.closeAll=function(){ this.oAll(false); }; dTree.prototype.toString=function(){ this.setCS_All(); var str="
\n"; if(document.getElementById){ if(this.config.useCookies){ this.selectedNode=this.getSelected(); } str+=this.addNode(this.root); }else{ str+="Browser not supported."; } str+="
"; if(!this.selectedFound){ this.selectedNode=null; } this.completed=true; return str; }; dTree.prototype.addNode=function(_16){ var str=""; var n=0; if(this.config.inOrder){ n=_16._ai; } for(n;n"+this.indent(_1a,_1b); if(this.config.useIcons){ if(!_1a.icon){ _1a.icon=(this.root.id==_1a.pid)?this.icon.root:((_1a._hc)?this.icon.folder:this.icon.node); } if(!_1a.iconOpen){ _1a.iconOpen=(_1a._hc)?this.icon.folderOpen:this.icon.node; } if(this.root.id==_1a.pid){ _1a.icon=this.icon.root; _1a.iconOpen=this.icon.root; } str+="\"\""; } if(_1a.url){ str+=""; } } str+=_1a.name; if(_1a.url||((!this.config.folderLinks||!_1a.url)&&_1a._hc)){ str+=""; } str+=""; if(_1a._hc){ str+="
"; str+=this.addNode(_1a); str+="
"; } this.aIndent.pop(); return str; }; dTree.prototype.indent=function(_1d,_1e){ var str=""; if(this.root.id!=_1d.pid){ for(var n=0;n"; } (_1d._ls)?this.aIndent.push(0):this.aIndent.push(1); if(_1d._hc){ str+="\"\""; }else{ str+="\"\""; } } return str; }; dTree.prototype.setCS=function(_21){ var _22; for(var n=0;n