//The javascript for the div layers was found at:
//http://www.alistapart.com/articles/eatcake/

<!--
////var ignoreOnLoad
// Hide Divs
function hideDivs(exempt, divType)
{
	if (!document.getElementsByTagName) {
		return null;
	}
		
	if (!exempt) exempt = "";

	// store the div tags on the page
	var divs = document.getElementsByTagName("div");
		
	for(var i=0; i < divs.length; i++)
	{
		// store the id of the div
		var div = divs[i];
	  	var id = div.id;
		  	
	  	if (divType == "awardmenu") 
	  	{
			// if a news archive year was selected then hide the other archive years
			if (id.match("awardmenu") && (id != exempt))
			{
				div.style.display = "none";
			}
		}
		else 
		{
			// nothing selected so hide all seasonal pdf links
			if (id.match("awardmenu") && (id != exempt))
			{
				div.style.display = "none";
			}
	  	}
	}
}

// Turn # links into javascript show() links
function fixLinks()
{
	if (!document.getElementsByTagName) {
	  return null;
	}
	var anchors = document.getElementsByTagName("a");
	
	for(var i=0; i < anchors.length; i++)
	{
		var a = anchors[i];
		var href = a.href;
		// exclude #top and #term links
		
		//if (i < 20) {
		  //alert("href: " + href + "\n#: " + href.indexOf("#") + "\nterm: " + href.indexOf("term") + "\npoint: " + href.indexOf("point") + "\ntop: " + href.indexOf("top"));
		//}
		if ((href.indexOf("#") != -1) && ((href.indexOf("point") == -1) && (href.indexOf("top") == -1)))
		//if (href.indexOf("#") != -1)
		{
			//alert("about to apply show");
			var index = href.indexOf("#") + 1;
			href = "javascript:show('" + href.substring(index) + "');";
			//alert("index: " + index + "\nhref: " + href);
			a.setAttribute("href",href);
		}
	}
	
}

// show the div that is stored in 'what'
function show(what)
{
	if (!document.getElementById) {
		return null;
	}
	showWhat = document.getElementById(what);
	
	var divType;
	
	// set the divType so we only hide the other divs of this type and 
	// not all the divs on the page
	if (what.match("awardmenu"))
	{
		divType = "awardmenu";
	}
	if( showWhat ) {
		showWhat.style.display = "block";
		hideDivs(what, divType);
	}
}

//function onload() {
	// When page is loaded call the javascript functions 
	//window.onload = function()
	//{
	//	hideDivs();
	//	fixLinks();
	//}
//}
//-->
