/*
	Portal Highlight System
	This function should be included in the window.onload functions list.

	Function: find hyperlinks with name 'portalLink' and add the 'selected' class to the ones
		with the same name as the current portal, i.e. the top-level folder of the page.

		http://sec.tamu.edu/portalName/subfolder/page.asp
		                    ^^ ^^ ^^

	Portal Links should be of the form: <a href="/portalName/" name="portalLink" title="Desc.">Link Text</a>

	Written by Clark Moody 31-Jul-2006
	http://clarkmoody.com/
*/

function selectPortal( id ) {
	var items;
	var portal;
	portal = location.pathname.substr(0,location.pathname.indexOf('/',1)+1);
	for (i=0; i<document.anchors.length; i++) {
		if (document.all) {
			if(document.anchors[i].name=="portalLink" && "/" + document.anchors[i].pathname==portal) {
				document.anchors[i].className="selected";
			}
		} else {
			if(document.anchors[i].name=="portalLink" && document.anchors[i].pathname==portal) {
				document.anchors[i].className="selected";
			}
		}
	}
}