// Title: Tigra Tree Menu PRO
// URL: http://www.softcomplex.com/products/tigra_menu_tree_pro/
// Version: 1.3.3 (customized)
// Date: 04/09/2008
// Notes: Registration needed to use this script legally.
// Visit official site for details.

function tree(a_items,ttE,s_name){var i;this.a_tpl=ttE;this.a_config=a_items;this.o_root=this;this.a_index=[];this.a_nodes=[];this.o_selected=0;this.n_depth=-1;this.tt0x='tree';this.ttW=Boolean(ttE['multiselections']);this.tt0f=ttE['cookie_ext']?ttE['cookie_ext']:'';this.ttF=ttE['b_solid'];this.ttI=!ttE['b_rootcollapse'];this.ttQ=!ttE['keep_states'];this.ttJ=!ttE['disable_states'];var tt0R=new Image(),tt0S=new Image();tt0R.src=ttE['icon_e'];tt0S.src=ttE['icon_l'];ttE['im_e']=tt0R;ttE['im_l']=tt0S;for(i=0;i<128;i++)if(ttE['icon_'+i]){var tt0Q=new Image();tt0Q.src=ttE['icon_'+i];ttE['im_'+i]=tt0Q;}this.toggle=function(n_id){var tt0U=this.a_index[n_id];tt0U.open(tt0U.n_state&8);};this.select=function(n_id){if(window.ttM){window.ttM=false;window.tt0O=null;}if(this.ttW){var tt0U=this.a_index[n_id];return tt0U.select(tt0U.n_state&4);}return this.a_index[n_id].select();};this.mover=function(n_id,tth){var tt0U=this.a_index[n_id];if(!tth)tth=event;var ttj=tth.target?tth.target:tth.srcElement;ttj.style.cursor=window.ttN?(tt0U.ttn('dp')?'crosshair':'not-allowed'):(tt0U.ttn('dg')?'all-scroll':'pointer');tt0U.upstatus();tt0U.mover(true);};this.mout=function(n_id){var tt0U=this.a_index[n_id];tt0U.upstatus(true);tt0U.mout(true);};this.tt12=tt04;this.insert=ttt;this.remove=tty;this.find_item=function(tt0z,ttS){var a_items=[];ttS=ttS?1:0;for(var i=0;i<this.a_index.length;i++)if(this.a_index[i]&&this.a_index[i].a_config[ttS]==tt0z){a_items[a_items.length]=this.a_index[i];}return a_items;};this.find_item_by_key=function(tt0n,tt0z){var a_items=[];for(var i=0;i<this.a_index.length;i++)if(this.a_index[i].a_config[2][tt0n]==tt0z){a_items[a_items.length]=this.a_index[i];}return a_items;};this.find_item_by_state=function(tt0A){var a_items=[];for(var i=0;i<this.a_index.length;i++)if(this.a_index[i].n_state&tt0A){a_items[a_items.length]=this.a_index[i];}return a_items;};this.ttX=false;this.tt0L=function(){if(!tt2&&this.ttX)window.location=window.location;};this.tt0e=function(){var exp=new Date();exp.setTime(exp.getTime()-1000);document.cookie='tree_'+this.n_id+'_state=;'+this.tt0f+';expires='+exp.toGMTString();document.cookie='tree_'+this.n_id+'_selected=;'+this.tt0f+';expires='+exp.toGMTString();this.ttC=[];this.ttB=[];};this.changeCont=function(a_items,ttO){this.a_config=a_items;this.a_index=[];this.a_nodes=[];while(!this.a_config[this.a_config.length-1])this.a_config.length=this.a_config.length-1;if(!ttO){this.tt0e();this.ttT=1;}else{if(ttE['onConstruct']){eval('var tt_='+ttE['onConstruct']+'(this);');if(!tt_)return false;}this.tt0b=function(tt3,tt0n){var tt0c=new RegExp('^\\s*(\\S+)\\s*=\\s*([\\d_]*)\\s*$'),tt0z;for(var i=0;this.ttJ&&i<tt3.length;i++){if(!tt0c.exec(tt3[i])||RegExp.$1!=tt0n)continue;tt0z=RegExp.$2;return tt0z.split('_');}return[];};var tt3=document.cookie.split(';'),tt0o='tree_'+this.n_id+'_state',tt0p='tree_'+this.n_id+'_selected';this.ttC=this.tt0b(tt3,tt0o);this.ttB=this.tt0b(tt3,tt0p);if(!this.ttC.length)this.ttT=1;this.ttQ=this.ttT||this.ttQ;}this.a_children=[];for(i=0;i<a_items.length;i++)new tree_item(this,i);if(ttO&&ttE['beforeInit']){eval('var tt_='+ttE['beforeInit']+'(this);');if(!tt_)return false;}var tt0T=ttm('c'+this.n_id);if(!tt0T){document.write('<div id="c'+this.n_id+'" onmousemove="f_DragProgress(event, '+this.n_id+')" onselectstart="return false"></div>');tt0T=ttm('c'+this.n_id);}tt0T.innerHTML=this.tt12();if(ttO&&ttE['afterInit'])eval(ttE['afterInit']+'(this);');};tt2=Boolean(document.body&&document.body.innerHTML);this.n_id=s_name?s_name:TREES.length;TREES[this.n_id]=this;this.changeCont(a_items,1);}function tree_item(o_parent,n_order){this.o_root=o_parent.o_root;this.n_depth=o_parent.n_depth+1;this.a_config=o_parent.a_config[n_order+(this.n_depth?3:0)];this.o_parent=o_parent;this.n_order=n_order;this.tto=tts;this.remove=tty;while(this.a_config.length&&!this.a_config[this.a_config.length-1])this.a_config.length=this.a_config.length-1;if(!this.a_config[2])this.a_config[2]={};this.n_id=this.o_root.a_index.length;this.o_root.a_index[this.n_id]=this;o_parent.a_children[n_order]=this;if(this.o_root.ttQ&&typeof(this.a_config[2]['sl'])=='number')if(Boolean(this.a_config[2]['sl']))if(!this.o_root.ttW)this.o_root.o_selected=this;this.state=tt02;this.ttP=this.a_config[2]['fn']||this.a_config[2]['lod'];if(this.a_config.length<4&&!this.ttP)return;this.n_node_id=this.o_root.a_nodes.length;this.o_root.a_nodes[this.n_node_id]=this;this.a_children=[];for(var i=3;i<this.a_config.length;i++)new tree_item(this,i-3);}function ttp(tt6){if(typeof(tt6)!='object')return alert('invalid parameter to changeContnet call');for(var i=0;i<this.a_children.length;i++){if(this.a_children[i].a_children){this.o_root.a_nodes[this.a_children[i].n_node_id]=null;this.a_children[i].changeCont([]);}this.o_root.a_index[this.a_children[i].n_id]=null;}if(!tt6.length)this.open(1);this.a_children=[];this.a_config.length=3;for(var i=0;i<tt6.length;i++){this.a_config[i+3]=tt6[i];var tt0W=new tree_item(this,i);if(tt0W){this.a_children[this.a_children.length]=tt0W;}}var tt0T=ttm('c'+this.o_root.n_id+'_'+this.n_id);if(this.n_state&8){tt0T.innerHTML=this.tt12();this.n_state&=~8;this.open();}else{tt0T.innerHTML='';this.ttZ=0;}}function ttt(tt5,tt0F){if(typeof(tt5)!='object'||tt5.length<1){alert('invalid parameter to insert call');return false;}if(this.ttn('mg')){for(var i=0;i<this.a_children.length;i++){if(this.a_children[i].a_config[0]==tt5[0]){var tt0U=this.a_children[i];if(!tt0U.a_children||tt5.length<4)return false;for(var i=3;i<tt5.length;i++)tt0U.insert(tt5[i]);return true;}}}if(tt0F==null)tt0F=this.a_children.length;for(var i=this.a_children.length-1;i>=tt0F;i--){this.a_config[i+(this.n_depth==-1?1:4)]=this.a_config[i+(this.n_depth==-1?0:3)];this.a_children[i].n_order=i+1;this.a_children[i+1]=this.a_children[i];}this.a_config[(this.n_depth==-1?0:3)+tt0F]=tt5;var tt0W=new tree_item(this,tt0F);var tt0T=ttm('c'+this.o_root.n_id+'_'+this.n_id);if(this.n_state&8){tt0T.innerHTML=this.tt12();this.n_state&=~8;this.open();}else{tt0T.innerHTML='';this.ttZ=0;}return true;}function tty(n_order){if(n_order=='all'){for(var i=0;i<this.a_children.length;i++){if(this.a_children[i].a_children&&this.a_children[i].a_children.length){this.a_children[i].remove('all');this.o_root.a_nodes[this.a_children[i].n_node_id]=null;}this.o_root.a_index[this.a_children[i].n_id]=null;}this.a_children=[];return;}var tt0U=this.a_children[n_order];if(!tt0U)return;if(tt0U.a_children&&tt0U.a_children.length)tt0U.remove('all');this.o_root.a_index[tt0U.n_id]=null;for(var i=n_order;i<this.a_children.length-1;i++){this.a_config[i+(this.n_depth?3:0)]=this.a_config[i+(this.n_depth?4:1)];this.a_children[i]=this.a_children[i+1];this.a_children[i].n_order=i;}this.a_config.length=this.a_config.length-1;this.a_children.length=this.a_children.length-1;var tt0T=ttm('c'+this.o_root.n_id+'_'+this.n_id);if(this.a_children.length&&(this.n_state&8)){tt0T.innerHTML=this.tt12();this.n_state&=~8;this.open();}else{tt0T.style.display='none';tt0T.innerHTML='';this.ttZ=0;}}var tt1={'dg':'drag','dp':'drop','mg':'dropMerge'};function ttr(tt0t){if(this.a_config[2][tt0t]!=null)return this.a_config[2][tt0t];if(this.n_depth)return this.o_parent.ttn(tt0t);return this.o_root.a_tpl[tt1[tt0t]];}function ttx(ttH,ttY){if(Boolean(this.n_state&8)!=Boolean(ttH))return;var tt0r;if(!ttH)tt0r=(this.a_config[2]['lod']?this.a_config[2]['lod']:this.o_root.a_tpl['onDemandLoad']);if(tt0r){this.ttU=1;eval('var tt_='+tt0r+'(this);');}var tt0s=this.a_config[2][ttH?'hc':'ho'];tt0s=(tt0s?tt0s:this.o_root.a_tpl[ttH?'onItemClose':'onItemOpen']);if(tt0s){eval('var tt_='+tt0s+'(this);');if(!tt_)return false;}this.n_state^=8;this.o_root.ttX=true;this.state_lookup();this.upstatus();if(this.o_root.ttJ&&!this.ttU)this.save();if(tt2&&this.a_children.length){var tt0T=ttm('c'+this.o_root.n_id+'_'+this.n_id);tt0T.style.display=(ttH?'none':'block');if(!this.ttZ)tt0T.innerHTML=this.tt12();}else if(!ttY&&this.a_config.length>3)window.location=window.location;}function tt00(ttL){var tt0h=this.a_config[2][ttL?'hd':'hs'];tt0h=(tt0h?tt0h:this.o_root.a_tpl[ttL?'onItemDeselect':'onItemSelect']);if(tt0h){eval('var tt_='+tt0h+'(this);');if(!tt_)return false;}if(ttL){this.n_state&=~4;}else{if(!this.o_root.ttW){var tt0Y=this.o_root.o_selected;if(tt0Y&&tt0Y!=this&&tt0Y.upstatus){tt0Y.select(true);this.o_root.o_selected=this;}this.o_root.o_selected=this;}this.n_state|=4;}if(this.o_root.ttJ&&!this.ttU)this.tt11();this.state_lookup();this.upstatus();return Boolean(this.a_config[1]);}function ttw(){var tt0h=this.a_config[2]['hv'];tt0h=(tt0h?tt0h:this.o_root.a_tpl['onItemMover']);if(tt0h){eval('var tt_='+tt0h+'(this);');if(!tt_)return false;}this.n_state|=64;this.o_root.tt0E=this.n_id;this.state_lookup();}function ttv(){var tt0h=this.a_config[2]['hu'];tt0h=(tt0h?tt0h:this.o_root.a_tpl['onItemMout']);if(tt0h){eval('var tt_='+tt0h+'(this);');if(!tt_)return false;}this.n_state&=~64;this.state_lookup();}function tt02(){var tt0_={'inited':false};if(this.upstatus){tt0_['inited']=true;tt0_['root']=this.n_state&32?true:false;tt0_['node']=this.n_state&16?true:false;tt0_['opened']=this.n_state&8?true:false;tt0_['selected']=this.n_state&4?true:false;tt0_['hovered']=this.n_state&64?true:false;tt0_['last']=this.n_state&1?true:false;}return tt0_;}function tt05(ttG){window.setTimeout("window.status=unescape('"+(ttG?'':(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 tts(){var ttA=[],tt0d=new RegExp("o_tree_item","g");ttA[1]=this.a_config[2]['hie']||this.o_root.a_tpl['userIconEvent'];ttA[2]=this.a_config[2]['hte']||this.o_root.a_tpl['userTextEvent'];var a_index=this.o_root.a_index,n_id=this.n_id,i;if(!this.state_lookup){this.state_lookup=tt03;this.mover=ttw;this.mout=ttv;this.select=tt00;this.tt11=tt01;this.load=ttu;this.upstatus=tt05;this.ttn=ttr;if(this.a_config.length>3||this.ttP){ttA[0]=this.a_config[2]['hje']||this.o_root.a_tpl['userJoinEvent'];this.open=ttx;this.save=ttz;this.tt12=tt04;this.changeCont=ttp;this.insert=ttt;}else{this.open=function(){};}}this.n_state=(this.n_depth?0:32)+(this.a_children||this.ttP?16:0)+(this.n_order==this.o_parent.a_children.length-1?1:0);var tt0j=(this.o_root.a_tpl['style_icons']?' class="'+this.o_root.a_tpl['style_icons']+'"':''),tt7=[],tt0N=this.o_parent,tt8=this.a_config[2];var tt0g=this.o_root.a_tpl['alt_e']?this.o_root.a_tpl['alt_e']:"";var tt0q=this.o_root.a_tpl['alt_l']?this.o_root.a_tpl['alt_l']:"";for(i=this.n_depth;i>this.o_root.ttI;i--){tt7[i]='<img src="'+this.o_root.a_tpl[tt0N.n_state&33?'icon_e':'icon_l']+'" alt="'+(tt0N.n_state&33?tt0g:tt0q)+'" title="'+(tt0N.n_state&33?tt0g:tt0q)+'" border="0"'+tt0j+'>';tt0N=tt0N.o_parent;}if(this.o_parent.ttU)this.ttU=1;else this.load();for(i in ttA){if(ttA[i]){ttA[i]=ttq(ttA[i]);ttA[i]=ttA[i].replace(tt0d,'TREES[\''+this.o_root.n_id+'\'].a_index['+this.n_id+']')}else ttA[i]=''}var tt9=this.state_lookup(true);var ttd='',ttc='nowrap';var tt0v='onmouseover="TREES[\''+this.o_root.n_id+'\'].mover('+this.n_id+', event)" onmouseout="TREES[\''+this.o_root.n_id+'\'].mout('+this.n_id+')"';if(tt8['wr']){this.tt0I=tt8['wr'];ttc=' valign=top rowspan='+tt8['wr'];i=tt8['wr'];while(--i){ttd+='<tr '+tt0v+'><td nowrap>'+tt7.join('')+'<img src="'+this.o_root.a_tpl[this.n_state&1?'icon_e':'icon_l']+'" border="0"'+tt0j+'>';if(this.a_children)ttd+='<img src="'+this.o_root.a_tpl[this.n_state&8?'icon_l':'icon_e']+'"  name="_i'+this.o_root.n_id+'_'+this.n_id+'_'+i+'" border="0"'+tt0j+'>';ttd+='</tr>';}}return'<table cellpadding="0" cellspacing="0" border="0"><tr '+tt0v+' id="p'+this.o_root.n_id+'_'+this.n_id+'"><td nowrap>'+tt7.join('')+(tt9[1]?(this.a_children?'<a href="javascript: TREES[\''+this.o_root.n_id+'\'].toggle('+this.n_id+')" onclick = "TREES[\''+this.o_root.n_id+'\'].toggle('+this.n_id+');return false;" '+ttA[0]+'><img src="'+tt9[1]+'" border="0" name="j'+this.o_root.n_id+'_'+this.n_id+'" alt="'+tt9[3]+'" title="'+tt9[3]+'"'+tt0j+'></a>':'<img src="'+tt9[1]+'" border="0" alt="'+tt9[3]+'" title="'+tt9[3]+'"'+tt0j+'>'):'')+(tt9[0]?'<a href="'+this.a_config[1]+'" target="'+(tt8['tw']?tt8['tw']:this.o_root.a_tpl['target'])+'" title="'+(tt8['tt']?tt8['tt']:'')+'" onclick="return TREES[\''+this.o_root.n_id+'\'].select('+this.n_id+')" ondblclick="TREES[\''+this.o_root.n_id+'\'].'+(this.a_children?'toggle(':'select(')+this.n_id+')" onmousedown="return f_DragStart(event,'+this.o_root.n_id+','+this.n_id+')" ondragstart="return false;" onmouseup="return f_DragEnd(event,'+this.o_root.n_id+','+this.n_id+')"'+ttA[1]+' id="d'+this.o_root.n_id+'_'+this.n_id+'"><img src="'+tt9[0]+'" border="0" name="i'+this.o_root.n_id+'_'+this.n_id+'" alt="'+tt9[4]+'" title="'+tt9[4]+'"'+tt0j+'></a>':'')+'</td><td '+ttc+(tt9[2]?' class="'+tt9[2]+'"':'')+' id="t'+this.o_root.n_id+'_'+this.n_id+'" onmousedown="return f_DragStart(event,'+this.o_root.n_id+','+this.n_id+')" ondragstart="return false;" onmouseup="f_DragEnd(event,'+this.o_root.n_id+','+this.n_id+')"><a href="'+this.a_config[1]+'" target="'+(tt8['tw']?tt8['tw']:this.o_root.a_tpl['target'])+'" title="'+(tt8['tt']?tt8['tt']:'')+'" onclick="return TREES[\''+this.o_root.n_id+'\'].select('+this.n_id+')" ondblclick="TREES[\''+this.o_root.n_id+'\'].'+(this.a_children?'toggle(':'select(')+this.n_id+')" '+ttA[2]+' id="a'+this.o_root.n_id+'_'+this.n_id+'">'+this.a_config[0]+'</a></td></tr>'+ttd+'</table>'+(this.a_children||tt8['fn']||tt8['lod']?'<div id="c'+this.o_root.n_id+'_'+this.n_id+'" style="display:'+(this.n_state&8?'block">'+this.tt12():'none">'+(this.o_root.ttF?this.tt12():''))+'</div>':'');}function tt04(){var ttD=[];for(var i=0;i<this.a_children.length;i++)ttD[i]=this.a_children[i].tto();this.ttZ=1;return ttD.join('');}function ttz(){var tt0H=Math.floor(this.n_node_id/31);this.o_root.ttC[tt0H]=(this.n_state&8?this.o_root.ttC[tt0H]|(1<<(this.n_node_id%31)):this.o_root.ttC[tt0H]&~(1<<(this.n_node_id%31)));document.cookie='tree_'+this.o_root.n_id+'_state='+this.o_root.ttC.join('_')+';'+this.o_root.tt0f;}function tt01(){var tt0H=Math.floor(this.n_id/31);this.o_root.ttB[tt0H]=(this.n_state&4?this.o_root.ttB[tt0H]|(1<<(this.n_id%31)):this.o_root.ttB[tt0H]&~(1<<(this.n_id%31)));document.cookie='tree_'+this.o_root.n_id+'_selected='+this.o_root.ttB.join('_')+';'+this.o_root.tt0f;}function ttu(){var tt0h=(tt0h?tt0h:this.o_root.a_tpl['onItemLoad']);if(tt0h){eval('var tt_='+tt0h+'(this);');if(!tt_)return false;}if(this.o_root.o_selected&&!this.o_root.ttK){if(this.o_root.o_selected==this&&this.o_root.ttQ){this.n_state|=4;if(this.o_root.ttJ)this.tt11();}}else{if(this.o_root.ttQ&&typeof(this.a_config[2]['sl'])=='number'){if(Boolean(this.a_config[2]['sl']))this.n_state|=4;else this.n_state&=~4;if(this.o_root.ttJ)this.tt11();}else{var tt0H=Math.floor(this.n_id/31);if(Boolean(this.o_root.ttB[tt0H]&(1<<(this.n_id%31)))){this.n_state|=4;if(!this.o_root.ttW){this.o_root.ttK=1;this.o_root.o_selected=this;}}else this.n_state&=~4;}}if(!this.a_children)return;if(this.o_root.ttT&&!this.n_depth&&typeof(this.a_config[2]['st'])!='number')this.a_config[2]['st']=1;if(this.o_root.ttQ&&typeof(this.a_config[2]['st'])=='number'){if(Boolean(this.a_config[2]['st']))this.n_state|=8;else this.n_state&=~8;if(this.o_root.ttJ)this.save();return;}var tt0H=Math.floor(this.n_node_id/31);if(Boolean(this.o_root.ttC[tt0H]&(1<<(this.n_node_id%31))))this.n_state|=8;else this.n_state&=~8;}function tt03(tta){var tt07=this.n_state&~3;var tt09=this.n_state&~68|2;var tt0k=this.a_config[2]['i'+(tt07&~48)];if(!tt0k)tt0k=this.o_root.a_tpl['icon_'+tt07];if(!tt0k)tt0k=this.o_root.a_tpl['icon_'+(tt07&~64)];var tt0m=this.o_root.a_tpl['icon_'+tt09];var tt0w=this.a_config[2]['s'+(tt07&~48)];if(!tt0w)tt0w=this.o_root.a_tpl['style_'+tt07];if(!tt0w)tt0w=this.o_root.a_tpl['style_'+(tt07&~64)];var tt0l=this.o_root.a_tpl['alt_'+tt09];tt0l=tt0l?tt0l:"";var tt0i=this.a_config[2]['a'+(tt07&~48)]||this.o_root.a_tpl['alt_'+tt07];if(!tt0i)tt0i=this.o_root.a_tpl['alt_'+tt07];tt0i=tt0i?tt0i:"";if(tta)return[tt0k,tt0m,tt0w,tt0l,tt0i];var tt0X=document.images['j'+this.o_root.n_id+'_'+this.n_id];if(tt0X){tt0X.src=tt0m;tt0X.alt=tt0X.title=tt0l}tt0X=document.images['i'+this.o_root.n_id+'_'+this.n_id];if(tt0X){tt0X.src=tt0k;tt0X.alt=tt0X.title=tt0i}if(this.tt0I){var tt10=this.o_root.a_tpl[this.n_state&8?'icon_l':'icon_e'];var i=this.tt0I;while(--i){tt0X=document.images['_i'+this.o_root.n_id+'_'+this.n_id+'_'+i];if(tt0X)tt0X.src=tt10;}}tt0X=ttm('t'+this.o_root.n_id+'_'+this.n_id);if(!tt0X)return;tt0X.className=tt0w;return false;}function ttq(ttA){var tt0u=[];for(var tt0n in ttA)tt0u[tt0u.length]=tt0n+'="'+ttA[tt0n]+'"';return tt0u.join(' ');}function ttb(tt0a,tt0U){var tt0M=tt0a;while(true){if(tt0a==tt0U)return true;if(!tt0a.n_depth)return false;tt0a=tt0a.o_parent;}}var TREES=[],tt2;ttm=document.all?function(s_id){return document.all[s_id]}:(document.getElementById?function(s_id){return document.getElementById(s_id)}:function(s_id){return null});function f_DragStart(tth,n_menu_id,n_item_id){if(window.ttN)return true;var o_root=TREES[n_menu_id];if(!o_root.a_index[n_item_id].ttn('dg'))return true;window.ttM=true;window.tt0O=o_root.a_index[n_item_id];return false;}function f_DragProgress(tth,n_menu_id){if(!tth)tth=event;tth.cancelBubble=true;window.tt06=n_menu_id;if(!window.ttN&&!window.ttM)return true;var tt0B=(tth.pageX?tth.pageX+2:tth.clientX),tt0C=(tth.pageY?tth.pageY+2:tth.clientY);var tt0J=tt0B+ttk()+8,tt0K=tt0C+ttl();if(window.ttM&&window.tt0O){window.ttM=false;var o_root=tt0O.o_root;if(!(tt0O.n_state&4))o_root.select(tt0O.n_id,tth);window.tt4=[];var tt0U,tt0V;for(var i=0;i<o_root.a_index.length;i++){tt0U=o_root.a_index[i];if(!tt0U)continue;if((tt0U.n_state&4)&&tt0U.ttn('dg')){tt0V=f_copyItem(tt0U);var tt0h=(tt0U.a_config[2]['odg']?tt0U.a_config[2]['odg']:tt0U.o_root.a_tpl['onDragBegin']);if(tt0h){eval('var tt_='+tt0h+'(tt0V);');if(!tt_)continue;}tt4[window.tt4.length]=tt0V;}}if(!tt4.length){tt0O=null;return true;}var tte,tti;if(!window.ttf){tte=document.createElement("DIV");tte.style.position='absolute';tte.style.zIndex=51;tte.style.visibility='hidden';document.body.appendChild(tte);window.ttf=tte;if(window.ttR){tti=document.createElement("IFRAME");tti.style.position='absolute';tti.style.zIndex=50;tti.style.visibility='hidden';tti.src='about:blank';tti.style.filter='alpha(opacity=0)';tti.opacity=0;document.body.appendChild(tti);window.ttg=tti;}}else{tte=window.ttf;tti=window.ttg;}var tt0j=(o_root.a_tpl['style_icons']?' class="'+o_root.a_tpl['style_icons']+'"':''),tt0w;if(window.tt4.length==1){var tt0P=window.tt4[0];var tt0G=(tt0P.n_state&~79)+128;tt0w=tt0P[2]['s'+(tt0G&~48)];if(!tt0w)tt0w=o_root.a_tpl['style_'+tt0G];var tt0k=tt0P[2]['i'+(tt0G&~48)];if(!tt0k)tt0k=o_root.a_tpl['icon_'+tt0G];tte.innerHTML=tt0P['html']?tt0P['html']:'<img src="'+tt0k+'" border="0"'+tt0j+' align="absmiddle"> '+tt0P[0];}else{tt0w=o_root.a_tpl['style_multiple'];tte.innerHTML='<img src="'+o_root.a_tpl['icon_multiple']+'" border="0"'+tt0j+' align="absmiddle"> '+o_root.a_tpl['text_multiple'];}tte.style.left=tt0J+'px';tte.style.top=tt0K+'px';tte.className=tt0w;tte.style.visibility='visible';if(tti){tti.style.left=tt0J+'px';tti.style.top=tt0K+'px';tti.style.visibility='visible';tti.style.width=tte.offsetWidth+'px';tti.style.height=tte.offsetHeight+'px';}ttN=true;}else if(!window.ttf){return false;}else{ttf.style.left=tt0J+'px';ttf.style.top=tt0K+'px';if(window.ttg){ttg.style.left=tt0J+'px';ttg.style.top=tt0K+'px';}}return true;}document.onmouseup=f_DragStop;document.onmousemove=f_DragProgress;function f_DragEnd(tth,n_menu_id,n_item_id){if(!window.ttN||!window.tt4||!window.tt4.length)return true;if(window.tt06!=null)n_menu_id=tt06;var tt0Z=n_item_id!=null?TREES[n_menu_id].a_index[n_item_id]:null,o_root=TREES[n_menu_id];if(n_item_id!=null&&!tt0Z.ttn('dp')){f_DragStop(tth);return true;}if(tt0Z&&tt0Z==window.tt0O){f_DragStop(tth);return true;}ttN=false;ttf.style.visibility='hidden';if(window.ttg)ttg.style.visibility='hidden';for(var i=0;i<tt4.length;i++){var tt0P=tt4[i];var ttV=(ttb(tt0Z,tt0P.o_parent.a_children[tt0P.n_order]));var tt0h=tt0P[2]['odp']?tt0P[2]['odp']:o_root.a_tpl['onDragEnd'];if(tt0h){eval('var tt_='+tt0h+'(tt0P, tt0Z, ttV);');if(!tt_)tt4[i]=null;}if(ttV)tt4[i]=null;}for(var i=tt4.length-1;i>=0;i--){tt0U=tt4[i];if(!tt0U)continue;if(tt0U.b_move)tt0U.o_parent.remove(tt0U.n_order);tt0U.b_move=null;tt0U['odp']=null;}if(tt0Z&&(tt0Z.a_children||tt0Z.ttP))tt08=tt0Z.a_children.length;else if(tt0Z){tt08=tt0Z.n_order;tt0Z=tt0Z.o_parent;}else{tt08=tt0Z.o_root.a_children.length;tt0Z=tt0Z.o_root;}var tt0D=0;for(var i=0;i<tt4.length;i++){if(!tt4[i])continue;tt0Z.insert(tt4[i],tt08+tt0D);tt0D++;}tt0O=null;return true;}function f_DragStop(tth){if(!window.ttN||!window.ttf)return;ttf.style.visibility='hidden';if(window.ttg)ttg.style.visibility='hidden';ttN=false;window.tt0O=null;}var tt0y=navigator.userAgent.toLowerCase();window.ttR=String(tt0y).match(/msie\s[567]/i);var tt0=['sb','tt','odp','dg','dp','ed','html','fn','val','mg'];function f_copyItem(tt0U){var tt5=[tt0U.a_config[0],tt0U.a_config[1],{}];tt5.o_parent=tt0U.o_parent;tt5.n_order=tt0U.n_order;tt5.n_state=tt0U.n_state;for(var i=0;i<tt0.length;i++){tt5[2][tt0[i]]=tt0U.a_config[2][tt0[i]];}if(tt0U.a_children)for(var i=0;i<tt0U.a_children.length;i++)tt5[i+3]=f_copyItem(tt0U.a_children[i]);return tt5;}function ttk(){if(!window.ttR)return 0;if(typeof(window.pageXOffset)=='number')return window.pageXOffset;if(document.body&&document.body.scrollLeft)return document.body.scrollLeft;if(document.documentElement&&document.documentElement.scrollLeft)return document.documentElement.scrollLeft;return 0;}function ttl(){if(!window.ttR)return 0;if(typeof(window.pageYOffset)=='number')return window.pageYOffset;if(document.body&&document.body.scrollTop)return document.body.scrollTop;if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;return 0;}