ns=window.navigator.appName == "Netscape"
ie=window.navigator.appName == "Microsoft Internet Explorer"
var cobrandHeight=cobrandHeight||0;
var currentLayer
function showMenu(x) { 
	if(ie) {
		document.all[x].style.visibility = "visible"
	}
	if(ns) {
		document.layers[x].visibility = "show"
	}
	positionIt(x)
	if (x == "menu0") {
		InitializeScrollableArea()
	}
	currentLayer = x
}
function hideMenu(x) {
	if(ie) {
		for(x=0; x < 4; x++){
			document.all['menu' + x].style.visibility = "hidden"
		}
	}
	if(ns) {
		for(x=0; x < 4; x++){
			document.layers['menu' + x].visibility = "hide"
		}
	}
	objContainer=new ConstructObject('area')
	objUpArrow=new ConstructImage('upArrow')
	objDownArrow=new ConstructImage('downArrow')
	objContainer.css.visibility='hidden'
	objUpArrow.css.visibility='hidden'
	objDownArrow.css.visibility='hidden'
}
// Set global variables for browser detection and reference building
var isNav, isIE
var coll = ""
var styleObj = ""
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true
	} else {
		isIE = true
		coll = "all."
		styleObj = ".style"
	}
}
// Utility function to position an element at a specific x,y location
function shiftTo(obj, x, y) {
	if (isNav) {
		obj.moveTo(x,y)
	} else {
		obj.pixelLeft = x
		obj.pixelTop = y
	}
}
// Center a positionable element whose name is passed as 
// a parameter in the current window/frame, and show it
function positionIt(layerName) {
	// 'obj' is the positionable object
	var obj = eval("document." + coll + layerName + styleObj)
	// 'contentObj' is the element content
	var contentObj
	if (isNav) {
		// same as positionable element for NN
		contentObj = document.layers[layerName]
	} else {
		// need to get size of nested content to set size
		// of containing DIV for IE
		contentObj = document.all[layerName].children[0]
	}
	var x
	var y
	if(layerName == "menu0") {
		x = 144
	}
	if(layerName == "menu1") {
		x = 303
	}
	if(layerName == "menu2") {
		x = 448
	}
	if(layerName == "menu3") {
		x = 595
	}
	y = 208+cobrandHeight;
	shiftTo(obj, x, y)
	obj.visibility = "visible"
}