/*-- used to swap pages for language --*/
{
	if (location.href.match("_es.htm"))
	{
		/*-- for use in switching if we use an es/ directory
		var place = '..' + location.href.substring(location.href.lastIndexOf('/')); --*/
		/*-- for use in switching if we use _es.htm files in the root --
		var place = document.URL.replace('_es.htm','.htm');*/
		var place = location.pathname.replace('_es.htm','.htm');  
		var langswitch = '<a href=\"' + place + '\">English</a>';
	}
	else if (location.href.match(".htm"))
	{
		/*-- for use in switching if we use an es/ directory
		var place = 'es' + location.href.substring(location.href.lastIndexOf('/')); --*/
		/*-- for use in switching if we use _es.htm files in the root --*/
		var place = location.pathname.replace('.htm','_es.htm');    
		var langswitch = '<a href=\"' + place + '\">Espaņol</a>';
	}
	else if (location.href.match("_es.php"))
	{
		var place = location.pathname.replace('_es.php','.php');  
		var langswitch = '<a href=\"' + place + '\">English</a>';
	}
	else if (location.href.match(".php"))
	{
		var place = location.pathname.replace('.php','_es.php');   
		var langswitch = '<a href=\"' + place + '\">Espaņol</a>';
	}
	else if (location.href.match(""))
	{
		var langswitch = '<a href=\"index_es.htm\">Espaņol</a>';
	}
	
}

  
/*--langswitch = "&nbsp;"---*/

/*-- used to make the dropdown menu funtional in IE ----*/
navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


/*-- used to make the description dropdowns functional ----*/
function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
		// for standards compliance browsers
		var styleOnOff = document.getElementById(whichLayer).style;
		styleOnOff.display = styleOnOff.display? "":"block";
	}
	else if (document.all)
	{
		// for older IE
		var styleOnOff = document.all[whichLayer].style;
		styleOnOff.display = styleOnOff.display? "":"block";
	}
}

/*-- used to make the level dropdowns functional ----*/
function toggleLevel(whichLayer)
{
	if (document.getElementById)
	{
		// for standards compliance browsers
		var styleOnOff = document.getElementById(whichLayer).style;
		styleOnOff.visibility = styleOnOff.visibility? "":"visible";
	}
	else if (document.all)
	{
		// for older IE
		var styleOnOff = document.all[whichLayer].style;
		styleOnOff.visibility = styleOnOff.visibility? "":"visible";
	}
}