// O'range 2001 Ilya Muzukin ilya@iep.uran.ru var ns ; var ie ; var n6; var W; function BrowserCheck() { var b = navigator.appName; if (document.layers) {this.b = "ns";ns=true;} else if (document.all) {this.b = "ie";ie=true;} else this.b = b this.version = navigator.appVersion; this.v = parseInt(this.version); if(!ie&&document.getElementById){ns=false;n6=true;}; if(ns||n6){W=window.innerWidth-16}else{W=document.body.offsetWidth-20;} } function TreeItem(id,parid,name,link,target,image) { this.vname="DdMenu"+TreeItem.dmcount; TreeItem.dmcount++; this.image=image; this.name=name; this.frname=""; this.id=id; this.parentItem=null; this.parid=parid; this.link=link; this.target=target; this.items=new Array(); this.itemCount=0; this.Opened=false; this.bckColor="#f0f0f0"; this.fntColor="#ffffff"; this.selFntColor="#00ffff"; this.fntSize=2; this.css=null; this.selBckColor="#a0a0a0"; this.alinkColor="#ffff00"; this.arrIm="list-img0.gif"; this.arrIm1="list-img1.gif"; this.iob=null;this.iob1=null; this.xpos=0; this.ypos=0; this.selected=0; this.height=600; this.width=150; this.iHeight=21; this.imWidth=18; this.focus=-1; this.bSize=1; this.tW=0; this.tH=0; this.bColor="#000000" this.WriteCSS = TreeItemWriteCSS; this.Show = TreeItemShow; this.Add = TreeItemAdd; this.WriteDiv = TreeItemWriteDiv; this.Get = TreeItemGet; this.A = TreeItemA; this.align="vert"; this.moveHandler=TreeItemMove; this.outHandler=TIMout; this.downHandler=TreeItemDown; this.active=false; this.Reset=TreeItemReset; this.EventInit=TIEventInit; this.MoveTo=TIMoveTo; this.Write=TreeItemWrite; this.Toggle=TIToggle; this.normText=""; this.selText="" eval(this.vname + "=this"); } function TIMoveTo(x,y) { if(this.itemCount<1) return; this.xpos=x;this.ypos=y; this.css.left=this.xpos;this.css.top=this.ypos; } function TreeItemGet(id) { if(id==this.id) return this; for(var i=0;i
"); } else if(ie) { document.write("
"); } else if(n6) { document.write("
"); } else { document.write("
"); } for(var i=0;i0&&this.arrIm!="") { im=""; im2=""; } t1="
 "+ref+""+t2+t3; this.items[i].selText=t1+scl+tc+" "+ref+t2+t3; document.write("
"+this.items[i].normText+"
"); if(ie) { this.items[i].ilayer=document.all[this.items[i].vname+"i"];this.items[i].tlayer=document.all[this.items[i].vname+"t"]; } if(n6){ this.items[i].ilayer=document.getElementById(this.items[i].vname+"i"); this.items[i].tlayer=document.getElementById(this.items[i].vname+"t"); this.items[i].tlayer.style.color=this.items[i].fntColor; this.items[i].tlayer.style.fontSize=6+2*this.items[i].fntSize+"pt"; }; if(ns)this.items[i].ilayer = eval("document."+this.vname+".document."+this.items[i].vname+"i"); } document.write("
"); for(var i=0;i0){ if(this.parentItem==null)document.write("\r\n"); } } function TreeItemShow(o) { this.focus=-1; if(this.itemCount<1) return; if(o==1) { this.css.visibility=(ns)? "show":"visible"; } else { for(var i=0;iW) nxpos=nxpos-2*this.width; this.items[sel].MoveTo(nxpos,nypos); this.items[this.selected].Show(0); this.items[sel].Show(1); if(sel!=this.focus) { this.items[this.selected].Toggle(false); this.items[sel].Toggle(true);status=this.items[sel].link; } this.selected=sel;this.focus=sel; } function TreeItemDown(i) { sel=i; if(this.items[sel].link!="") { location.href=this.items[sel].link; } } function TreeItemReset() { if(this.active)return; for(var i=0;ithis.xpos+1&&mxthis.ypos+1&&my