// Browser Detection
isMac   = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4     = (document.layers) ? true : false;
IEmac   = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4     = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5     = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
IE6     = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
ver4    = (NS4 || IE4plus) ? true : false;
NS6     = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;
ver6    = (NS6 || IE6) ? true : false;

// Body onload utility (supports multiple onload functions)
var gSafeOnLoad = new Array();

function safeAddOnLoad(f)
{
  if (IEmac && IE4)  // IE 4.5 blows out on testing window.onload
  {
    window.onload = safeOnLoad;
    gSafeOnLoad[gSafeOnLoad.length] = f;
  }
  else if  (window.onload)
  {
    if (window.onload != safeOnLoad)
    {
      gSafeOnLoad[0] = window.onload;
      window.onload = safeOnLoad;
    }		

    gSafeOnLoad[gSafeOnLoad.length] = f;
  }
  else
  {
    window.onload = f;
  }
}

function safeOnLoad()
{
  for (var i = 0; i < gSafeOnLoad.length; i++)
  {
    gSafeOnLoad[i]();
  }
}

function load(url) 
{
  // Redirect this page to the provided URL
  document.location.href = url;
}

function openWindow(url, width, height, other_options) 
{
  // Add in our window options.  Width and height are
  // required, everything else is optional and can be
  // passed in as one string ('scrollbars,resizable', etc.)
  var options     = 'width=' + width;
  options        += ',height=' + height;
  options        += ',' + other_options;

  // Open our new window and give it focus    
  newWin          = window.open(url, 'newWin', options);
  newWin.focus();
}


function showOrHide(div_id) 
{
  // Either show the selected div it's hidden, or
  // hide if it's showing.
  div     = document.getElementById(div_id);
  
  if (div.style.display == "block") 
  {
    div.style.display = "none";
  } 
  else 
  {
    div.style.display = "block";
  }
}

// Urchin
document.write('<script src="/__utm.js" type="text/javascript"></script>');