window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer == 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
var NS6 = (bName == "Netscape" && bVer == 5);
var menuActive = 0;
var menuOn = 0;
var onLayer;
var timeOn = null;

if (NS4 || IE4 || NS6) {
  if (NS4) {
    layerStyleRef="layer.";
    layerRef="document.layers";
    styleSwitch="";
  } else if (NS6) {
    layerStyleRef="layer.style.";
    layerRef="document.getElementById";
    styleSwitch=".style";
  }else{
    layerStyleRef="layer.style.";
    layerRef="document.all";
    styleSwitch=".style";
  }
}

function showLayer(layerName){
  if (NS4 || IE4 || NS6) {
    if (timeOn != null) {
      clearTimeout(timeOn)
	hideLayer(onLayer)
	}
    if (NS4 || IE4) {
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
    } else if (NS6) {
      eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="visible"');
    }
    onLayer = layerName
      }
}
// HIDE MENU
function hideLayer(layerName){
  if (menuActive == 0) {
    if (NS4 || IE4) {
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
    } else if (NS6) {
      eval(layerRef+'("'+layerName+'")'+styleSwitch+'.visibility="hidden"');
    }
  }
}// 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(itemName) {
  clearTimeout(timeOn)
    menuActive = 1
    }// MENU MOUSE OUT
function menuOut(itemName) {
  menuActive = 0
    timeOn = setTimeout("hideLayer(onLayer)", 600)
    }

function imgOn(Num) {
if (document.images) {
document.images["b" +Num].src = eval("b" +Num+ "on.src")
}
}

function imgOff(Num) {
if (document.images) {
document.images["b" +Num].src = eval("b" +Num+ ".src")
}
}



if(document.images){
for (i=1; i<=6; i++)
{
eval("b"+i+" = new Image()");eval("b"+i+".src = 'images/b"+i+".gif'");
eval("b"+i+"on = new Image()");eval("b"+i+"on.src = 'images/b"+i+"on.gif'");
} 
}




