/**
 * @author Russell Shingleton
 * @purpose: Originally this script was intended to be used for navigation only
 * 				but has grown to encompass the majority of the functions for
 * 				the page.
 */

/*
 * The NavigateTo function assigns a class to the appropriate menu item 
 * when clicked. Since there are anchor elements in the body, the function
 * also contains a case block which sets the appropriate menu item class
 * when the body anchors are used to navigate.
 */
  function setMenu(thisLink)
 {      
    var linkArray = document.links;
	var i = 0;

	while(linkArray.length > i)
	    {
	        linkArray[i].className = "";
	        i++;
	    }
	document.getElementById(thisLink).className = 'current';
 }
