<!--

//detect if browser is Netscape 3 + or IE 4 +. 

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
    (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
else br = "n2";

//create image objects, preload all active and inactive images

if (br == "n3") {
  solutionsMenuOn = new Image();
  solutionsMenuOn.src = "images/button_solutions_over.gif";
  companyMenuOn = new Image();
  companyMenuOn.src = "images/button_company_over.gif";
  customersMenuOn = new Image();
  customersMenuOn.src = "images/button_customers_over.gif";
  
  solutionsMenuOff = new Image();
  solutionsMenuOff.src = "images/button_solutions_off.gif";
  companyMenuOff = new Image();
  companyMenuOff.src = "images/button_company_off.gif";
  customersMenuOff = new Image();
  customersMenuOff.src = "images/button_customers_off.gif";
}

// function to activate menu when mouse over button or arrow images

function imgAction(imgName) {
  if (br== "n3") {
    document[imgName].src = eval(imgName + "On.src");
  }
}

// function to deactivate menu when mouse over button or arrow images

function imgInaction(imgName) { 
  if (br == "n3") {
    document[imgName].src = eval(imgName + "Off.src");
	}
}


// create pop-up window

var popupWindow
function createNew (URL,x,y) {
	if (!popupWindow || popupWindow.closed) {
		popupWindow = window.open(URL,"tour",'HEIGHT='+y+',WIDTH='+x+',scrollbars=1,resizeable=1,location=0,menubar=0')
		} else{
		//bring existing subwindow to the front
		popupWindow.focus()
		}
	}

  
function setColor (id, color)
{
  obj = document.getElementById(id);
  obj.style.background = color;
}

function setNavUnderline (obj)
{
  obj.style.textDecoration = 'underline';
}

function setNavNormal (obj)
{
  obj.style.textDecoration = 'none';
}


// detect browser plugins
// CopyRight © 1997-2001 JavaScript Kit. All rights reserved


var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {	pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
if (ns || !win) {
		nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
		pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
}

function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }

pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);

//SAMPLE USAGE- detect "Flash"
//if (pluginlist.indexOf("Flash")!=-1)
//document.write("You have flash installed")
