function rollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		var inputs = document.getElementsByTagName("input");
		
		var normal = "_normal.";
		var over   = "_over.";
		
		//img—v‘f
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match(normal)) {
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace(normal, over));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace(over, normal));
				}
			}
		}
		
		
		//input—v‘f
		for(var i=0; i < inputs.length; i++) {
			if(inputs[i].getAttribute("src")){
			if(inputs[i].getAttribute("src").match(normal))
			{
				inputs[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace(normal, over));
				}
				inputs[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace(over, normal));
				}
			}}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", rollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", rollover);
}
