/*=======================FROM PP SITE=======================*/
var inactive = Array();
var active = Array();


function topnav()
{
	var nav_bar = document.getElementById("topnav");
	
	if(nav_bar == null) return;
	
	var links = nav_bar.getElementsByTagName("a");
	var page = String(document.location).split("/").pop();

	for(var i = 0; i < links.length; i++)
	{
		if(String(links[i].getAttribute("href")).split("/").pop() == page)
		{
			var element = links[i];
			var value = element.parentNode.getAttribute("class");
			
			if(value == null) value = "";
		
			if(value != "") value += " ";

			element.parentNode.setAttribute("class", value + "active");
			element.style.backgroundImage = "url(../images/button_active_l.jpg)";
			element.style.color = "#036";

			break;
		}
	}
}

/*function topNav()
{
	var nav_bar = document.getElementById("top_nav");

	if(nav_bar == null) return;

	var links = nav_bar.getElementsByTagName("a");
	var dirs = String(document.location).split("/");
	var page = dirs.pop();
	var current = dirs.pop();

	
	for(var i = 0; i < links.length; i++)
	{
		var tmp = String(links[i].href).split("/");
		var tmppage = tmp.pop();
		var tmpdir = tmp.pop();
	
		
		if((String(page).search("pphsinc.org") > -1 && tmppage == page) || (tmpdir == current))
		{
			var element = links[i];
			var value = element.parentNode.getAttribute("class");
			
			if(value == null) value = "";
			if(value != "") value += " ";

			element.setAttribute("class", value + "active");
			element.style.backgroundColor = "#000000";
			
			break;
		}
	}
}
*/
function loaded()
{
	leftNav();
	topnav();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
