// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
<!--

window.onerror = null;           // This turns off error trapping
// The variable bName reads the browser name from the navigator.appName object
 var bName = navigator.appName;

 var bVer = parseInt(navigator.appVersion);
 
 var NS6 = (bName == "Netscape" && bVer > 4);  // I added this line to make it work in NS 6+
 var NS4 = (bName == "Netscape" && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 //  The next 4 lines create other variables used in the code.
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null

if (NS4 || IE4) {          // If NS4 equals True and IE4 equals True.  These variables are set above.
 if (navigator.appName == "Netscape") {  // If the browser is Netscape, the variables are set to 
 layerStyleRef="layer.";                 // the document.layer object reference, which only works in
 layerRef="document.layers";             // Netscape 4.7 or below.
 styleSwitch="";
 }else{                                  // If the browser is IE, use the document.all reference for
 layerStyleRef="layer.style.";           // the layer code. 
 layerRef="document.all";
 styleSwitch=".style";
 }
}

function showLayer(layerName){
if (NS4 || IE4 || NS6) {       // If the browser is NS 4+ or IE 4+ or NS6, otherwise ignore


 if (timeOn != null) {  // if the variable timeOn is not null, because the btnTimer function hasd started it
 clearTimeout(timeOn)   // stop the timer

 
 hideLayer(onLayer) 
 }
 
 
 if (NS4 || IE4) {

 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 } 

 onLayer = layerName
 }

 if (NS6) {
 // For NS6+ browsers, the line below will read:
 // eval(document.getElementById('Aboutus').style.visibility='visible')
   eval("document.getElementById('" + layerName + "').style.visibility='visible'");
 }
onLayer = layerName   //same as the similar line above.
}

function hideLayer(layerName){
 if (menuActive == 0) {  //This look to see if the menu is being used.  The menuOver function,
 
 if (NS4 || IE4) {
 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }
 if (NS6) {
  eval("document.getElementById('" + layerName + "').style.visibility='hidden'"); 
}
 }
}
// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",3000)
}// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
 hideLayer(onLayer)
 }
}// MENU MOUSE OVER 
function menuOver(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
}// MENU MOUSE OUT 
function menuOut(itemName) {
 menuActive = 0 
 timeOn = setTimeout("hideLayer(onLayer)", 400)
 }// -->
