<!--
if (document.getElementById)
{
  var isIE5=(document.all) ? true : false;
  var isNS6=(!document.all) ? true : false;
}
else
{
  var isIE5 = false;
  var isNS6 = false;
}

isOpera = navigator.userAgent.toLowerCase().indexOf("opera");

if (isOpera != -1)
{
  var isNS6 = true;
  var isIE5 = false;
}

if ((isIE5) || (isNS6))
{
  if (window.Node && Node.prototype && !Node.prototype.contains)
    Node.prototype.contains = function (nodeToCheck) {
       while (nodeToCheck) {
         if (this == nodeToCheck)
           return true;
         nodeToCheck = nodeToCheck.parentNode;
       }
       return false;
    };
}

isMac = navigator.userAgent.toLowerCase().indexOf("mac");

if (isMac != -1)
{
  if ((isNS6) || (isIE5))
    document.write("<link rel='stylesheet' href='fb.css'>");
  else
    document.write("<link rel='stylesheet' href='fbmac.css'>");
}
else
  document.write("<link rel='stylesheet' href='fb.css'>");

function hideObj(hideselect)
{
  if (isNS6)
  {
    var div = document.getElementsByTagName('DIV');
    for (var x = 0; x < div.length; x++)
    {
      if (div[x].id.indexOf("menu") != -1)
        div[x].style.visibility = "hidden";
    }
  }
  else if (isIE5)
  {
    var div = document.all.tags('DIV')
    for (var x = 0; x < div.length; x++)
    {
      if ((div[x].name.indexOf("sel") != -1) || (div[x].name == "sbblk"))
      {
        if (hideselect)
          div[x].style.visibility = "hidden";
        else
          div[x].style.visibility = "visible";
      }
      else
      {
        if (div[x].name.indexOf("menu") != -1)
          div[x].style.visibility = "hidden";
      }
    }
  }
}

function showObj(obj,act)
{
  hideObj(true);
  if (isNS6)
    document.getElementById(obj).style.visibility = act;
  else if (isIE5)
    document.all[obj].style.visibility = act;
}

function showDual(obj,act)
{
  if (isNS6)
  {
    var div = document.getElementsByTagName('DIV');
    for (var x = 0; x < div.length; x++)
    {
      div[x].style.visibility = "hidden";
    }
    document.getElementById(obj).style.visibility = act;
    document.getElementById(obj + "2").style.visibility = act;
  }
  else if (isIE5)
  {
    var div = document.all.tags('DIV')
    for (var x = 0; x < div.length; x++)
    {
      div[x].style.visibility = "hidden";
    }
    document.all[obj].style.visibility = act;
    document.all[obj + "2"].style.visibility = act;
  }
}

function chgClr(e,s,clr,from)
{
  var cnt=false;
  if (from) { if (!s.contains(e.fromElement))cnt=true; }
  else { if (!s.contains(e.toElement))cnt=true; }

  if (cnt)
  {
    source=isIE5? e.srcElement : e.target
    if (source.tagName=="TR"||source.tagName=="TABLE")
      return
    while(source.tagName!="TD"&&source.tagName!="HTML")
      source=isNS6? source.parentNode : source.parentElement
    source.style.backgroundColor=clr
  }
}

// DETERMINE BROWSER
var isNS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5 );
var isIE5 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 6 );
var isNS6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5 || navigator.appName == "Opera");

function showSubNav(param)
{
        // Shows nav layer when user rolls over appropriate img src
        if (isNS4) {
                document.layers[param].visibility = "visible";
        }       
        else if (isIE5) {
                eval(param + ".style.visibility = 'visible'");
        }
        else {
                document.getElementById(param).style.visibility = "visible";
        }
}

function hideSubNav(param)
{

/* 1. Hide the visible sublayer - user moves off main nav without rolling onto subnav 
         2. Capture the onMouseOver/onMouseOut events for the sublayer as "param". 
         3. Pass the captured events to the showSubLayer()/hideSubLayer() functions. */ 
        
        if(isNS4)       {
                document.layers[param].visibility = "hidden";
                document.layers[param].captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);         
                document.layers[param].onmouseover = showSubLayer;
                document.layers[param].onmouseout = hideSubLayer;               
        }
        else if (isIE5) {
                eval( param + ".style.visibility = 'hidden'");
                eval( param + ".onmouseover = showSubLayer");
                eval( param + ".onmouseout = hideSubLayer");
        }       
        else if (isNS6) {
                document.getElementById(param).style.visibility = "hidden";
                document.getElementById(param).addEventListener("mouseover",showSubLayer, false);               
                document.getElementById(param).addEventListener("mouseout",hideSubLayer, false);
        }
        else {
                document.getElementById(param).style.visibility = "hidden";
                document.getElementById(param).addEventListener("mouseover",showSubLayer, false);               
                document.getElementById(param).addEventListener("mouseout",hideSubLayer, false);
        }
}

/* In the following functions the "evnt" parameter is a placeholder for the event object that has been captured and is being passed to the function. Within the function the event object that has been passed in is referenced by the keyword "this". */

function showSubLayer(evnt)
{
        if(isNS4) {
                this.visibility = "visible";                                                                    
        }
        else {
                this.style.visibility = "visible";
        }
}               

function hideSubLayer(evnt)
{
        if(isNS4)       {
                this.visibility = "hidden";
        }               
        else {
                this.style.visibility = "hidden";
        }       
}

//-->