// JavaScript Document function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); /** * DHTML dropdown menu script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) */ var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var NS6 = (bName == "Netscape" && bVer >= 5); var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5); var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4); var NS3 = (bName == "Netscape" && bVer < 4); var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4); window.onerror = null; var menuActive = 0 var menuOn = 0 var onLayer var timeOn = null // LAYER SWITCHING CODE if (NS4 || IE4 || NS6) { if (navigator.appName == "Netscape" && !document.getElementById){ layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; layerVis="show"; layerHid="hide"; } else if (!document.all && document.getElementById) { layerStyleRef="layer.style."; layerRef="document.getElementById"; styleSwitch=".style"; layerVis="visible"; layerHid="hidden"; } else { layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; layerVis="visible"; layerHid="hidden"; } } // SHOW MENU function shLayer(layerName){ if (NS4 || IE4 || NS6) { if (timeOn != null) { clearTimeout(timeOn) hideLayer(onLayer) } if (NS4 || IE4) { eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="'+layerVis+'"'); } if (NS6) { eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="'+layerVis+'"'); } onLayer = layerName } }// HIDE MENU function hideLayer(layerName){ if (menuActive == 0) { if (NS4 || IE4) { eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="'+layerHid+'"'); } if (NS6) { eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="'+layerHid+'"'); } } }// TIMER FOR BUTTON MOUSE OUT function btnTimer() { timeOn = setTimeout("btnOut()",500) }// BUTTON MOUSE OUT function btnOut(layerName) { if (menuActive == 0) { hideLayer(onLayer) } }// MENU MOUSE OVER function menuOver() { clearTimeout(timeOn) menuActive = 1 }// MENU MOUSE OUT function menuOut() { menuActive = 0 timeOn = setTimeout("hideLayer(onLayer)", 100) }// SET BACKGROUND COLOR function setBgColor(layer, color) { if (NS6){ eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"'); } else if (NS4){ eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"'); eval('window.document.layers["'+layer+'"].saveColor="'+color+'"'); } else if (IE4){ eval('document.all.'+layer+'.style.backgroundColor="'+color+'"'); } } //function PopupPic(sPicURL) { // window.open("popupimg.php?"+sPicURL, "", "HEIGHT=200,WIDTH=200"); //} function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); }