//This is the file that shows and hides navigation items based on a user's preferences.
//This file also makes all of the javascript unobtrusive in case a user has javascript turned off.
//By default, all elements of the navigation are shown, and the customize button is hidden. 
//As a result, if a user has javascript disabled, they will have no problems accessing content.
//If the user does have javascript enabled, then the first portion of showNav() hides submenus, 
//and shows the customize nav button.

function showNav()
{
//this first part works just like hider.js, however it searches out ALL children.
	for (i in linkStatus)
	{
		if (document.getElementById('Link'+[i]+'Second') != null) //checks to see if the Link has a child
		{
			document.getElementById('Link'+[i]+'Second').style.overflow = 'hidden'; //Hides overflow from the child - this is important for slider()
			document.getElementById('Link'+[i]+'Second').style.display = 'none'; //Hides the Child 
		}
	}
	
	document.getElementById('Customize').style.display = 'block';//Shows the customize button

//This portion hides all items that have been deselected by the user in navPrefs
	for (i=0;i<linkStatus.length;i++)
	{
		if (linkStatus[i] == 'false')
		{
			document.getElementById('Link'+i).style.display = 'none';
		}
	}

}


