var n, ie, ns6; // browserCheck variables
var hideLock = 0;
		
function topNavPop(imgName, imgAlt, imgWidth, theURL, divName, divOffset) {
	if (imgAlt == "<% =sectionVar %>") {
		str2 = "<a href='" + theURL + "' onMouseover='layerOn(\"" + divName + "\"," + divOffset + ")'><img src='/site/images/topnav/" + imgName + "_on.gif' alt='" + imgAlt + "' width='" + imgWidth + "' height='32' border='0' name='topnav_" + imgName + "'></a>";
		}
	else {
		imgAdd("/site/images/topnav/" + imgName + "_on.gif");
		str2 = "<a href='" + theURL + "' onMouseover='document.images[\"topnav_" + imgName + "\"].src=\"/site/images/topnav/" + imgName + "_on.gif\";layerOn(\"" + divName + "\"," + divOffset + ")' onMouseout='document.images[\"topnav_" + imgName + "\"].src=\"/site/images/topnav/" + imgName + ".gif\"'><img src='/site/images/topnav/" + imgName + ".gif' alt='" + imgAlt + "' width='" + imgWidth + "' height='32' border='0' name='topnav_" + imgName + "'></a>";
		}
	return(str2);
	}

function init() {
	browserCheck();
	hideAll();
	}

if(document.layers) document.captureEvents(Event.MOUSEMOVE);

document.onmousemove=newPos;

function newPos(e){
	X=(navigator.appName.indexOf("Microsoft")!=-1)?(event.clientX + document.body.scrollLeft):e.pageX;
	Y=(navigator.appName.indexOf("Microsoft")!=-1)?(event.clientY + document.body.scrollTop):e.pageY;
	if (X < 0 || X > 300 || Y < 100) {
		// disabling hiding of nav layers based on window position.
		// hideAll();
		// hideLock = 0;
		}
	}

function linkOn() {
	hideLock=1;
	}

function browserCheck() {
	if (document.layers) {
		ns6=0; n=1; ie=0;
		}
	else if (document.all) {
		ns6=0; n=0; ie=1;
		}
	else {
		if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
			ns6=1; n=0; ie=0;
			}
		}
	}

function setIdProperty( id, property, value ) { // used for ns6 actions
	var styleObject = document.getElementById( id );
	if (styleObject != null) {
		styleObject = styleObject.style;
		styleObject[ property ] = value;
		}
	}

function layerOn(divName, xPos) {
	hideAll();
	if (divName) {
		if (n) {
			document.eval(divName).left = xPos;
			document.eval(divName).top = 76;
			document.eval(divName).visibility = "show";
			}
		if (ie) {
			eval(divName).style.left = xPos;
			if (navigator.platform.indexOf("Mac") > -1) {
				eval(divName).style.top = 76;
				}
			else {
				eval(divName).style.top = 76;
				}
			eval(divName).style.visibility = "visible";
			}
		if (ns6) {
			setIdProperty(divName, "left", xPos);
			setIdProperty(divName, "top", 76);
			setIdProperty(divName, "visibility", "visible");
			}
		}
	}

function layerHide(divName) {
	if (n) document.eval(divName).visibility = "hide";
	if (ie) eval(divName).style.visibility = "hidden";
	if (ns6) setIdProperty(divName, "visibility", "hidden");
	}

function hideAll() {
	layerHide("aboutDiv");
	layerHide("productsDiv");
	layerHide("solutionsDiv");
	layerHide("newsDiv");
	layerHide("supportDiv");
	layerHide("contactDiv");
	return;
	}