function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off.")){
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}




function HighLight(){
	

	lnimg = target + "img"
	
	if(target == "") {
		return;
	} else {
		document.getElementById(lnimg).setAttribute("src", document.getElementById(lnimg).getAttribute("src").replace("_off.", "_on."));
		document.getElementById(lnimg).onmouseout = function() {
			document.getElementById(lnimg).setAttribute("src", document.getElementById(lnimg).getAttribute("src").replace("_off.", "_on."));
		}

	}
}



if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
	window.addEventListener("load", HighLight, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
	window.attachEvent("onload", HighLight);
}