var pref="null", suff="null", xx = "null", yy = "null"; var mx = "null", my = "null", now="null",tid; ie6 = (navigator.appVersion.indexOf("MSIE 6")>-1 || navigator.appVersion.indexOf("MSIE 5.5")>-1); if (document.getElementById) { pref="document.getElementById('"; suff="').style"; xx=".left"; yy=".top"; mx="event.pageX"; my="event.pageY"; } else if (navigator.appName == "Netscape") { pref="document.layer('"; suff="')"; xx=".left"; yy=".top"; mx="event.pageX"; my="event.pageY"; } else { pref="document.all.item('"; suff="').style"; xx=".pixelLeft"; yy=".pixelTop"; mx="window.event.clientX"; my="document.body.scrollTop+window.event.clientY"; } function getPageCoords(el) { var coords = {x: 0, y: 0} element = el while (element) { coords.x += element.offsetLeft; coords.y += element.offsetTop; element = element.offsetParent; } return coords; } function hideall() { if (now!="null") { k=0; // el=document.getElementsByTagName("object"); // while (el.item(k)) { el.item(k++).style.visibility="visible"; } if (eval(pref+now+"')")) { eval(pref+now+suff+'.visibility="hidden"'); } } } function hide(who){ if (who!="null") { if (eval(pref+who+"')")) { eval(pref+who+suff+'.visibility="hidden"'); } } } function show(who, menu) { hide(now); hide(who); if (tid!=null) {clearTimeout(tid);} now=who; tid=setTimeout("hideall;",5000); coords = getPageCoords(menu); // coords.y = coords.y+menu.offsetHeight; coords.x = coords.x+menu.offsetWidth; if (eval(pref+who+"')")) { k=0; el=document.getElementsByTagName("object"); while (el.item(k)) el.item(k++).style.visibility="hidden"; eval(pref+who+suff+xx+' = coords.x'); eval(pref+who+suff+yy+' = coords.y'); eval(pref+who+suff+'.visibility="visible"'); } } function hiding(menu) { tid=setTimeout("hideall();",500); } function nover(){ if(navigator.appName=="Netscape") clearTimeout(tid); } function nout(menu){ if(navigator.appName=="Netscape") hiding(menu); } function mOured(div){ div.className="outred"; } function mOu(div){ div.className="out"; } function mOv(div){ div.className="over"; }