/*var startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="li") {
				node.onmouseover=function() {
					this.className+="over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "");
				}
			}
		}
	}
}
window.onload=startList;
*/
// tells a page upon load what layer to display, if any, instead of the 'hideme' layer
processQuery = function() {
	querystring = window.location.search;
	if(querystring != "") {
	var layerid = querystring.substr(6);
		document.getElementById(layerid).style.display = 'block';
		document.getElementById("hideme").style.display = 'none';
	}
}
window.onload=processQuery;

// this builds the search query for bom
bomsearch = function(query) {
	//searchurl = document.domain + "/SearchResults.aspx?SearchFor=" + query;
	//alert(searchurl);
	document.location = "/SearchResults.aspx?SearchFor=" + query;
}