	var oCurrentNav;
	
	function onOff(img) {
		var bOn = (img.src.indexOf("_on") > 0);
		img.src = (bOn) ? img.src.replace(/_on/, "_off") : img.src.replace(/_off/, "_on");

	}
	
	function navOn() {
		navOff();
		
		sImg = arguments[0];
		oImg = document.getElementById(sImg.replace(/nav/,"img"));
		
		oImg.origSrc = oImg.src;
		oImg.src = oImg.src.replace(/_off/,"_on");
		
		oCurrentImg = oImg;
	}
	
	function navOff() {
		if (typeof(oCurrentImg) == "object") {oCurrentImg.src = oCurrentImg.origSrc;}
		oCurrentImg = "";
	}
	
	function navSub() {
		oTd = arguments[0];
		oTd.className = (oTd.className == "navSubOff") ? "navSubOn" : "navSubOff";
	}

	timerMenuKill = "";
	
	function highlight() {
		var theRow = arguments[0];
		navOn(theRow);
		if(typeof(timerMenuKill) != "string") {clearInterval(timerMenuKill);};
		killMenu();
		
		if (typeof(theRow) == "string") {theRow = document.getElementById(theRow);}
		theRow.className = theRow.id;
		navOn(theRow.id);
	}
	
	function dehighlight() {
		var sRow = arguments[0];
		if (typeof(sRow) == "string") {theRow = document.getElementById(sRow);}
		theRow.className = "navHidden";
		
	}
	
	function killMenu() {
		navOff();
		
		aDivs = document.getElementsByTagName("div");
		for (i=0;i <aDivs.length; i++) {
			var sId	= aDivs.item(i).id;
			if (sId.indexOf("nav") == 0) {
				dehighlight(sId);
				
			}
		}
	}
	
	function timedKillMenu() {
		timerMenuKill = setInterval("killMenu()", 250);
	}
	
	
	function countriesMenu() {
		var oDrop = arguments[0];
		var iMarketId = oDrop[oDrop.selectedIndex].value
		var sSearch = document.location.search;
		location.href = location.pathname + "?marketid=" + iMarketId;
	}
