//sets the background color to nothing

var prevHighlight = -1

function headerMenu_MouseOver(link_id,BASEDIR)
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{	
			document.getElementById("headerMenu"+link_id).style.backgroundColor = "#ffa509";
			if (prevHighlight!=-1)
			{
				if (prevHighlight != link_id){
					document.getElementById("headerMenu"+prevHighlight).style.backgroundColor = "";
				}
			}
			
			document.getElementById("subheader").innerHTML = xmlhttp.responseText;
			prevHighlight = link_id;
			
			
		}
	}
	
	xmlhttp.open("GET",BASEDIR+"sublinks.php?link_id="+link_id,true);
	xmlhttp.send();
}

