// 全体ロールオーバー
function smartRollover(){
	if(document.getElementsByTagName){
		var images = document.getElementsByTagName("img");
		var inputs = document.getElementsByTagName("input");
		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."));
					if(document.getElementById("menu_setumei") && this.id.match(/menu\d/)){
						document.getElementById("menu_setumei").innerHTML = setutxt(this.id);
					}
				}
				images[i].onmouseout = function(){
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
					if(document.getElementById("menu_setumei") && this.id.match(/menu\d/)){
						document.getElementById("menu_setumei").innerHTML = "";
					}
				}
			}
		}
		for(var j=0; j < inputs.length; j++){
			if(inputs[j].getAttribute("src") && inputs[j].getAttribute("src").match("_off.")){
				inputs[j].onmouseover = function(){
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				inputs[j].onmouseout = function(){
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}