function initRollover(){
	var input = document.getElementsByTagName("input");
	for(var i = 0; i < input.length; i++){
		var className = input[i].getAttribute("class") || input[i].getAttribute("className");
		if(className == "rollover"){
			function mouseOn(){
				var src = this.getAttribute("src");
				var name = src.substring(0, src.lastIndexOf("."));
				var type = src.substr(src.lastIndexOf("."));
				this.setAttribute("src", name + "_on" + type);
			}
			function mouseOut(){
				var src = this.getAttribute("src");
				var name = src.substring(0, src.lastIndexOf("_"));
				var type = src.substr(src.lastIndexOf("."));
				this.setAttribute("src", name + type);
			}
			input[i].onmouseover = mouseOn;
			input[i].onmouseout = mouseOut;
		}
	}
}
