var shadows = new Array(); var menu; var timerId = 0; var timerDelId = 0; //used for the change_display(head) function var sImgExpandedArrow = ""; var sImgDefaultArrow = ""; function deletePopup() { if (menu) { menu.style.display = 'none'; var selects = document.all.tags("SELECT"); if (selects!=null) { for (var i=0; i= document.body.clientHeight) //below bottom { menu.style.posTop = (menu.style.posTop-(menu.clientHeight)+18); } menu.onchange = adjustBottom() } function adjustBottom() { if (menu.style.posTop < document.body.scrollTop) //above top { menu.style.posTop = document.body.scrollTop; } } function removePopup() { cancelPopup(); deletePopup(); } function absTop(el) { //finds the top var n = el.offsetTop; while (el.parentElement) { el = el.parentElement; n += el.offsetTop; } return n; } function popup(el) { cancelPopup(); timerId = window.setTimeout('doMenuz(' + el.id + ', ' + el.submenu + ')', 200); } function cancelPopup() { if (timerId != 0) { window.clearTimeout(timerId); timerId = 0; } } function delayRemove() { timerDelId = window.setTimeout('deletePopup()', 200); } function cancelDelay() { if (timerDelId != 0) { window.clearTimeout(timerDelId); timerDelId = 0; } } function rollon(a) { a.style.backgroundColor='#CCCCCC'; a.style.border = '#999999 solid 1px'; } function rolloff(a) { if (a.className == 'menuBarSel') { a.style.backgroundColor='#FFFFFF' } else { a.style.backgroundColor='#f1f1f1'; a.style.border = '#f1f1f1 solid 1px'; } } // added by atilab, works with the 'In This Article' component function change_display(head) { var oSrcEle = window.event.srcElement sImg666 = oSrcEle.src if (sImgExpandedArrow == ""){ sImgExpandedArrow = "/products/shared/images/arrow_expand.gif"; } if (sImgDefaultArrow == ""){ sImgDefaultArrow = "/products/shared/images/arrow_default.gif"; } if (document.all.item(head).style.display == "") { document.all.item(head).style.display = "none"; oSrcEle.src = sImgExpandedArrow; oSrcEle.alt = "expand menu"; } else { document.all.item(head).style.display= ""; oSrcEle.src = sImgDefaultArrow; oSrcEle.alt = "collapse menu"; } } function chngColour(sID) { var oMainBorder = document.all.item("main" + sID); var oHeaderBorder = document.all.item("header" + sID); var oArticle = document.all.item("article" + sID); var oArrowCol = document.all.item("arrowCol" + sID); if (oMainBorder.className == 'componentBorder') { oMainBorder.className = 'componentBorderSel'; oHeaderBorder.className = 'componentBorderSel'; oArticle.className = 'componentHeaderSel'; oArrowCol.className = 'componentHeaderSel'; } else { oMainBorder.className = 'componentBorder'; oHeaderBorder.className = 'componentBorder'; oArticle.className = 'componentHeader'; oArrowCol.className = 'componentHeader'; } } function noPrint() { var noprint = document.all.item("donotprint"); if (noprint != null) if (backicon.style.display != "") { if (noprint.length != null) { for (var i=0; i