

//This will display the menu for the navigation item
//PARAM "navString" = The parameter is the string name for the menu item (e.g "Home" would be a parameter
//which means that "HomeDiv" is the id of the dropdown menu)
//this happens on mouse over
function navOver(navString){

	/***************** 
	*** WOULD Want to change the name of the image here, although it would be a good idea to
	*** name the naviation images the same accross all applications 
	**********************/
	//get a reference to the image
	var thisImg = document.images[navString + "Img"];
	//change the src 
	thisImg.src = "templateImages/" + navString + "BtnOver.jpg";
		
		
	if (document.all)
	{
		//its IE
		//get reference to Div menu element
		var divElement = document.all[navString + "Div"];
		
		divElement.style.visibility = "visible";
	}else if (document.getElementById){
	
		//get the image reference and Div reference
		var divElement = document.getElementById(navString + "Div");
		
		divElement.style.visibility = "visible";
	}
	else
	{
		alert("You have an old or unknown browser. \n You need a a current version of Internet Explorer or Netscape Navigator to properly view this site");
	}
	
}//end of navOver


//This will hide the menu for the navigation item
//PARAM "navString" = The parameter is the string name for the menu item (e.g "Home" would be a parameter
//which means that "HomeDiv" is the id of the dropdown menu)
//this happens on mouse out
function navOut(navString){
	
	/***************** 
	*** WOULD Want to change the name of the image here, although it would be a good idea to
	*** name the naviation images the same accross all applications 
	**********************/
	//get a reference to the image
	var thisImg = document.images[navString + "Img"];
	//change the src 
	thisImg.src = "templateImages/" + navString + "BtnOff.jpg";
	
		
	if (document.all)
	{
		//its IE

		//get reference to Div menu element
		var divElement = document.all[navString + "Div"];
		
		
		divElement.style.visibility = "hidden";
	}else if (document.getElementById){
		
		//get the image reference and Div reference
		var divElement = document.getElementById(navString + "Div");
		
		divElement.style.visibility = "hidden";
	}
}//end of ChangeMenuImageAndShowMenu


//changes the background color of a table element
function changeBG(elementRef)
{
	if (elementRef && elementRef.style)
	{
	     elementRef.style.background = "#C90505";
	}
}//end of changeBG


//restores the background color of a table element
function restoreBG(elementRef)
{
	if (elementRef && elementRef.style && elementRef.style.background)
	{
	     elementRef.style.background = "#ffffff";
	}
}//end of restoreBG



///Because flash always throws out a cached page, I need to call this function from
//the Flash button so I can retrieve the proper page
function goToLocation(page)
{
	location.href = page;
}