/* author: Paul Z Strauss */ /* Creation date: 12/9/2003 */ /* Code for Dropdown Menus */ var timeOn var strNormal = "normal"; var strItalic = "italic"; var strVisible = "visible"; var strHide = "hidden"; var AllowHide = false; document.onmouseover = menuOut; document.onclick = hideAllMenus; window.onerror = null; function menuOver() { clearTimeout(timeOn);} function menuOut() { if (AllowHide) {timeOn = setTimeout("hideAllMenus()", 300)}; } function hideAllMenus() { dropmenu0.style.visibility=strHide; dropmenu1.style.visibility=strHide; dropmenu2.style.visibility=strHide; services.style.fontStyle=strNormal; educational.style.fontStyle=strNormal; aboutus.style.fontStyle=strNormal; } function ShowDropMenu(oTopMenuID, oSubMenuID) { hideAllMenus(); AllowHide = true; clearTimeout(timeOn); switch (oTopMenuID.id) { case "aboutus": aboutus.style.fontStyle=strItalic; break; case "services": services.style.fontStyle=strItalic; break; case "educational": educational.style.fontStyle=strItalic; break; }; oSubMenuID.style.visibility = strVisible; oSubMenuID.style.left = document.body.scrollLeft + event.clientX - event.offsetX + 5; }