// Preload rollover images
var securityOn = new Image();
securityOn.src = "/us/images/common/header_tabs_security_on.gif";

var technologyOn = new Image();
technologyOn.src = "/us/images/common/header_tabs_technology_on.gif";

var solutionsOn = new Image();
solutionsOn.src = "/us/images/common/header_tabs_solutions_on.gif";

function SwapImage(img, state)
{
   if (document.images || document.all)
   {
      document.images[img].src = "/us/images/common/" + img + "_" + state + ".gif";
   }
   
   return;
}

function AutoGo(formName, selectName)
{
   if (document.forms[formName])
   {
      if (document.forms[formName].elements[selectName])
      {
         itemIndex = document.forms[formName].elements[selectName].selectedIndex;
         loc = document.forms[formName].elements[selectName][itemIndex].value;
         if(loc != -1) {
           top.location.href=loc;
         }
      }
   }
}

var cssPath = "";

isMac = false;
isPC  = false;

isNN  = false;
isIE  = false;
isNN6 = false;

agent = navigator.userAgent;
if (agent.indexOf("Mac",0) != -1)
   isMac = true;
else
   isPC = true;

if (agent.indexOf("MSIE",0) != -1)
   isIE = true;
else
{
   if (agent.indexOf("Mozilla",0) != -1)
   {
      isNN = true;
      if ( (agent.indexOf("6.",0) != -1) || (agent.indexOf("7.",0) != -1) )
      {
         isNN6 = true;
      }
   }
}

platform = "pc";

if (isMac)
   platform = "mac";

browser = "ie";

if (isNN && !isNN6)
   browser = "NN";

cssPath = "/us/css/main_" + browser + "_" + platform + ".css";
//alert(cssPath);
