/*
	ManzipinoCPA scripts
*/

/*
	Arguments:	None
	Returns:	Nothing
	Searches the name of the page for the page in use and turns on sub-nav as needed
*/
function turnOnSubNav()
{
	// Array containing the name of the page we are on
	var alLocation = new Array();
	// The sub navigation element to be turned on
	var cSubNav = null;
	
	// Locate the page name
	alLocation = location.pathname.toString().match(/([a-z0-9]+)(\w+)?\.html/);

	// If there is a hit on the match then find any element that matches the page name and turn it's display to block
	if(alLocation != null)
	{
		cSubNav = document.getElementById(alLocation[1]);
		if(cSubNav != null)
		{
			cSubNav.style.display = "block";
		}
			
	}
}

