<!--
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 menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null
 var loaded = 0
 
// MENU COLOR VARIABLE
var menuColor = "#000000"

//PRECACHE IMAGES HERE
function LoadImgs(){
  if (document.images || IE4) {
  menu1 = new Image(); menu1.src = "/Global/Images/Menu/Blip_blue.gif";
  menu2 = new Image(); menu2.src = "/Global/Images/Menu/Blip_green.gif";
  loaded = 1
  }
 }

// LAYER SWITCHING CODE
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  }else{
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
 }
}
  
// SHOW MENU
function showLayer(layerName){
if (NS4 || IE4) {
 if (timeOn != null) {
  clearTimeout(timeOn)
  hideLayer(onLayer)
 }
 if (NS4 || IE4) {
  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"');
  }
 }
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",300)
}

// BUTTON MOUSE OUT
function btnOut(layerName) {
 if (menuActive == 0) {
  hideLayer(onLayer)
  }
}

// MENU MOUSE OVER  
function menuOver() {
 clearTimeout(timeOn)
 menuActive = 1
/* if (NS4 || IE4) {
  if (NS4) {
    document[onLayer].document.images[itemName].src = menu2.src
 } else {
     document.all[itemName].src = menu2.src
 }
 }*/
}

// MENU MOUSE OUT 
function menuOut() {
 menuActive = 0 
/*  if (NS4 || IE4) {
  if (NS4) {
    document[onLayer].document.images[itemName].src = menu1.src
  } else {
     document.all[itemName].src = menu1.src
  }
  }*/
  timeOn = setTimeout("hideLayer(onLayer)", 400)
 }

function rate() {
  document.form.HideRate.value = "Rate it!";
  document.form.submit();
}

function submitOnOff(strURL) {
  document.form.action = strURL;
  document.form.submit();

}
// -->

