<SCRIPT language=JavaScript> var curPop = null; function clearCurrent() { // Hide the pop-up menu that is currently displayed. if (null != curPop) curPop.style.display = ""; curPop = null; }
function popup() { clearCurrent(); var el = event.srcElement; // Display a new menu option. if (("P" == el.tagName) && ("menu" == el.parentElement.parentElement.parentElement.parentElement.id)) { // Position and display the pop-up menu. var elpop = document.all[el.sourceIndex + 1]; elpop.style.pixelLeft = el.parentElement.offsetLeft+7; elpop.style.pixelTop = el.offsetTop + document.all.menu.offsetTop+22; elpop.style.display = "block"; curPop = elpop; } event.cancelBubble = true; }
function highlight() {
// Highlight and popup the menu options. if (null != event.fromElement) if ((event.fromElement.tagName == "P") && (event.fromElement.parentElement.parentElement.parentElement.parentElement.id == "menu")) { event.fromElement.className = ""; }
if (null != event.toElement) if ((event.toElement.tagName == "P") && (event.toElement.parentElement.parentElement.parentElement.parentElement.id == "menu")) { popup(); event.toElement.className = "over"; } }