/* Filename:		main.js
 *
 * Description:		Functions used to highlight the active url on the 
 *					navigation bar
*/
var TagArray = new Array("", 
	"home", "staff", "committees", "cguard", 
	"steam", "calendar", "gallery", "qmaster",
	"links"
);


/* clearActiveTags()
 *
 * Description:	Set className on all elements back to blank
*/
function clearActiveTags() {
	for(a=1; a < TagArray.length; a++ )
		document.getElementById(TagArray[a]).className = "";
}
		

/* setActive()
 *
 * Description:	Changes className on id to navSelected and resets the others
 *				This results in highlighting the active url on the navigation bar
*/
function setActive(id) {
	for(a=1; a < TagArray.length; a++) {
		if (id == TagArray[a])
			document.getElementById(TagArray[a]).className = "navSelected";
		else
			document.getElementById(TagArray[a]).className = "";
	}
}

