// --------------------------------- layer show/hide stuff ---------------------------------- var LayersSet = "No" ; var navLinksTableLeft = 0 ; var navLinksTableTop = 0; var navLinksTableWidth = 0 ; var subMenuShowing = "No" ; var GNDefaultTop = 0 ; var pageWidth = 0 ; var pageHeight = 0 ; var ButtonShowing = "No" ; var MenuStayOn = 2800 ; var current_caretSelection = "" ; showArrow = new Image() ; showArrow.src = "nav_arrow.gif"; showClear = new Image() ; showClear.src = "spacer_trans.gif"; var GNNavBGColor = "#FFFFFF" ; var GNSMBGColor = "#FFFFFF" ; var GNSelectedRowName = '' ; function setPopUpLocation() { smBGColor = jsSMPopBkgnd ; pos = smBGColor.indexOf("#"); if (pos == -1 ) { GNSMBGColor = "#FFFFFF" ; } else { colLength = smBGColor.length - 1 ; //GNSMBGColor = smBGColor.substring(pos, colLength); GNSMBGColor = smBGColor; } //alert(GNSMBGColor) navBGColor = jsSMNavBGColor ; pos = navBGColor.indexOf("#"); if (pos == -1 ) { GNNavBGColor = "#FFFFFF" ; } else { colLength = navBGColor.length - 1 ; GNNavBGColor = navBGColor.substring(pos, colLength); } if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { navLinksTableObj = document.getElementById("navLinksTable") ; yPos = parseInt(findPosY(navLinksTableObj)) ; xPos = parseInt(findPosX(navLinksTableObj) + 175) ; GNDefaultTop = yPos ; xSetPos = parseInt(document.body.clientWidth/2 - 125) ySetPos = parseInt(findPosY(navLinksTableObj) + 240) ; xSFPos = parseInt(document.body.clientWidth/2 - 150) ySFPos = parseInt(findPosY(navLinksTableObj) + 130) ; if ( document.getElementById("LBLinksMenu") ) { document.getElementById("LBLinksMenu").style.top = yPos+ "px" ; document.getElementById("LBLinksMenu").style.left = xPos + "px" ; } if ( document.getElementById("GNLBVarsLyr") ) { document.getElementById("GNLBVarsLyr").style.top = ySetPos + "px" ; document.getElementById("GNLBVarsLyr").style.left = xSetPos + "px" ; } if ( document.getElementById("GNLAVarsLyr") ) { document.getElementById("GNLAVarsLyr").style.top = ySetPos + "px" ; document.getElementById("GNLAVarsLyr").style.left = xSetPos + "px" ; } if ( document.getElementById("SFChoice") ) { document.getElementById("SFChoice").style.top = ySFPos + "px" ; document.getElementById("SFChoice").style.left = xSFPos + "px" ; } if ( document.getElementById("IMGSettings") ) { document.getElementById("IMGSettings").style.top = ySetPos + "px" ; document.getElementById("IMGSettings").style.left = xSetPos + "px" ; } } if (is_ie4) { navLinksTableObj = document.all["navLinksTable"] ; yPos = parseInt(findPosY(navLinksTableObj)) ; xPos = parseInt(findPosX(navLinksTableObj) + 175) ; GNDefaultTop = yPos ; xSetPos = parseInt(document.body.clientWidth/2 - 125) ySetPos = parseInt(findPosY(navLinksTableObj) + 240) ; xSFPos = parseInt(document.body.clientWidth/2 - 130) ySFPos = parseInt(findPosY(navLinksTableObj) + 50) ; if ( document.all["LBLinksMenu"] ) { document.all["LBLinksMenu"].style.left = xPos ; document.all["LBLinksMenu"].style.top = yPos ; } if ( document.all["GNLBVarsLyr"] ) { document.all["GNLBVarsLyr"].style.left = xSetPos ; document.all["GNLBVarsLyr"].style.top = ySetPos ; } if ( document.all["GNLAVarsLyr"] ) { document.all["GNLAVarsLyr"].style.left = xSetPos ; document.all["GNLAVarsLyr"].style.top = ySetPos ; } if ( document.all["SFChoice"] ) { document.all["SFChoice"].style.left = xSFPos ; document.all["SFChoice"].style.top = ySFPos ; } if ( document.all["IMGSettings"] ) { document.all["IMGSettings"].style.left = xSetPos ; document.all["IMGSettings"].style.top = ySetPos ; } } if (is_nav4) { xPos = parseInt(window.innerWidth/2 - 268) ; yPos = parseInt(80) ; GNDefaultTop = yPos ; if ( document.LBLinksMenu ) { document.LBLinksMenu.left = xPos ; document.LBLinksMenu.top = yPos ; } } MenuStayOn = jsSMLatency ; LayersSet = "Yes" ; return ; } function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) { curleft += obj.x; } return curleft; } function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) { curtop += obj.y; } return curtop; } function act(num) { // We need to build in some hard-wiring to deal with the special links. // LA2 = Service Offerings //LA10 = Dispute, Investigations.. //LA11 = Business, Financial & ... LASpecialRow = "N"; menuOption = num ; if ( menuOption == "2" || menuOption == "7" || menuOption == "10" || menuOption == "11" || menuOption == "12" ) { LASpecialRow = "Y"; } if (is_nav3 == true || is_nav4 == true || is_ie4 == true) { caretName = "NCaretLA" + menuOption; } else { caretName = "CaretLA" + menuOption; } //First, get the row Object that the mouse is over, and get the y-position of the top of the row rowName = "GNRowLA" + menuOption + "" ; if (current_caretSelection != caretName) { if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { RowObj = document.getElementById(rowName) ; } if (is_ie4) { RowObj = document.all[rowName] ; } if ( is_nav3 || is_nav4) { } else { if ( LASpecialRow == "Y" ) { RowObj.className = "LASpecialHoverRow"; } else { RowObj.className = "LAHoverRow"; } } GNTopOffset = parseInt(findPosY( RowObj )) ; } // Second, set the background color of the row that the mouse is over and show the white arrow // if (jsLAID == "LA0") return ; if (current_caretSelection != caretName) { if(document[caretName]) { if (current_caretSelection != "" ) { //First set the caret to transparent if (is_nav3 == true || is_nav4 == true || is_ie4 == true) { if (document[current_caretSelection].complete == true) { document[current_caretSelection].src = showClear.src; } } else { caretObj = document.getElementById(current_caretSelection) ; if ( caretObj.complete ) { if ( caretObj.complete == true ) { caretObj.src = showClear.src; } } else { caretObj.src = showClear.src; } } //Next turn the background of the row to normal numPos = current_caretSelection.indexOf("LA") ; oldMenuOption = current_caretSelection.substring(numPos + 2, current_caretSelection.length) tempRowName = "GNRowLA" + oldMenuOption + "" if ( tempRowName != GNSelectedRowName ) { if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { RowObj = document.getElementById(tempRowName) ; } if (is_ie4) { RowObj = document.all[tempRowName] ; } if ( is_nav3 || is_nav4) { } else { RowObj.className = ""; } } } if ( LASpecialRow != "Y" ) { if (is_nav3 == true || is_nav4 == true || is_ie4 == true) { if (document[caretName].complete == true) { document[caretName].src = showArrow.src; } } else { caretObj = document.getElementById(caretName) ; if ( caretObj.complete ) { if ( caretObj.complete == true ) { caretObj.src = showArrow.src; } } else { caretObj.src = showArrow.src; } } } current_caretSelection = caretName ; ButtonShowing = "Yes" ; } } } function inact(num) { menuOption = num ; if (is_nav3 == true || is_nav4 == true || is_ie4 == true) { caretName = "NCaretLA" + menuOption; } else { caretName = "CaretLA" + menuOption; } rowName = "GNRowLA" + menuOption + "" ; rowChosen = "GNRow" + jsLAID + "" ; // First, re-set the background color of the row that the mouse is over if (rowName != rowChosen) { if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { RowObj = document.getElementById(rowName) ; } if (is_ie4) { RowObj = document.all[rowName] ; } if ( is_nav3 || is_nav4) { } else { RowObj.className = ""; } } // if (jsLAID == "LA0") return ; if (document[caretName]) { if (is_nav3 == true || is_nav4 == true || is_ie4 == true) { if (document[caretName].complete == true) { document[caretName].src = showClear.src; } } else { caretObj = document.getElementById(caretName) ; if ( caretObj.complete ) { if ( caretObj.complete == true ) { caretObj.src = showClear.src; } } else { caretObj.src = showClear.src; } } current_caretSelection = "" ; ButtonShowing = "No" ; } } function hideHomeBkgnd() { rowName = "GNRowLA0" ; if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { RowObj = document.getElementById(rowName) ; } if (is_ie4) { RowObj = document.all[rowName] ; } if ( is_nav3 || is_nav4) { } else { RowObj.className = ""; } } function showHomeBkgnd() { rowName = "GNRowLA0" ; if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { RowObj = document.getElementById(rowName) ; } if (is_ie4) { RowObj = document.all[rowName] ; } if ( is_nav3 || is_nav4) { } else { RowObj.className = "LASelectedRow"; } } function showPageLinks(num, num2) { if (LayersSet == "No") return ; menuOption = num ; GNSortOrder = num2 ; act( menuOption ) ; subMenuShowing = "Yes" ; showLayer(menuOption, GNSortOrder) ; } function hidePageLinks(num) { menuOption = num ; subMenuShowing = "No" ; setTimeout( "hideLayer(menuOption)" , MenuStayOn ) ; return ; } function onSubLink(num) { subMenuShowing = "Yes" ; return ; } function offSubLink(num) { menuOption = num ; subMenuShowing = "No" ; setTimeout( "hideLayer(menuOption)" , MenuStayOn ) ; return ; } function hideLayer(num) { menuOption = num ; if (subMenuShowing == "Yes") return ; inact( menuOption ) ; if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { document.getElementById("LBLinksMenu").style.visibility = "hidden" ; } if (is_ie4) { document.all["LBLinksMenu"].style.visibility = "hidden" ; } if (is_nav4) { document.LBLinksMenu.visibility = "hide" ; } return ; } function showLayer(num, num2) { menuOption = num ; GNSortOrder = num2 ; // GNTopOffset = parseInt(GNDefaultTop + (GNSortOrder-1)*20 + 15) ; // We need to build in some hard-wiring to deal with the special links. // LA2 = Service Offerings //LA10 = Dispute, Investigations.. //LA11 = Business, Financial & ... LASpecialRow = "N"; if ( menuOption == "2" || menuOption == "10" || menuOption == "11" ) { LASpecialRow = "Y"; } if (menuOption == "0" ) { if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { document.getElementById("LBLinksMenu").style.visibility = "hidden" ; } if (is_ie4) { document.all["LBLinksMenu"].style.visibility = "hidden" ; } if (is_nav4) { document.LBLinksMenu.visibility = "hide" ; } subMenuShowing = "Yes" ; return ; } //if ( LASpecialRow == "Y" ) return; lyrHTML = buildSubMenu(num) ; if ( lyrHTML == "" ) { return;} //alert(lyrHTML) if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { document.getElementById("LBLinksMenu").style.top = GNTopOffset + "px" ; document.getElementById("LBLinksMenu").innerHTML = lyrHTML ; document.getElementById("LBLinksMenu").style.visibility = "visible"; } if (is_ie4) { document.all["LBLinksMenu"].style.top = GNTopOffset ; document.all["LBLinksMenu"].innerHTML = lyrHTML ; document.all["LBLinksMenu"].style.visibility = "visible" ; } if (is_nav4) { var lyr = document.layers[ "LBLinksMenu"].document ; lyr.open() ; lyr.write(lyrHTML) ; lyr.close() ; document.LBLinksMenu.top = GNTopOffset ; document.LBLinksMenu.visibility = "show" ; } return ; } function hideLayerNow(num) { menuOption = num ; if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) { document.getElementById("LBLinksMenu").style.visibility = "hidden" ; } if (is_ie4) { document.all["LBLinksMenu"].style.visibility = "hidden" ; } if (is_nav4) { document.LBLinksMenu.visibility = "hide" ; } subMenuShowing = "No" ; inact(menuOption ) ; return ; } function buildSubMenu(num) { menuOption = num ; var smTable = '' ; smTable += '' ; linkHTML = "" ; // this is the rows of links if (menuOption == 1) { linkHTML = jsHTMLLA1 } ; if (menuOption == 2) { linkHTML = jsHTMLLA2 } ; if (menuOption == 3) { linkHTML = jsHTMLLA3 } ; if (menuOption == 4) { linkHTML = jsHTMLLA4 } ; if (menuOption == 5) { linkHTML = jsHTMLLA5 } ; if (menuOption == 6) { linkHTML = jsHTMLLA6 } ; if (menuOption == 7) { linkHTML = jsHTMLLA7 } ; if (menuOption == 8) { linkHTML = jsHTMLLA8 } ; if (menuOption == 9) { linkHTML = jsHTMLLA9 } ; if (menuOption == 10) { linkHTML = jsHTMLLA10 } ; if (menuOption == 11) { linkHTML = jsHTMLLA11 } ; if (menuOption == 12) { linkHTML = jsHTMLLA12 } ; if (menuOption == 13) { linkHTML = jsHTMLLA13 } ; if (menuOption == 14) { linkHTML = jsHTMLLA14 } ; if (menuOption == 15) { linkHTML = jsHTMLLA15 } ; //if ( jsUserName == "Galtnet Admin" ) { //alert( "->" + num + "***" + linkHTML + "***"); //} if ( linkHTML == "" ) { smTable = "" ; } else { smTable += linkHTML ; smTable += '
 
 
' ; if (is_ieMac) { smTable += " " ;} } return smTable ; } // ------------------------------end layer stuff ------------------------------ PopMenuLibLoaded = "Yes";