//GLOBAL VARIABLES: all variables defined in this section are global variables and can be referred to or redefined //throughout the entire page //------------------------------------- beginning of global variables //ASSUMED VARIABLES: all variables used in this section assume that they have been declared earlier in the building //of this page. The block containing those declarations needs to be placed prior to the inclusion of this javascript in //this page. //-------------------------- beginning of assumed variables if (bolMenuUsesImages == 'true') { var strType = "image" } else { var strType = "text" } if (bolSubMenuUsesImages == 'true') { var strTypeSub = "image" } else { var strTypeSub = "text" } //main menu arrays var aryMainMenuList = strMainMenuList.split(",") var arySubMenuRef = new Array(aryMainMenuList.length) //array houses references to submenus var aryMainMenuImages = strMainMenuImages.split(",") var aryMainMenuImages_dim = strMainMenuImages_dim.split(",") var aryMainMenuImagesO = strMainMenuImagesO.split(",") var aryMainMenuImagesO_dim = strMainMenuImagesO_dim.split(",") var aryMainMenuHrefs = strMainMenuHrefs.split(",") //-------------------------- end of assumed variables //variables defining which class to use from the style sheet var strMainMenuWithSubMenuClass = "" //for main menu items that have submenus var strMainMenuClass = "" //for main menu items var strSubMenuClass = "" //for sub menu items //variables defining other style elements of the menus var intMenuItemHeight = 18 //height of each menu row var intItemBorder = 0 //width of each menu item var strMainMenuWidth = "175" //width of main menu var strSubMenuLeft = "75" //starting position of each submenu var intSubMenuOffset = 10 //offset position of each submenu from the main menu item var intSubMenuBorder = 2 //width of border around each submenu var intSubMenuWidth = 200 //width of submenu var intSubMenuItemHeight = 18 //height of each submenu row var strSubMenuBgColor = "#FFFFFF" //background color of submenu var strSubMenuItemBgColor = "#FFFFFF" //background color of submenu; generally same as strSubMenuBgColor var strSubMenuLiteBgColor = "#FFFFFF" //generally same as strSubMenuBgColor var strSubMenuBorderBgColor = "#6666FF" //color of submenu border var strSubMenuHiliteBgColor = "#FFFFFF" //generally same as strSubMenuBgColor var intMenuColSpan = 1 //determines how many columns in the parent table to span for the menu //Determines how much width is available on the page using the screen resolution. The first number //represents the total width of the screen; the second number represents ?; the 3rd number represents //the width of the menu, assuming that it is going to be placed in a vertical fashion somewhere on the page and that //the page/site design wants to have the menu available at all times intRemainingWidth = screen.availWidth - 40 - strMainMenuWidth //variable building the common style of the sub menu; used for Netscape if (strTypeSub == 'image') { var strMouseOut = " onMouseOut='MM_swapImgRestore();hide_layers(strSubMenus)' " } else { var strMouseOut = " onMouseOut='hide_layers(strSubMenus)' " } var strMenuCommonStyle = " position='absolute' z-index='10' visibility='hidden' width='" + intSubMenuWidth + "' left='" + strSubMenuLeft + "' bgcolor='" + strSubMenuBgColor + "' " + strMouseOut //variable building the common style of the sub menu item; used for Netscape var strItemCommonStyle = " z-index='10' border='" + intItemBorder + "' valign='top' width='" + intSubMenuWidth + "' " if (is_nav) { var intMenuBase = 88 //position at which first submenu begins var intMenuNext = intMenuItemHeight //height of each submenu item //style for menu tags var strImgCommonStyle = " border='0' width='" + strMainMenuWidth + "' height='" + intMenuItemHeight + "' " } if (is_ie) { var intMenuBase = 88 //position at which first submenu begins var intMenuNext = intMenuItemHeight //height of each submenu item //style for menu tags var strImgCommonStyle = " border='0' " } //initialize global variables for menu to be built; these are used/build primarily by the drive_menu() function var strDiv = "" //used for Netscape var strMenu = "" //used for IE var strSubMenus = "" //list of submenus to be possibly used elsewhere in the page //------------------------------------- end of global variables function drive_menu () { var strMenuOption = "" var strHref = "" //page to which user will be sent upon selecting menu option var strMouseOut = "" //action to take upon mouseout event var strMouseOver = "" //action to take upon mouseover event var strOnClick = "" //action to take upon onclick event var strImage = "" //image to be used in normal state var strImage_dim = "" //image dimensions to be used in normal state var strImageO = "" //image to be used in mouseover state var strImageO_dim = "" //image dimensions to be used in mouseover state var strDisplay = "" var strMenuClass = "" //temporary array variables var aryTempList var aryTempImages var aryTempImages_dim var aryTempImagesO var aryTempImagesO_dim var aryTempHrefs //for each item in the main menu list array, determine if there is a submenu; this is done by //breaking the submenu array element into a temporary array (which then represents each //option in the submenu), the first element of which is actually the name of the main menu option; //then comparing the main menu list item to that first element to see if there is a match; //if there is, then save the index reference to that submenu into the appropriate reference array for (i = 0; i < aryMainMenuList.length; i++) { //step through each element in the submenu list array for (j = 0; j < arySubMenuList.length; j++) { //initialize the submenu reference to -1 to indicate a default of no submenu arySubMenuRef[i] = -1 //split the submenu array element into a temporary array aryTempList = arySubMenuList[j].split(",") if (aryMainMenuList[i].toUpperCase() == aryTempList[0].toUpperCase()) { //if there is a match on main menu item names, then save off the reference and break out of inner loop arySubMenuRef[i] = j break } } } //build menu a certain way depending upon browser //Netscape Navigator: if (is_nav) { //for each item in the main menu list array for (i = 0; i < aryMainMenuList.length; i++) { //determine starting pixel position of submenu (in case one is to be built) //Note: first main menu item base does not need to be advanced, as it IS the initial base if (strMenuDirection == "H") { if ((i + 1) % (intHorizontalMenuLimit + 1) == 1) { intMenuBase += intMenuNext } } else { if (i > 0) { intMenuBase += intMenuNext } } //determine whether or not it has a submenu (reference array has a corresponding valid value [-1 indicates no submenu]) //if it DOES have a submenu, then build the submenu "layer" if (arySubMenuRef[i] != -1) { //if images are being used for submenu options, then define the images, set up the image swap functions on the //onmouseout and onmouseover events if (strTypeSub == 'image') { strImage = strButtonLoc + aryMainMenuImages[i] strImage_dim = aryMainMenuImages_dim[i] strImageO = strButtonLoc + aryMainMenuImagesO[i] strImageO_dim = aryMainMenuImagesO_dim[i] strMouseOut = "MM_swapImgRestore()" strMouseOver = "MM_swapImage('mmnu_" + i + "','','" + strImageO + "',1)" } else { strImage = "" strImage_dim = "" strImageO = "" strImageO_dim = "" strMouseOut = "" strMouseOver = "" } strMenuClass = strSubMenuClass strDiv += build_menu_layer(i, intMenuBase, strMouseOver, strMenuCommonStyle) strDiv += build_menu_table(i) //split the submenu array elements into a temporary arrays aryTempList = arySubMenuList[arySubMenuRef[i]].split(",") aryTempImages = arySubMenuImages[arySubMenuRef[i]].split(",") aryTempImages_dim = arySubMenuImages_dim[arySubMenuRef[i]].split(",") aryTempImagesO = arySubMenuImagesO[arySubMenuRef[i]].split(",") aryTempImagesO_dim = arySubMenuImagesO_dim[arySubMenuRef[i]].split(",") aryTempHrefs = arySubMenuHrefs[arySubMenuRef[i]].split(",") //continue to build menu by building a submenu item for each item listed in the submenu's list array //NOTE: we start this loop at index 1, because index 0 holds the name of the main menu item for (j = 1; j < aryTempList.length; j++) { strMenuOption = i + "_" + j strHref = aryTempHrefs[j] if (strTypeSub == 'image') { strImage = strButtonLoc + aryTempImages[j] strImage_dim = aryTempImages_dim[j] strImageO = strButtonLoc + aryTempImagesO[j] strImageO_dim = aryTempImagesO_dim[j] strMouseOver = "MM_swapImage('img_" + strMenuOption + "','','" + strImageO + "',1)" strDisplay = strImage } else { strImage_dim = "" strDisplay = aryTempList[j] } strDiv += build_menu_option(strMenuOption, strHref, strMouseOut, strMouseOver, strTypeSub, strDisplay, strItemCommonStyle, strMenuClass, intMenuItemHeight, strImage_dim) } //close out the definition of the submenu's "layer" strDiv += "" //build delimited list of submenus to be potentially used elsewhere in the page if (strSubMenus == "") { strDelimiter = "" //no delimiter needed for first item } else { strDelimiter = "," } strSubMenus += strDelimiter + "mnu_" + i } } strMenu += " " //if the menu is to be displayed horizontally, then start out with a general table row tag if (strMenuDirection == "H") { strMenu += "" } //for each item in the main menu list array for (i = 0; i < aryMainMenuList.length; i++) { //determine whether or not it has a submenu (reference array has a corresponding valid value [-1 indicates no submenu]) //if a submenu exists, then "turn off" the main menu href if (arySubMenuRef[i] != -1) { strHref = "javascript://" strOnClick = "hide_layers('" + strSubMenus + "');show_layers('mnu_" + i + "');" strMenuClass = strMainMenuWithSubMenuClass } //if no submenu exists, "turn on" the main menu href else { strHref = aryMainMenuHrefs[i] strOnClick = "" strMenuClass = strMainMenuClass } //if images are being used for main menu options, then define the images, set up the image swap functions on the //onmouseout and onmouseover events if (strType == 'image') { strImage = strButtonLoc + aryMainMenuImages[i] strImageO = strButtonLoc + aryMainMenuImagesO[i] strMouseOut = "MM_swapImgRestore()" // strMouseOver = "MM_swapImage('img_" + i + "','','" + strImageO + "',1);hide_layers('" + strSubMenus + "');show_layers('mnu_" + i + "');" strMouseOver = "MM_swapImage('img_" + i + "','','" + strImageO + "',1);" + strOnClick strDisplay = strImage //if no forced dimensions exist for image, set value to "" to be handled by called function) if (i+1 <= aryMainMenuImages_dim.length) {strImage_dim = aryMainMenuImages_dim[i]} else {strImage_dim = ""} if (i+1 <= aryMainMenuImagesO_dim.length) {strImageO_dim = aryMainMenuImagesO_dim[i]} else {strImageO_dim = ""} } //if images are not being used, then set the displayed option to be text the same as what is in the menu array //and set up the onmouseout and onmouseover events else { strMouseOut = "" // strMouseOver = "hideActiveMenus();" + strOnClick strMouseOver = strOnClick strDisplay = aryMainMenuList[i] strImage_dim = "" } strMenu += build_parent_menu_option(i, strHref, strMouseOut, strMouseOver, strOnClick, strType, strDisplay, strImgCommonStyle, strMenuClass, intMenuItemHeight, strImage_dim) } //if the main menu is to be displayed horizontally, then close out with a general closing table row tag if (strMenuDirection == "H") { strMenu += "" } strMenu += "
" } if (is_ie) { strMenu += " " //if the main menu is to be displayed horizontally, then start out with a general table row tag if (strMenuDirection == "H") { strMenu += "" } //for each item in the main menu list array for (i = 0; i < aryMainMenuList.length; i++) { //determine starting pixel position of submenu (in case one is to be built) //Note: first main menu item base does not need to be advanced, as it IS the initial base if (strMenuDirection == "H") { if ((i + 1) % (intHorizontalMenuLimit + 1) == 1) { intMenuBase += intMenuNext } } else { if (i > 0) { intMenuBase += intMenuNext } } //determine whether or not it has a submenu (reference array has a corresponding valid value [-1 indicates no submenu]) //if a submenu exists, then "turn off" the main menu href, and set the main menu click event to show the submenu if (arySubMenuRef[i] != -1) { strHref = "javascript://" //if the main menu is using images (as opposed to text), then use the image itself as the basis for placement //of the resulting submenu, else use the spacer.gif image placed around the text as this basis if (strType == 'image') { strOnClick = "showMenu(menus.mnu_" + i + ",'offset'," + intMenuBase + ",'img_" + i + "',-1*intSubMenuOffset,0);" } else { //if the main menu is to be displayed horizontally, then place the submenu below the main menu option, //else place the submenu to the right of the main menu option if (strMenuDirection == "H") { strOnClick = "showMenu(menus.mnu_" + i + ",'offset'," + intMenuBase + ",'img_begofmenutext_" + i + "',-1*intSubMenuOffset,0);" } else { // strOnClick = "showMenu(menus.mnu_" + i + "," + strSubMenuLeft + "," + intMenuBase + ");" strOnClick = "showMenu(menus.mnu_" + i + ",'offset'," + intMenuBase + ",'img_endofmenutext_" + i + "',-1*intSubMenuOffset,0);" } } strMenuClass = strMainMenuWithSubMenuClass } //if no submenu exists, "turn on" the main menu href else { strHref = aryMainMenuHrefs[i] strOnClick = "" strMenuClass = strMainMenuClass } //if images are being used for main menu options, then define the images, set up the image swap functions on the //onmouseout and onmouseover events if (strType == 'image') { strImage = strButtonLoc + aryMainMenuImages[i] strImageO = strButtonLoc + aryMainMenuImagesO[i] strMouseOut = "MM_swapImgRestore()" strMouseOver = "hideActiveMenus();" + strOnClick + "MM_swapImage('img_" + i + "','','" + strImageO + "',1);" strDisplay = strImage //if no forced dimension exists for image, set value to "" to be handled by called function) if (i+1 <= aryMainMenuImages_dim.length) {strImage_dim = aryMainMenuImages_dim[i]} else {strImage_dim = ""} if (i+1 <= aryMainMenuImagesO_dim.length) {strImageO_dim = aryMainMenuImagesO_dim[i]} else {strImageO_dim = ""} } //if images are not being used, then set the displayed option to be text the same as what is in the menu array //and set up the onmouseout and onmouseover events else { strMouseOut = "" strMouseOver = "hideActiveMenus();" + strOnClick strDisplay = aryMainMenuList[i] strImage_dim = "" } strMenu += build_parent_menu_option(i, strHref, strMouseOut, strMouseOver, strOnClick, strType, strDisplay, strImgCommonStyle, strMenuClass, intMenuItemHeight, strImage_dim) } //if the main menu is to be displayed horizontally, then close out with a general closing table row tag if (strMenuDirection == "H") { strMenu += "" } strMenu += "
" } } //-------------------------------------------------------------------------------- function build_menu_layer (strMenuOption, strMenuTop, strMouseOver, strStyle) { var strLayer = "" //build layer strLayer += " " if (strType == "text") { strOption += "" } strOption += "" if (strType == "image") { //build image tag for menu option strOption += "" if (strType == "text") { strOption += "" } strOption += "" if (strType == "image") { //build image tag for menu option strOption += "" } strOption += "" //if the menu is not to be displayed horizontally (i.e. vertically), then include closing table row tag if (strMenuDirection != "H") { strOption += "" } } //if browser is Microsoft IE else if (is_ie) { //build menu option //if the menu is to be displayed horizontally, then determine if new table row is needed, else include table row tag if (strMenuDirection == "H") { if ((strMenuOption + 1) % (intHorizontalMenuLimit + 1) == 0) { strOption += "" } } else { strOption += "" } strOption += "" if (strType == "image") { //build image tag for menu option strOption += "" } strOption += "" //if the menu is not to be displayed horizontally (i.e. vertically), then include closing table row tag if (strMenuDirection != "H") { strOption += "" } } return strOption } //-------------------------------------------------------------------------------- function build_submenus() { var strImage = "" var strImage_dim = "" var strImageO = "" var strImageO_dim = "" var strHref = "" var strDisplay = "" //temporary array variables var aryTempList var aryTempImages var aryTempImages_dim var aryTempImagesO var aryTempImagesO_dim var aryTempHrefs //for each item in the main menu list array for (i = 0; i < aryMainMenuList.length; i++) { //determine whether or not it has a submenu (reference array has a corresponding valid value) if (arySubMenuRef[i] != -1) { strImage = strButtonLoc + aryMainMenuImages[i] strImage_dim = aryMainMenuImages_dim[i] strImageO = strButtonLoc + aryMainMenuImagesO[i] strImageO_dim = aryMainMenuImagesO_dim[i] //THERE HAS GOT TO BE A BETTER WAY TO DO THIS!!!! THIS BASICALLY FORCES US TO //HAVE A LIMITED (21 IN THE CASE OF THE SWITCH STATEMENT BELOW) NUMBER OF MAIN MENU //ITEMS. HOW CAN WE MAKE THIS MORE DYNAMIC USING THE APPOPRIATE OBJECT MODEL PROPERTIES??? //builds the main menu "container" within which to build each submenu switch (i) { case 0: window.mnu_0 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 1: window.mnu_1 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 2: window.mnu_2 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 3: window.mnu_3 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 4: window.mnu_4 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 5: window.mnu_5 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 6: window.mnu_6 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 7: window.mnu_7 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 8: window.mnu_8 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 9: window.mnu_9 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 10: window.mnu_10 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 11: window.mnu_11 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 12: window.mnu_12 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 13: window.mnu_13 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 14: window.mnu_14 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 15: window.mnu_15 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 16: window.mnu_16 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 17: window.mnu_17 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 18: window.mnu_18 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 19: window.mnu_19 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break case 20: window.mnu_20 = new Menu("mnu_"+i, strSubMenuBgColor, intSubMenuBorder, strSubMenuItemBgColor, strSubMenuLiteBgColor, strSubMenuBorderBgColor, strSubMenuHiliteBgColor, strImageO, intSubMenuItemHeight, intSubMenuWidth); break } //split the submenu array elements into a temporary arrays aryTempList = arySubMenuList[arySubMenuRef[i]].split(",") aryTempImages = arySubMenuImages[arySubMenuRef[i]].split(",") aryTempImages_dim = arySubMenuImages_dim[arySubMenuRef[i]].split(",") aryTempImagesO = arySubMenuImagesO[arySubMenuRef[i]].split(",") aryTempImagesO_dim = arySubMenuImagesO_dim[arySubMenuRef[i]].split(",") aryTempHrefs = arySubMenuHrefs[arySubMenuRef[i]].split(",") //continue to build menu by building a submenu item for each item listed in the submenu's list array //NOTE: we start this loop at index 1, because index 0 holds the name of the main menu item for (j = 1; j < aryTempList.length; j++) { //determine if the HREF contains a target parameter; if so, then split it out so it can be appropriately placed in the tag var strTrueHref = aryTempHrefs[j] var strTarget = "" if (aryTempHrefs[j].toUpperCase().indexOf("TARGET=") != -1) { strTrueHref = aryTempHrefs[j].substr(0, aryTempHrefs[j].toUpperCase().indexOf("TARGET=")) strTarget = aryTempHrefs[j].substr(aryTempHrefs[j].toUpperCase().indexOf("TARGET=")) } if (strTypeSub.toUpperCase() == 'IMAGE') { strImage = strButtonLoc + aryTempImages[j] strImage_dim = aryTempImages_dim[j] strImageO = strButtonLoc + aryTempImagesO[j] strImageO_dim = aryTempImagesO_dim[j] strHref = "top.location='" + strTrueHref + "' " + strTarget + " " strDisplay = strImage } else { strImage_dim = "" strImageO = "" strImageO_dim = "" strHref = "" var strClass = "" if (strSubMenuClass != "" && strSubMenuClass != " ") { strClass = "class=" + strSubMenuClass } strDisplay = "" strDisplay += "" + aryTempList[j] + "" } //find the correct submenu container object, and then add a item to that submenu for (curProperty in window) { if (curProperty == "mnu_" + i) { eval("window." + curProperty).addMenuItem(strDisplay, strHref, strSubMenuItemBgColor, strImageO) } } } } } }
" if (strType == "text") { strOption += "" } strOption += "