var doShowroomPopups=false;

//set x y height and width of swf
var nav_x=0;
var nav_y=108;
var nav_w=778;
var nav_h=200;
var nav_r=nav_x+nav_w;
var nav_b=nav_y+nav_h;
var ie=document.all?true:false;
var mac=navigator.appVersion.indexOf("acintosh")>-1;
var mx=0;
var my=0;
var ief="";
var je=navigator.javaEnabled();
var jsurl="notset";
var liveconnect="notset";
var state="closed";
var canclose=false;
var fplver=""
var ns6=navigator.appName=="Netscape"&&(navigator.userAgent.indexOf("/5.")>-1||navigator.userAgent.indexOf("/6.")>-1);
var loded=false;
var ns62=ns6&&parseFloat(navigator.vendorSub)>=6.2
var nua=navigator.userAgent.toLowerCase();
var exp=(nua.indexOf("msie")>-1||nua.indexOf("aol")>-1)&&navigator.appName!="Netscape";
var callflag=false

// Determine which sort of browser
netscape4=false;
if (navigator.appName=="Netscape" && navigator.appVersion[0]<=4) {
  netscape4=true;
}

//  This Code is subject to the terms, conditions, warranties, and disclaimers of the Webmonkey Public License, Version 1.0 located at http://www.hotwired.com/webmonkey/javascript/code_library/license/wpl.html. Original Code is (c) 1998 Wired Digital Inc. (and, if applicable, Modifications are (c) Date: _______________ Author: ________________; Author URL: ______________; Author Email:___________________). All Rights Reserved. This Code came from the Webmonkey Code Library located at http://www.hotwired.com/webmonkey/javascript/code_library/. Webmonkey is a registered trademark of Wired Ventures Inc.
function WM_preloadImages() {

/*
WM_preloadImages()
Loads images into the browser's cache for later use.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)

Author: Nadav Savio
Author Email: nadav@wired.com

Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
*/

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}

//  This Code is subject to the terms, conditions, warranties, and disclaimers of the Webmonkey Public License, Version 1.0 located at http://www.hotwired.com/webmonkey/javascript/code_library/license/wpl.html. Original Code is (c) 1998 Wired Digital Inc. (and, if applicable, Modifications are (c) Date: _______________ Author: ________________; Author URL: ______________; Author Email:___________________). All Rights Reserved. This Code came from the Webmonkey Code Library located at http://www.hotwired.com/webmonkey/javascript/code_library/. Webmonkey is a registered trademark of Wired Ventures Inc.
function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  /*
    WM_imageSwap()
    Changes the source of an image.

    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Shvatz
    Author Email: shvatz@wired.com

    Usage: WM_imageSwap(originalImage, 'newSourceUrl');

    Requires: WM_preloadImages() (optional, but recommended)
    Thanks to Ken Sundermeyer (ksundermeyer@macromedia.com) for his help
    with variables in ie3 for the mac.
    */
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
    daImage.src = daSrc;
    }
  }
}

var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;
var domStyle;

if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

<!--
// This code is from Dynamic Web Coding www.dyn-web.com 
// Copyright 2002 by Sharon Paine Permission granted to use this code as long as this entire notice is included.
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at http://simplythebest.net/scripts/dhtml_scripts.html

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

if (nodyn) { event = "nope" }
var tipFollowMouse	= true;	
var tipWidth		= 160;
var offX		 	= 12;	// how far from mouse to show tip
var offY		 	= 12; 

var tooltip, tipcss;
function initTip(tipobj,tipname) {
	if (nodyn) return;
	tooltip = (ns4)? tipobj.document: (ie4)? document.all[tipname]: (ie5||ns5)? document.getElementById(tipname): null;
	tipcss = (ns4)? tipobj: tooltip.style;
	if (tooltip&&tipFollowMouse) {
		//if (ns4) document.captureEvents(Event.MOUSEMOVE);
		//document.onmousemove = trackMouse;
            doShowroomPopups=true;
	}
}

// window.onload = initTip;

var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {

	// set initial popup position
    if (mouseX==0&&mouseY==0) {
        mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
        mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
      }

	if (!tooltip) return;
	if (t1) clearTimeout(t1);
        if (t2) clearTimeout(t2);
	tipOn = true;

	if (!tipFollowMouse) positionTip(evt);
	else positionTip(evt);
        tipcss.visibility='visible';
}

var mouseX=0, mouseY=0;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
        tipcss.visibility='hidden';
        tipOn = false;
}

function posit(e){
	if (doShowroomPopups==true) {trackMouse(e);}
	/*
	trackmouse change by Cap Gemini NOTE:
	trackmouse(e) here will not transfer e. e/event must be tested/ (x).parames stripped and sent/trackmouse changed to handle the new arguments

	*/
	if(loded==true){
		//xy positional handler
		var tx=0;var ty=0;tx=ie?event.clientX + document.body.scrollLeft:e.pageX;tx=tx<0?0:tx;mx=tx;ty=ie?event.clientY + document.body.scrollTop:e.pageY;ty=ty<0?0:ty;my=ty;
		if(tx<nav_x||tx>nav_r||ty>nav_b||ty<nav_y){
			//is outside swf area
			if(liveconnect==true){
				MM_findObj("menu").SetVariable("closemenus","true");
			}
			if(jsurl==false||(!exp&&!mac&&!ns6&&liveconnect==true&&navigator.userAgent.toLowerCase().indexOf("mozilla/4.")>-1&&navigator.appName=="Netscape")){
				//is pc netscape 4 to 4.75 so setClose
				if(canclose==true){
					/*var jsurl_pcns=setTimeout("closemenus()",500);*/
					closemenus();
				};
			};
			state="closed";
		}else{
			//is inside swf area
			/*clearTimeout("jsurl_pcns");*/
			state="open"; 
		};
	};
};
document.layers?document.captureEvents(Event.MOUSEMOVE):void(0);document.onmousemove=posit;

/*function callclose(){if(callflag==false&&loded==true){showHide("calltoAction","","hide");callflag=true;};}*/
function ieclose(){clearTimeout("ief");if(state=="closed"){if(loded==true){showHide('nav','','show');showHide('nav','','hide');};ief=setTimeout("ieclose()",50);};};

function ns6C(){
//alert('calling ns6C')
if(ns6==true){
	MM_findObj("nav").style.left="-1000";
};
if(loded!=true){
	//showHide('nav','','hide');
	if(mac&&exp){
		ief=setTimeout("ieclose()",50);
	};
};
loded=true;
}

function ns6open(){if(ns6==true){MM_findObj("nav").style.left="0";};}
function focposit(){setjscall(fplver);posit();}
//onload=ns6C;

if(!top.onfocus){;}else{top.onfocus=focposit;}

//-->
