// Main scripts for Villanova Wildcats website.
// Copyright 2007 Flashpoint Productions.

var origOnload = window.onload; //Get any other window.onloads

window.onload = function()
{
	if (origOnload != null) //If there was another window.onload, call it, then run our script.
	{
		origOnload();
	}
	var node;
	var currPageName = window.location.pathname;
	currPageName = currPageName.substring(currPageName.lastIndexOf('/') + 1);
	currPageName = currPageName.toLowerCase();
	switch(currPageName)
	{
		case "":
		case "index.html":
		case "default.html":
		case "index.htm":
		case "default.htm":
			node = document.getElementById("navWelcome");
			break;
		case "aboutus.html":
			node = document.getElementById("navAboutUs");
			break;
		case "meettheteam.html":
			node = document.getElementById("navMeetTheTeam");
			break;
		case "events.html":
			node = document.getElementById("navEvents");
			break;
		case "faqs.html":
			node = document.getElementById("navFAQs");
			break;
		case "contactus.html":
			node = document.getElementById("navContactUs");
			break;
	}
	node.className = "navItemCurrentPage";
}
function navMouseOver(node)
{
	if(node.className != "navItemCurrentPage")
	{
		node.className = "navItemOver";
	}
}
function navMouseOut(node)
{
	if(node.className != "navItemCurrentPage")
	{
		node.className = "navItem";
	}
}