// JavaScript Document// JavaScript Document// Last modified: 08-19-03
function isNN() {
	if (document.all)
		return false;
	else
		return true;
}

/**
* Change color of navigation cell onmouseover
* Change cursor to a hand (only in IE)
* @param Object c cell that we are modifying
*/
function navOver(c) {
	c.style.backgroundColor = "#F0F8FF";
	c.style.cursor = "hand";
}

/**
* Change color of navigation cell back to whatever
* background color is defined in the stylesheet
* for element .navColumn onmouseout
* @param Object c cell that we are modifying
*/
function navOut(c) {
	var i;
	var r = new Array();

	if (isNN()) {
		r = document.styleSheets[0].cssRules;
	}
	else {
		r = document.styleSheets[0].rules;
	}

	// Loop until we find the .navColumn
	for (i = 0; (i<r.length) && (r[i].selectorText != ".navRow"); i++);
	
	c.style.backgroundColor = r[i].style.backgroundColor;
}


/**
* Act as a link to a page
* Match anything between the link quotation marks
* @param Object c cell that we are in
*/
function navTo(c) {
	// If there is no link defined, do not navigate
	if (c == "" || c=="#")
	return;
	
	var pattern = /\"[\w\.\d-#\?=]+\"/;
	var url = (c.innerHTML.match(pattern))[0].replace(/\"/g, "");
	
	// Make sure something matched
	if (url!=null)
	document.location = url;
	return; 
} 
