var g_elHighlighted = null; var g_elDownMenu = null; function doc_onclick() { var e = window.event.srcElement; var i = 0; HideDownMenu(); if (document.all.item("AuthorBio") != null) document.all.item("AuthorBio").style.visibility = "hidden"; if ( e != null) { if (e.children.length > 0) { for(i=0;i SlateMenu(1).sourceIndex) { nTop = SlateMenu(1).offsetTop - elMenu.offsetHeight; } else { nTop = SlateMenu(0).offsetTop + SlateMenu(0).offsetHeight; } nRight = SlateMenu(0).offsetLeft + SlateMenu(0).offsetWidth; nLeft = elSrc.offsetParent.offsetLeft + elSrc.offsetLeft; if (nLeft + elMenu.offsetWidth > nRight) { nLeft = nRight - (elMenu.offsetWidth); } elMenu.style.left = nLeft; elMenu.style.top = nTop; elMenu.style.zIndex = 1; } function ToggleMenuElement(el, bForceShow) { menu = document.all(el.id + "Menu"); if ( menu != null) { MenuPos(el, menu); if (g_elHighlighted != el) HideDownMenu(); if (menu.style.visibility == "hidden" || bForceShow) { g_elDownMenu = menu; menu.style.visibility = "visible"; ShowAd(false, menu); document.onclick = doc_onclick; } else { g_elDownMenu = null; menu.style.visibility = "hidden"; ShowAd(true, null); } window.event.cancelBubble = true; } } function ovrTD() { var el = window.event.srcElement; if (el.tagName != "TD") el = el.offsetParent; if (el.tagName == "TD") { el.parentElement.style.backgroundColor = "#FFFFFF"; window.event.cancelBubble = true; } } function outTD(sClr) { var el = window.event.srcElement; if (el.tagName != "TD") el = el.offsetParent; if (el.tagName == "TD") { el.parentElement.style.backgroundColor = sClr; window.event.cancelBubble = true; } } function ToggleVisibility(el) { if (document.all && (document.all.item(el) != null)) { if (document.all.item(el).style.visibility == "visible") document.all.item(el).style.visibility = "hidden"; else { document.onclick = doc_onclick; document.all.item(el).style.visibility = "visible"; } window.event.cancelBubble = true; } } function ShowAd(b, mnu) { var elAd = document.all.item("Ad"); if ( elAd != null) { if (b) elAd.style.visibility = "visible"; else { elAd.style.visibility = "hidden"; } } } function OvrLbl(el) { if (g_elHighlighted != el) { if (el.children(0).style.color != "#ffffff") { el.style.backgroundColor = el.children(1).style.color; el.children(0).style.color = "#ffffff"; el.children(1).style.color = "#ffffff"; } if (g_elDownMenu) ToggleMenuElement(el,true); g_elHighlighted = el; } window.event.cancelBubble = true; } function OutLbl(el) { if (window.event.toElement != null) if (window.event.toElement == el || window.event.toElement.parentElement == el) return false; if (g_elDownMenu==null) { UnHighlightLabel(el); } window.event.cancelBubble = true; } function UnHighlightLabel(el) { if (el.children.length > 0) { var sSection = el.children(0).innerText var elCurrent = document.all("txtCurrent"); if (elCurrent) { if (sSection.toLowerCase() != elCurrent.value.toLowerCase()) { el.children(0).style.color = "#000000"; el.children(1).style.color = el.style.backgroundColor; el.style.backgroundColor = "#ffffff"; } } } g_elHighlighted=null; } function ClkLbl(el) { ToggleMenuElement(el, false) ; } function ovrTD1(el) { if (el.style.backgroundColor != "#666666") { el.style.backgroundColor = "#CCCCCC"; el.children(0).children(0).style.color = "#660033"; //2000.02.18 a-dansh //with the TOC redesign, there is no more right arrow (children(1)), so //we don't need to apply a color to it. //el.children(0).children(1).style.color = "#660033"; } window.event.cancelBubble = true; } function outTD1(el) { if (el.style.backgroundColor != "#666666") { el.style.backgroundColor = "#660033"; el.children(0).children(0).style.color = "#FFCC00"; //el.children(0).children(1).style.color = "#FFFFFF"; } window.event.cancelBubble = true; } function toggleDisplay(el) { if (document.all && (document.all.item(el) != null)) { if (document.all.item(el).style.display == "") document.all.item(el).style.display = "none"; else { document.onclick = doc_onclick; document.all.item(el).style.display = ""; } window.event.cancelBubble = true; } } function swapColor(el, sColor) { el.style.color = sColor; for(i=0;i