// JavaScript Document

//===========================================================================//
// START roll over functionality
//
// Takes any object with these functions attached to them and adds rollover
// functionallity to them by adding or removing "Over" from the className. Both
// classes will need to be created within the CSS in order to work properly.
//
// Also takes into account a className with "Selected" appended to the end of 
// of it and prevents rollover functionality for that element.
//---------------------------------------------------------------------------//
function navigationOver(myObject){
	if(myObject.className.indexOf("Selected")==-1){
		myObject.className=myObject.className+"Over";
	}
}
function navigationOut(myObject){
	if(myObject.className.indexOf("Selected")==-1){
		myObject.className=myObject.className.substr(0,myObject.className.indexOf("Over"));
	}
}
//---------------------------------------------------------------------------//
// END roll over functionality
//===========================================================================//

function navigationSelect(myObject){
	var myURL;
	for(var i=0; i<myObject.childNodes.length; i++){
		if(myObject.childNodes[i].nodeName=="A"){
			myURL=myObject.childNodes[i].href;
			window.location.href=myURL;
		}
	}
}								  



