// JavaScript Document


/**
*	Searches through all links on page, looking for those that link to the current page.
*	The links are changed to links to "#", and the CSS style is set to the given newsStyle.
*	@param newStyle - name of the CSS class to apply to links that point to current page.
*/
function changeSelfLinks(newClass, oldClass) {
	var aLink;
	var docURL = document.URL;
	if (docURL.charAt(docURL.length - 1) == '/') {
		docURL = docURL + "index.htm";
	}
	var pndLoc = docURL.indexOf('#');
	if (pndLoc > - 1) {
		docURL = docURL.substr(0, pndLoc);
	}
	for (i = 0; i < document.links.length; i ++) {
		aLink = document.links[i];
		if (aLink.href == docURL) {
			aLink.href = "#";
			if (aLink.className == oldClass) {
				aLink.className = newClass;
			}
		}
	}
}
