<!--
// Check what browser we are using
ne = true ? navigator.appName == 'Netscape' && navigator.appVersion.substring(0,1) == '4' : ne = false;
ne6 = true ? navigator.appName == 'Netscape' && navigator.appVersion.substring(0,1) >= '5' : ne6 = false;
ie = true ? navigator.appName.substring(0,1) == 'M' && navigator.appVersion.substring(0,1) >= '4' : ie = false;

op = false;
if(!document.all && document.getElementById){
  op = true;
  }

var active = false;
var timer = false;

//Set up the function that kicks the dropdown menu action
function dropMenu(layer,action)
  {
  if(layer != "all" && action != "hide")
    {
//IE uses 'visible' and 'hidden', but Netscape used 'show' and hide' and Netscape 6 uses visible and hidde, jackasses...so break it down, baby
    if(ie)
      {
      if(action == "show")
        {
        action = "visible";
        }
      if(action == "hide")
        {
        action = "hidden";
        }
//what if there is already a drop down layer showing?
      if(active)
        {
        document.all[active].style.visibility = "hidden";
        }
      document.all[layer].style.visibility = action;
      }
//here is where we tell netscape6 to use visible and hidden
    if(ne6 || op)
      {
      if(action == "show")
        {
        action = "visible";
        }
      if(action == "hide")
        {
        action = "hidden";
        }
//and if there is already a drop down layer showing for Netscape 6?

      if(active)
        {
        document.getElementById(active).style.visibility = "hidden";
        }
      document.getElementById(layer).style.visibility = action;
      }
    if(ne)
      {
//and if there is already a drop down layer showing for old Netscape?
      if(active)
        {
//notice we are using show and hide... not visible and hidden
        document.layers[active].visibility = "hide";
        }
      document.layers[layer].visibility = action;
      }
    active = layer;
    }
  if(active && layer == "all" && action == "hide")
    {
    timer = true;
    hidediv = window.setTimeout("hideall(active)",500);
    }
  if(timer && (action == "show" || action == "visible"))
    {
    window.clearTimeout(hidediv);
    }
  }

function hideall(layer)
  {
  if(ie)
    {
    document.all[layer].style.visibility = "hidden";
    }
  if(ne6 || op)
    {
    document.getElementById(layer).style.visibility = "hidden";
    }
  if(ne)
    {
    document.layers[layer].visibility = "hide";
    }
  }

function setvisibility(div,action)
  {
  if(ie)
    {
    document.all[div].style.visibility = action;
    }
  if(ne6 || op)
    {
    document.getElementById(layer).style.visibility = action;
    }
  if(ne)
    {
    if(action == "visible")
      {
      action = "show"
      }
    if(action == "hidden")
      {
      action = "hide"
      }
    document.layers[div].visibility = action;
    }
  }
//-->
