// Title: Tigra Tree Menu PRO // URL: http://www.softcomplex.com/products/tigra_menu_tree_pro/ // Version: 1.1 // Date: 04-30-2003 (mm-dd-yyyy) // Technical Support: support@softcomplex.com (specify product title and order ID) // Notes: Registration needed to use this script legally. // Visit official site for details. function tree(ttmpA,ttmpB){this.a_tpl=ttmpB;this.a_config=ttmpA;this.o_root=this;this.a_index=[];this.a_nodes=[];this.o_selected=null;this.n_depth=-1;var ttmpC=new Image(),ttmpD=new Image();ttmpC.src=ttmpB['icon_e'];ttmpD.src=ttmpB['icon_l'];ttmpB['im_e']=ttmpC;ttmpB['im_l']=ttmpD;for(var i=0;i<128;i++)if(ttmpB['icon_'+i]){var ttmpE=new Image();ttmpB['im_'+i]=ttmpE;ttmpE.src=ttmpB['icon_'+i]}this.toggle=function(n_id){var ttmpF=this.a_index[n_id];ttmpF.open(ttmpF.n_state&8)};this.select=function(n_id){return this.a_index[n_id].select()};this.mover=function(n_id){var ttmpF=this.a_index[n_id];ttmpF.ttmpG();ttmpF.mover(true)};this.mout=function(n_id){var ttmpF=this.a_index[n_id];ttmpF.ttmpG(true);ttmpF.mout(true)};this.find_item=function(ttmpH){for(var i=0;i3){n_id=this.n_id;this.a_children=[];while(true){n_id++;if(n_id==a_index.length)break;if(a_index[n_id].n_depth<=this.n_depth)break;if(a_index[n_id].n_depth==this.n_depth+1){a_index[n_id].ttmpP=ttmpQ;this.a_children[this.a_children.length]=a_index[n_id]}}this.open=ttmpR;this.save=ttmpg;this.load=ttmph;this.ttmpX=ttmpi}else{this.open=function(){alert("Only nodes can be opened. id="+this.n_id)};this.load=function(){return}}this.n_state=(this.n_depth?0:32)+(this.a_children?16:0)+(this.n_order==this.o_parent.a_children.length-1?1:0);var ttmpj=(this.o_root.a_tpl['style_icons']?' class="'+this.o_root.a_tpl['style_icons']+'"':''),ttmpk=[],ttmpl=this.o_parent,ttmpm=this.a_config[2];for(var i=this.n_depth;i>1;i--){ttmpk[i]='';ttmpl=ttmpl.o_parent}this.load();var ttmpn=this.state_lookup(true);return '
'+ttmpk.join('')+(ttmpn[1]?(this.a_children?'':''):'')+(ttmpn[0]?'':'')+''+this.a_config[0]+'
'+(this.a_children?'
'+this.ttmpX():'none">')+'
':'')}function ttmpi(){var ttmpo=[];for(var i=0;i