var last_w=null;var flyglo_callingItem=null;var flyglo_showTi=null;var flyglo_aM=new Object();var flyglo_aP=[["",""],[" - mw.offsetHeight + 28"," + mi.offsetWidth + 3"],[" - mw.offsetHeight + 45"," - mw.offsetWidth"],[" + mi.offsetHeight + 10",""]];var tnst_menu_template="<div class=\"tnst_menuwindow\" id=\"tnst_menuwindowT\"><table><tr><td><div class=\"flyglo_tr\"><div class=\"flyglo_uple1\"></div><div class=\"flyglo_upri1\"></div><div class=\"flyglo_up1\"></div></div><div class=\"flyglo_main1\">"+tnst_menuitem_template+"</div><div class=\"flyglo_tr\"><div class=\"flyglo_dole1\"></div><div class=\"flyglo_dori1\"></div><div class=\"flyglo_do1\"></div></div></td></tr></table></div>";function flyglo_getPosition(ob,_2){var _3=0;while(ob.offsetParent){_3+=eval("ob.offset"+_2);ob=ob.offsetParent;}return _3;}function flyglo_getScrollTop(){if(window.pageYOffset){return window.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}else{if(document.body){return document.body.scrollTop;}}}}function flyglo_getWindowHeight(){if(window.innerHeight){return window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight;}else{if(document.body){return document.body.clientHeight;}}}}function flyglo_getWindowByItem(_4){return _4.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;}function flyglo_markParentItems(_5){var mw=flyglo_getWindowByItem(_5);var _7=eval(mw.id.replace(/tnst_menuwindow/,""));for(var i in aM){for(var j in aM[i]){if(aM[i][j][2]==_7){if(par_mitem=document.getElementById("tnst_mitem"+_7)){par_mitem.className+=" tnst_mi_current";flyglo_markParentItems(par_mitem);}}}}}function tnst_getEventTarget(e){if(e.target){return e.target;}if(e.srcElement){return e.srcElement;}alert("getEventTarget failed");}function tnst_getFromTarget(e){return e.relatedTarget?e.relatedTarget:e.fromElement;}function tnst_getToTarget(e){return e.relatedTarget?e.relatedTarget:e.toElement;}function flyglo_dK(){if(this.ti){clearTimeout(this.ti);this.ti=null;}if(this.parwin){this.parwin.dK();}}function flyglo_dR(){if(!this.ti){this.ti=setTimeout("flyglo_dH('"+this.id+"')",400);}if(this.parwin){this.parwin.dR();}}function flyglo_kill(){if(this.ti){clearTimeout(this.ti);this.ti=null;}flyglo_dH(this.id);}function flyglo_dS(){if(this.ti){clearTimeout(this.ti);this.ti=null;}if(last_w!=this&&last_w!=this.parwin){last_w.kill();}last_w=this;}function flyglo_dH(_d){var d,xxx,ddd;if(!(d=document.getElementById(_d))){return;}last_w=d.parwin?d.parwin:null;d.style.top="-1000px";ddd=document.getElementById(_d).callerItem;if(ddd){ddd.tnst_miNo();}}function tnst_miHi(){this.className=this.className.replace(/normal/,"highlight");}function tnst_miNo(){this.className=this.className.replace(/highlight/,"normal");}function tnst_miCl(){document.location.href=this.getElementsByTagName("a")[0].href;}function tnst_awSdelay(e){if(flyglo_showTi){clearTimeout(flyglo_showTi);}flyglo_showTi=setTimeout("tnst_awS()",400);flyglo_callingItem=this;this.tnst_miHi();}function tnst_awS(){if(flyglo_showTi){flyglo_showTi=null;}var mi=flyglo_callingItem;var _11=/tnst_mitem(\d+)_?(\d*)/;var _12=_11.exec(mi.id);var xxx="tnst_menuwindow"+_12[1];var _14=_12[2]?_12[2]:tnst_menudir;if(mw=document.getElementById(xxx)){var _15=eval("flyglo_getPosition(mi, \"Top\")"+flyglo_aP[_14][0]);var _16=eval("flyglo_getPosition(mi, \"Left\")"+flyglo_aP[_14][1]);var _17=flyglo_getScrollTop();if((_15+mw.offsetHeight)>(_17+window.innerHeight)){_15=_17+window.innerHeight-mw.offsetHeight;}if(_15<_17){_15=_17;}mw.style.top=_15+"px";mw.style.left=_16+"px";mw.callerItem=mi;var _18=mi.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;mw.parwin=(_18.className=="tnst_menuwindow")?_18:null;mw.dS();}}function tnst_awT(e){var _1a=/tnst_mitem(\d+)_?(\d*)/;var _1b=_1a.exec(this.id);var xxx="tnst_menuwindow"+_1b[1];x=document.getElementById(xxx);if(flyglo_showTi){if(x!=last_w){this.tnst_miNo();}clearTimeout(flyglo_showTi);flyglo_showTi=null;return;}if(x){x.dR();}}document.write(tnst_menu_template);function tnst_initMenu(){var z=document.getElementsByTagName("tr");for(var j=0;j<z.length;j++){if(z[j].className.search(/tnst_mitem/)!=-1){if(z[j].id!=""){z[j].onmouseover=tnst_awSdelay;z[j].onmouseout=tnst_awT;z[j].tnst_miHi=tnst_miHi;z[j].tnst_miNo=tnst_miNo;}else{z[j].onmouseover=tnst_miHi;z[j].onmouseout=tnst_miNo;z[j].onclick=tnst_miCl;}}}var str=document.getElementById("myurl").innerHTML;count=0;uppref="";pos=str.indexOf("/");while(pos!=-1){count++;if(count>2){uppref+="../";}pos=str.indexOf("/",pos+1);}y=document.getElementById("tnst_menuwindowT");for(var i in aM){var mgt=y.cloneNode(true);z=document.getElementById("tnst_mitemT");y.id="tnst_menuwindow"+i;y.onmouseover=flyglo_dK;y.onmouseout=flyglo_dR;y.dS=flyglo_dS;y.dK=flyglo_dK;y.dR=flyglo_dR;y.kill=flyglo_kill;for(var j in aM[i]){if(j<aM[i].length-1){var mit=z.cloneNode(true);}za=z.getElementsByTagName("a")[0];za.innerHTML=aM[i][j][0];if(aM[i][j][1]!=null&&aM[i][j][1]!=""){if(tnst_menulocal){pref=uppref;}else{if(aM[i][j][1].charAt(0)!="#"){pref="http://";}else{pref="";}}za.setAttribute("href",pref+aM[i][j][1]);}else{za.removeAttribute("href");if(aM[i][j][1]!=""){if(aM[i][j][2]!=null){za.className="submenu";}else{za.className="header";z.className="header";z.id=null;}}}if(aM[i][j][2]!=null){z.id="tnst_mitem"+aM[i][j][2];z.getElementsByTagName("div")[0].parentNode.className="point";z.onmouseover=tnst_awSdelay;z.onmouseout=tnst_awT;z.tnst_miHi=tnst_miHi;z.tnst_miNo=tnst_miNo;}else{if(z.className!="header"){z.id=null;z.onmouseover=tnst_miHi;z.onmouseout=tnst_miNo;z.onclick=tnst_miCl;}}if(j<aM[i].length-1){z.parentNode.appendChild(mit);z=mit;}}if(i<aM.length-1){y.parentNode.appendChild(mgt);y=mgt;}}var z=document.getElementsByTagName("div");for(var j=0;j<z.length;j++){if(z[j].className=="tnst_mwph"){var mw=document.getElementById(z[j].id.replace(/tnst_mwph/,"tnst_menuwindow"));z[j].parentNode.replaceChild(mw,z[j]);mw.className="tnst_mwph";mw.id=mw.onmouseover=mw.onmouseout=mw.dS=mw.dK=mw.dR=mw.kill=null;}}var _24=/((\w+\.)?[\w-]+\.ru[^?]*)/.exec(document.location.href)[0];var z=document.getElementsByTagName("tr");for(var j=0;j<z.length;j++){if(z[j].className.search(/tnst_mitem/)!=-1){if(my_a=z[j].getElementsByTagName("a")[0]){if(my_a.href){var _25=/((\w+\.)?[\w-]+\.ru[^?]*)/.exec(my_a.href);if(_25){var _26=_25[0];if(_26==_24){my_a.removeAttribute("href");my_a.className="thispage";flyglo_markParentItems(z[j]);}}}}}}}tnst_initMenu();if(tnst_menulocal){if(x=document.getElementById("thisurl")){x.style.display="block";}if(y=document.getElementById("myurl")){y.href=y.innerHTML;}}
