// Function to highlight a link if it's URL matches
// the current page's URL. Works in newer browsers.
// don't know about Mac browser support
// Call should be placed in each pages onLoad event:
//    <body onLoad="hlight2();">
function hlight2() {
	// get a DOM node list of all the elements
	// with the name attribute (<a name="somename" ... >) of mainnav
	var subNavNodes = document.getElementsByName("subnav");

	// Iterate through the elements and if any of the elements
	// HREF attributes match the current loaded documents
	// location.href then change the stylesheet class name
	for(var i = 0; i < subNavNodes.length; i++) {
		// make a shortcut to the current loops
		// node at 'i'
		var navNode = subNavNodes[i];

		// check to see if the this page's URL matches
		// the current node at 'i'
		// if it does switch it the style class "hilite2"
		if(document.location.href == navNode.href) {
			navNode.className = "hilite2";
		}
	}
}