<!--
var numMenus = 1;
var currDropDown = "";

// ----------------------------------------------------------------------
// Set all submenus default HIDDEN
// ----------------------------------------------------------------------

// function hides the select menu on /employment/search.jsp when the dhtml menus are activated
function displayDropDown(state) {
		dropDownToWorkWith = eval(docObj + "functionDropDown" + styleObj);
		dropDownToWorkWith.visibility = state;
}

function clearMenu() {
	for (i = 1; i <= numMenus; i++) {
		foo = eval(docObj + "dropNav" + i + styleObj);
		foo.visibility = "hidden";
		// show the select menu if on /employment/search.jsp
		if(document.searchForm && document.all){
			displayDropDown('visible');
		}
	}
}

function toggleMenu(showDrop) {
	currDropDown = showDrop;
	clearMenu();
	clearTimeout(timerID);
	// hide the select menu if on /employment/search.jsp
	if(document.searchForm && document.all){
		displayDropDown('hidden');
	}
	dom = eval(docObj + showDrop + styleObj);
	dom.visibility = "visible";
}

// ----------------------------------------------------------------------
// Set up timer for menu hide onmouseout
// ----------------------------------------------------------------------

var timerID = 0;

function hideCountdown(currNav){
	theNavItem = currNav;
	timerID = setTimeout("clearMenu(theNavItem)",1000);
}

//----------------------------------------------------------------------
// Hide select menus underneath the dhtml menu
//----------------------------------------------------------------------

function getSelectObj(selectStr) {
	if(document.getElementById(selectStr) != null) {
		domObj = eval(docObj + selectStr + styleObj);
		return domObj;
	}
	else {
		return false;
	}
}

function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x) {
		curleft += obj.x;
	}
	return curleft;
}

function findPosY(objTop) {
	var curTop = 0;
	if (objTop.offsetParent)
	{
		while (objTop.offsetParent)
		{
			curTop += objTop.offsetTop;
			objTop = objTop.offsetParent;
		}
	}
	else if (objTop.x) {
		curTop += objTop.x;
	}
	return curTop;
}

function positionNavs() {
	var pad = 177;
	var offSet = 0;
	var offSetTop = 0;
	
	// Country Drop Down is positioned vertically and horizontally by the location of the banner
	var objCountry = document.getElementById('chooseCountry');
	var offSetCountryTop = findPosY(objCountry);
	var offSetCountryLeft = findPosX(objCountry);
	
	//alert("offSetCountryTop = " + offSetCountryTop + "\n" + "offSetCountryLeft = " + offSetCountryLeft + "\n" + "offSet = " + offSet);
		
	var countryObj = eval(docObj + "dropNav1" + styleObj);
	
	// Set left positions
	countryObj.left =  offSetCountryLeft + "px";
	
	// Set top positions
	countryObj.top = offSetCountryTop + "px";

}
//-->

