//sets site path links to hover state
function lightUp(){
	var pathSplit;
	var testPath;
	var testRe;
	for (var i=0;i<allARef.length;i++) {
		testThisPage = allARef[i].href;
		if (!allARef[i].id || allARef[i].id == ''){
			allARef[i].id = 'link_' + i;
		}
		if ((allARef[i].className == "sectionSubNavlink") || (allARef[i].className == "sectionNavlink")){
			allSectionNavARef.push(allARef[i]);
		}
		for (var j=0;j<againstThisPage.length;j++) {
			if (testThisPage.toLowerCase()== againstThisPage[j].toLowerCase()) {
				if (!allARef[i].className.match(/Hover$/)) {
				allARef[i].className=allARef[i].className+'Hover';
				}
				if ((allARef[i].className == "sectionSubNavlinkHover") || (allARef[i].className == "sectionNavlinkHover")){
					thisPage=allARef[i].id;
				}
			}
		}
	}
	//the current page we are on is not in the nav (for e.g. tabbed nav)
	if ((!thisPage) || (thisPage == '')) {
		pathSplit = document.location.href.split('/');
		testPath = pathSplit.pop();
		testPath = pathSplit.join('/');
		testRe = new RegExp("^" + testPath, "i");
		for (var i=0;i<allSectionNavARef.length;i++) {
			if (testRe.test(allSectionNavARef[i].href)) {
				if (!allSectionNavARef[i].className.match(/Hover$/)) {
				allSectionNavARef[i].className=allSectionNavARef[i].className+'Hover';
				}
				thisPage = allSectionNavARef[i].id;
			}
		}
	}
}