// ** subnav **
var numOfLNav = 17;
var lnavOn = new Array();
var lnavOff = new Array();
for (i = 1; i <= numOfLNav; i++){
	lnavOn[i] = new Image();
	lnavOff[i] = new Image();
}
lnavOn[1].src ="/images/lnav_corp_info_on.gif";
lnavOn[2].src ="/images/lnav_mem_info_on.gif";
lnavOn[3].src ="/images/lnav_media_on.gif";
lnavOn[4].src ="/images/lnav_issues_on.gif";
lnavOn[5].src ="/images/lnav_resources_on.gif";
lnavOn[6].src ="/images/lnav_mrkt_systems_on.gif";
lnavOn[7].src ="/images/lnav_contact_on.gif";
lnavOn[8].src ="/images/lnav_career_oppo_on.gif";
lnavOn[9].src ="/images/lnav_subscribe_on.gif";
lnavOn[10].src ="/images/lnav_help_investors_on.gif";
lnavOn[11].src ="/images/lnav_career_home_on.gif";
lnavOn[12].src ="/images/lnav_career_benefits_on.gif";
lnavOn[13].src ="/images/lnav_career_compensation_on.gif";
lnavOn[14].src ="/images/lnav_career_eeo_on.gif";
lnavOn[15].src ="/images/lnav_career_search_on.gif";
lnavOn[16].src ="/images/lnav_career_location_on.gif";
lnavOn[17].src ="/images/lnav_career_about_on.gif";

lnavOff[1].src ="/images/lnav_corp_info_off.gif";
lnavOff[2].src ="/images/lnav_mem_info_off.gif";
lnavOff[3].src ="/images/lnav_media_off.gif";
lnavOff[4].src ="/images/lnav_issues_off.gif";
lnavOff[5].src ="/images/lnav_resources_off.gif";
lnavOff[6].src ="/images/lnav_mrkt_systems_off.gif";
lnavOff[7].src ="/images/lnav_contact_off.gif";
lnavOff[8].src ="/images/lnav_career_oppo_off.gif";
lnavOff[9].src ="/images/lnav_subscribe_off.gif";
lnavOff[10].src ="/images/lnav_help_investors_off.gif";
lnavOff[11].src ="/images/lnav_career_home_off.gif";
lnavOff[12].src ="/images/lnav_career_benefits_off.gif";
lnavOff[13].src ="/images/lnav_career_compensation_off.gif";
lnavOff[14].src ="/images/lnav_career_eeo_off.gif";
lnavOff[15].src ="/images/lnav_career_search_off.gif";
lnavOff[16].src ="/images/lnav_career_location_off.gif";
lnavOff[17].src ="/images/lnav_career_about_off.gif";

// ** topnav **
var numOfTNav = 4;
var tnavOn = new Array();
var tnavOff = new Array();
for (i = 1; i <= numOfTNav; i++){
	tnavOn[i] = new Image();
	tnavOff[i] = new Image();
}
tnavOn[1].src ="/images/tnav_regulation_on.gif";
tnavOn[2].src ="/images/tnav_investor_on.gif";
tnavOn[3].src ="/images/tnav_dispute_res_on.gif";
tnavOn[4].src ="/images/tnav_prof_dev_on.gif";

tnavOff[1].src ="/images/tnav_regulation_off.gif";
tnavOff[2].src ="/images/tnav_investor_off.gif";
tnavOff[3].src ="/images/tnav_dispute_res_off.gif";
tnavOff[4].src ="/images/tnav_prof_dev_off.gif";

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

function rollover(group, ndx){
	// group is either left(L) or top (T)
	if (group == "L"){
		document["lnav" + ndx].src = lnavOn[ndx].src;
	}
	else if (group == "T"){
		document["tnav" + ndx].src = tnavOn[ndx].src;
	}
// show DHTML popup layer
//	if (group=="T") {show(group + ndx);}
}

function rollout(group, ndx){
	// group is either left(L) or top (T)
	if (group == "L"){
		document["lnav" + ndx].src = lnavOff[ndx].src;
	}
	else if (group == "T"){
		document["tnav" + ndx].src = tnavOff[ndx].src;
	}
// hide DHTML popup layer
//	if (group=="T") {hide(group + ndx);}
}

// DHTML custom API for cross-platform
// browser sniffer
var NN, IE, dynNN, dynIE
var collection = "";
var objStyle = "";
var agent = navigator.appName + navigator.appVersion;

NN = ( (agent.indexOf("Netscape") > -1 ) ? 1 : 0);
IE = ( (agent.indexOf("Explorer" )> -1 || agent.indexOf("MSIE") > -1 ) ? 1 : 0);

if (parseInt(navigator.appVersion) >= 4){
	if (navigator.appName == "Netscape"){
		dynNN = true;
	}
	else{
		dynIE = true;
		collection = "all."
		objStyle = ".style"
	}
}
// don't you ever frame me!
//if (top.frames.length != 0)  {top.location = document.URL;}
var DHTML = (dynNN || dynIE);
var isMac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1);

// handle resizing in Netscape
// include the following code into the HEAD section of the document
function handleResize(){
	location.href.reload();
	return false;
}
if (dynNN){
	window.captureEvents(Event.RESIZE);
	window.onresize = handleResize;
} else{
	//window.onresize = handleResize;
}

// convert object name string or object reference into a valid object reference
function getObject(obj){
	var theObj;
	if (typeof obj == "string"){
		theObj = eval("document." + collection + obj + objStyle);
	}
	else {theObj = obj;}
	return theObj;
}

// position an object to a specific coordinate
function shiftTo(obj, x, y){
	var theObj = getObject(obj);
	if (dynNN){
		theObj.moveTo(x,y);
	}
	else{
		theObj.pixelLeft = x;
		theObj.pixelTop = y;
	}
}

// move an object by specific horizontal & vertical offsets
function shiftBy(obj, deltaX, deltaY){
	var theObj = getObject(obj);
	if (dynNN){
		theObj.moveBy(deltaX, deltaY);
	}
	else{
		theObj.pixelLeft += deltaX;
		theObj.pixelTop += deltaY;
	}
}

// set the z-index of an object
function setZIndex(obj, zOrder){
	var theObj = getObject(obj);
	theObj.zIndex = zOrder;
}

// set background color of an object
function setBgColor(obj, color){
	var theObj = getObject(obj);
	if (dynNN){
		theObj.bgColor = color;
	}
	else{
		theObj.backgroundColor = color;
	}
}

// show an object
function show(obj){
	var theObj = getObject(obj);
	theObj.visibility = "visible";
}

// hide an object
function hide(obj){
	var theObj = getObject(obj);
	theObj.visibility = "hidden";
}

// return available content width space in browser
function getInsideWindowWidth(){
	if (dynNN){
		return window.innerWidth;
	}
	else{
		return document.body.clientWidth;
	}
}

// return available content height space in browser
function getInsideWindowHeight(){
	if (dynNN){
		return window.innerHeight;
	}
	else{
		return document.body.clientHeight;
	}
}

// get the left coordinate of an object
function getObjectLeft(obj){
	var theObj = getObject(obj);
	if (dynNN){
		return theObj.left;
	}
	else{
		return theObj.pixelLeft;
	}
}

// get the top coordinate of an object
function getObjectTop(obj){
	var theObj = getObject(obj);
	if (dynNN){
		return theObj.top;
	}
	else{
		return theObj.pixelTop;
	}
}

// return rendered height of object content in pixels
function getObjectHeight(obj){
	var theObj = getObject(obj);
	if (dynNN){
		return theObj.clip.height;
	}
	else{
		return theObj.clientHeight;
	}
}

// return rendered width of object content in pixels
function getObjectWidth(obj){
	var theObj = getObject(obj);
	if (dynNN){
		return theObj.clip.width;
	}
	else{
		return theObj.clientWidth;
	}
}

function spinOff(target_url, target_width, target_height){
	if (top.offspring && !top.offspring.closed) {top.offspring.close();}
	top.offspring = window.open(target_url, "smallwin", "location=no,scrollbars=no,resizable=no,width=" + target_width + ",height=" + target_height);
}

function showSelect(isOn){
	if(HM_IE) {
		document.all("thisForm").style.visibility = isOn ? "visible" : "hidden";
	}
	else{
		document.thisForm.visibility = isOn ? "show" : "hide";
	}
}