
/** This function sends the user to the specified URL. It makes containers, such as <td> tags clickable for JavaScript enabled browsers.
 *  @param url - A String representing a URL.
 */
function navTo (url) {
	document.location = url;
}



// The navSwap and navSwapBack functions are needed to support the rollover effects
// in the main navigation in pre-IE7 Micro$oft browsers. Other browsers supported a 
// pure CSS implementation.
// 
// If colors for the main navigation are updated in the CSS, they must also be upated here.
// Sorry.  :(

/** Swaps the colors in the main navigation.
 *  @param navItemObj - A node object for a td tag containing a text link.
 */
function navSwap (navItemObj) {
	navItemObj.style.background = "#e0e0e0";
	navItemObj.style.color = "#666699";
	var aNodes = navItemObj.getElementsByTagName("a");
	for (var i = 0; i < aNodes.length; i++) {
		aNodes[i].style.color = "#666699";
	}
}

/** Swaps the colors in the main navigation back to their default.
 *  @param navItemObj - A node object for a td tag containing a text link.
 */		
function navSwapBack (navItemObj){
	navItemObj.style.background = "none";
	navItemObj.style.color = "#ffffff";
	var aNodes = navItemObj.getElementsByTagName("a");
	for (var i = 0; i < aNodes.length; i++) {
		aNodes[i].style.color = "#ffffff";
	}
}


