//alert( 'IE4 = ' + top.IE4 + '\nNS4 = ' + top.NS4 + '\nIE5 = ' + top.IE5 + '\nNS6 = ' + top.NS6 ); function ShowElement(elementName, flag) { //alert('entering ShowElement() elementName = ' + elementName ); if (top.oldBrowser) return false; var dispProperty = flag ? 'visible' : 'hidden'; if (top.NS4) { myDiv = document.layers[elementName]; myDiv.visibility = dispProperty; // works in NS4.8 } else if (top.IE4) { eval(elementName).style.visibility = dispProperty; // not tested } else if (top.IE5) { eval( elementName+".style.visibility='"+dispProperty+"'"); // works in IE5.5 } else if (top.NS6) { document.getElementById(elementName).style.visibility = dispProperty; //works in NS7 } //alert('exiting ShowElement()'); } function LibStub() { alert('LibStub() works!'); } function mainMenuClick( url ) { //alert('entering mainMenuClick()'); //if (top.oldBrowser == false) { var menuName = url.substring(url.lastIndexOf('/')+1) ; top.subMenuClicked = null; top.mainMenuClicked = true; //} // load the bottom frame top.BottomFrame.location.href=url; } function subMenuClick(mainSubChoice, newWin) { //alert('entering subMenuClick()'); // mainSubChoice looks like: "aboutus_0" // Pass in true for the newWin arg to make the new URL come up in a new window. var underscoreLoc = mainSubChoice.indexOf('_'); var mainMenuName = mainSubChoice.substring(0,underscoreLoc); var subMenuNumber = mainSubChoice.substring(underscoreLoc+1); // make a var that holds: "aboutusL0" instead of "aboutus_0" var imgName = mainSubChoice.replace('_','L') // remember that a submenu has been clicked (in a global) parent.subMenuClicked = mainSubChoice; if (top.oldBrowser == false) { if (top.IE5) eval( "top.TopFrame." + mainSubChoice + ".blur()" ); highlightSubMenus(mainSubChoice); } for(var i=0; i_out.src function clearSubMenu(mainMenu) { //alert('entering clearSubMenu()'); if (top.oldBrowser) return false; if (document.images) { var numSubMenus = eval('top.' + mainMenu+"URLs").length; for(var i=0; i -1) return parent.menuNames[i]; } return ''; }