// JavaScript Document  :  Show multiple terms for Calendar and Finals Schedule

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;
	}
	//Towards the bottom of the page there is an inline Javascript call that controls what div is initially shown. Change this each semester to make the current semester schedule display.

