var srcfile = "";
//button rollover function for XMLhome
function swap_style(btn_cls,id){
	if (document.getElementById){document.getElementById(id).className = btn_cls;}
}
//displays iframe source file
function display_content(file,frHeight){
	var lhHeight = parseInt(frHeight,10);
	var theDoc = (document.getElementById('xml_content'))?document.getElementById('xml_content'):parent.document.getElementById('xml_content');
	var docLink = (document.getElementById('lhsNav'))?document.getElementById('lhsNav'):parent.document.getElementById('lhsNav');
		theDoc.src = file;
		theDoc.style.height = frHeight + "px";
		if (lhHeight > 700){docLink.style.height = (700 + (lhHeight - 700)) + "px";}
		else{docLink.style.height = "700px";}
}
//rollover links for lhs menu proj 1
function swap_cls(cls,id){
	if (document.getElementById){document.getElementById(id).className = cls;}
}
//opens window based on image clicked for sign info
function open_dxns(signType,sign){
	var signWin = window.open("signDescriptions.html?type="+signType+"&image="+sign,"sign","height=600px,width=600px,scrollbars=no,toolbars=no,navigator=no");
}
function displaySection(winURL){
	var parseURL = winURL.split("?");
	if (parseURL.length > 1){
		var parseQRY = parseURL[1].split("&");
		if (parseQRY.length > 0){
			if (document.getElementById(parseQRY[0].substring(5,parseQRY[0].length))){
				document.getElementById(parseQRY[0].substring(5,parseQRY[0].length)).style.display = "block";
			}
			if (parseQRY[0].substring(5,parseQRY[0].length) == "spectralite"){
				var srcFile = parseQRY[1].substring(6,parseQRY[1].length);
				document.getElementById("specImg").src = "graphics/signs/"+srcFile+".gif";
			}
		}
	}
	
}
