// JavaScript Document  :  Show multiple pages under navigation
var oldLayer="";
function showLayer(whichLayer)
	{
	if (document.getElementById)
		{
		// this is the way the standards work
		if ((oldLayer.length > 0))
			{document.getElementById(oldLayer).style.display = "";
			document.getElementById(oldLayer + 'Link').className = "";
			}
		var style = document.getElementById(whichLayer).style;
		style.display = style.display? "":"block";
		document.getElementById(whichLayer+'Link').className = "active";
		}
	else if (document.all)
		{
		// this is the way old msie versions work
		if ((oldLayer.length > 0))
			{document.all[oldLayer].style.display = "";}
		var style = document.all[whichLayer].style;
		style.display = style.display? "":"block";
		}
	else if (document.layers)
		{
		// this is the way nn4 works
		if ((oldLayer.length > 0))
			{document.layers[whichLayer].style.display = "";}
		var style = document.layers[whichLayer].style;
		style.display = style.display? "":"block";
		}
	oldLayer = whichLayer;
	}
	
function checkOriginalPage(whichLayer)
	{
		if (location.pathname.indexOf("default") > 0)
		{
			//You are on the right page, so show the desired information
			showLayer(whichLayer);
		}
		else
		{
			//You need to be redirected to the page that will display the info for you
			location.href = "/campusmap/default.asp?d=" + whichLayer;
		}
		
	}
	//Towards the bottom of the page there is an inline Javascript call that controls what div is initially shown. 
