// Title: Tigra Tree Menu PRO // URL: http://www.softcomplex.com/products/tigra_menu_tree_pro/ // Version: 1.2 // Date: 05-07-2004 (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(tmp0,tmp1,tmp2){var i;this.a_tpl=tmp1;this.a_config=tmp0;this.o_root=this;this.a_index=[];this.a_nodes=[];this.o_selected=0;this.n_depth=-1;this.tmp3=Boolean(tmp1['multiselections']);this.tmp4=tmp1['cookie_ext']?tmp1['cookie_ext']:'';this.tmp5=tmp1['b_solid'];this.tmp6=tmp1['b_rootcollapse']?0:1;var tmp7=new Image(),tmp8=new Image();tmp7.src=tmp1['icon_e'];tmp8.src=tmp1['icon_l'];tmp1['im_e']=tmp7;tmp1['im_l']=tmp8;for(i=0;i<128;i++)if(tmp1['icon_'+i]){var tmp9=new Image();tmp1['im_'+i]=tmp9;tmp9.src=tmp1['icon_'+i]}this.toggle=function(n_id){var tmpA=this.a_index[n_id];tmpA.open(tmpA.n_state&8)};this.select=function(n_id){if(this.tmp3){var tmpA=this.a_index[n_id];return tmpA.select(tmpA.n_state&4)}return this.a_index[n_id].select()};this.mover=function(n_id){var tmpA=this.a_index[n_id];tmpA.tmpB();tmpA.mover(true)};this.mout=function(n_id){var tmpA=this.a_index[n_id];tmpA.tmpB(true);tmpA.mout(true)};this.find_item=function(tmpC,tmpD){var tmp0=[];tmpD=tmpD?1:0;for(var i=0;i3){var tmpX=tmpY('c'+this.o_root.n_id+'_'+this.n_id);if(!tmpX.innerHTML)tmpX.innerHTML=this.tmpZ();tmpX.style.display=(tmpU?'none':'block')}}else if(!tmpV&&this.a_config.length>3)window.location=window.location}function tmpa(tmpb){var tmpW=(this.a_config[2]?this.a_config[2][tmpb?'hd':'hs']:null);tmpW=(tmpW?tmpW:this.o_root.a_tpl[tmpb?'onItemDeselect':'onItemSelect']);if(tmpW){eval('var tmpP='+tmpW+'(this);');if(!tmpP)return false}if(tmpb){this.n_state&=~4}else{if(!this.o_root.tmp3){var tmpc=this.o_root.o_selected;if(tmpc)tmpc.select(true);this.o_root.o_selected=this}this.n_state|=4}this.selsave();this.state_lookup();this.tmpB();return Boolean(this.a_config[1])}function tmpd(){var tmpW=(this.a_config[2]?this.a_config[2]['hv']:null);tmpW=(tmpW?tmpW:this.o_root.a_tpl['onItemMover']);if(tmpW){eval('var tmpP='+tmpW+'(this);');if(!tmpP)return false}this.n_state|=64;this.state_lookup()}function tmpe(){var tmpW=(this.a_config[2]?this.a_config[2]['hu']:null);tmpW=(tmpW?tmpW:this.o_root.a_tpl['onItemMout']);if(tmpW){eval('var tmpP='+tmpW+'(this);');if(!tmpP)return false}this.n_state&=~64;this.state_lookup()}function tmpf(tmpg){window.setTimeout("window.status=unescape('"+(tmpg?'':(this.a_config[2]&&this.a_config[2]['sb']?escape(this.a_config[2]['sb']):escape(this.a_config[0])+(this.a_config[1]?' ('+escape(this.a_config[1])+')':'')))+"')",10)}function tmpR(){var a_index=this.o_root.a_index,n_id=this.n_id,i;this.state_lookup=tmph;this.mover=tmpd;this.mout=tmpe;this.select=tmpa;this.selsave=tmpi;this.load=tmpj;this.tmpB=tmpf;var tmpk=[],tmpl=new RegExp("o_tree_item","g");var tmpm=this.a_config[2]?1:0;tmpk[1]=(tmpm?this.a_config[2]['hie']||this.o_root.a_tpl['userIconEvent']:this.o_root.a_tpl['userIconEvent']);tmpk[2]=(tmpm?this.a_config[2]['hte']||this.o_root.a_tpl['userTextEvent']:this.o_root.a_tpl['userTextEvent']);if(this.a_config.length>3||this.tmpS){tmpk[0]=(tmpm?this.a_config[2]['hje']||this.o_root.a_tpl['userJoinEvent']:this.o_root.a_tpl['userJoinEvent']);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].tmpQ=tmpR;this.a_children[this.a_children.length]=a_index[n_id]}}this.open=tmpT;this.save=tmpn;this.tmpZ=tmpo}else{this.open=function(){}}this.n_state=(this.n_depth?0:32)+(this.a_children||this.tmpS?16:0)+(this.n_order==this.o_parent.a_children.length-1?1:0);var tmpp=(this.o_root.a_tpl['style_icons']?' class="'+this.o_root.a_tpl['style_icons']+'"':''),tmpq=[],tmpr=this.o_parent,tmps=this.a_config[2];for(i=this.n_depth;i>this.o_root.tmp6;i--){tmpq[i]='';tmpr=tmpr.o_parent}this.load();for(i in tmpk){if(tmpk[i]){tmpk[i]=tmpt(tmpk[i]);tmpk[i]=tmpk[i].replace(tmpl,'TREES[\''+this.o_root.n_id+'\'].a_index['+this.n_id+']')}else tmpk[i]=''}var tmpu=this.state_lookup(true);return '
'+tmpq.join('')+(tmpu[1]?(this.a_children?'':''):'')+(tmpu[0]?'':'')+''+this.a_config[0]+'
'+(this.a_children?'
'+this.tmpZ():'none">'+(this.o_root.tmp5?this.tmpZ():''))+'
':'')}function tmpo(){var tmpv=[];for(var i=0;i