// JavaScript Document
function showSubNav(subnavID)
{
	if (subnavID) // if id was passed
	{
		for(i=0; i < document.subnavCounter; i ++)
		{
			var subnav = document.getElementById("subnav" + i);
			if (i == subnavID)
			{
				subnav.style.display = "block";	//display if is the selected one
			}else{
				subnav.style.display = "none";	//hide others
			}
		}
	}else{
		//hide all
		hideSubNav();
	}
}
function hideSubNav()
{
		//hide all
		for(i=0; i < document.subnavCounter; i ++)
		{
			var subnav = document.getElementById("subnav" + i);
			subnav.style.display = "none";
		}
}
