////////////////////Please leave this notice//////////////////// // // DropDown Menu 1.0 // By Evgeny Novikov (java@aladin.ru) // http://java.skyteam.ru // It works only with IE5.0(++) and Netscape6.0(++) // Free to use! // ////////////////////Last modified 2002-03-05//////////////////// // Modify following four lines to customize your menu var tdColor="#FFFFFF"; // menu item text color var tdBgColor="#990000"; // menu item background color var hlColor="#FFFFFF"; // highlight text color var hlBgColor="#660000"; // highlight background color\ var tdSubColor="#000000"; // menu sub item text color var tdSubBgColor='#FFFFCC'; // menu sub item background color var hlSubColor="#FFFFFF"; // highlight sub text color var hlSubBgColor='#660000'; // highlight background color for sub // After change, modify same values in your *.css file var md=250; var ti=-1; var oTd=new Object; oTd=null; function doMenu(td){ clearTimeout(ti); td.style.backgroundColor=hlBgColor; td.style.color=hlColor; var i; var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i2){ tA=tA.slice(0,-1); tt=tA.join("_"); return (document.getElementById("tbl"+tt).offsetTop+document.getElementById("td"+st).offsetTop+4)+"px;left:"+ (document.getElementById("tbl"+tt).offsetLeft+document.getElementById("td"+st).offsetWidth-2)+"px\">"; } return (document.getElementById("mainmenu").offsetTop+document.getElementById("td"+st).offsetHeight-2)+"px;left:"+ (document.getElementById("mainmenu").offsetLeft+document.getElementById("td"+st).offsetLeft+5)+"px\">"; } function getTopAnchor() { //alert(document.getElementById("menuanchor").offsetTop); //alert(document.getElementById("menuanchor").offsetParent.offsetTop); return (document.getElementById("menuanchor").offsetTop + document.getElementById("menuanchor").offsetParent.offsetTop + document.getElementById("menuanchor").offsetParent.offsetParent.offsetTop + document.getElementById("menuanchor").offsetParent.offsetParent.offsetParent.offsetTop); } function getLeftAnchor() { //alert(document.getElementById("menuanchor").offsetParent.offsetParent.offsetParent.offsetParent.offsetLeft); //alert(document.getElementById("menuanchor").offsetParent.offsetLeft); return (document.getElementById("menuanchor").offsetLeft + document.getElementById("menuanchor").offsetParent.offsetLeft + document.getElementById("menuanchor").offsetParent.offsetParent.offsetLeft + document.getElementById("menuanchor").offsetParent.offsetParent.offsetParent.offsetLeft + document.getElementById("menuanchor").offsetParent.offsetParent.offsetParent.offsetParent.offsetLeft); } var sH=""; var p=0; var j=0; while(eval("typeof(td_"+ ++j +")!=\"undefined\"")){ sH+=""; if (eval("typeof(td_"+j+"_1)!=\"undefined\"")) pT[p++]="_"+j; } sH+="
":">"; sH+=eval("td_"+j)+" 
"; document.write(sH); for(var q=0;typeof(pT[q])!="undefined";q++){ sT=pT[q]; sH=""; j=0; sH+="":">"; sH+=eval("td"+sT+"_"+j)+""; if (eval("typeof(td"+sT+"_"+j+"_1)!=\"undefined\"")) pT[p++]=sT+"_"+j; } sH+="
"; document.write(sH); } document.getElementById("mainmenu").style.visibility="visible";