/* menulink */
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			//if (images[i].hasAttribute("src")) {
				if(images[i].getAttribute("src") != null && 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 menuLoad(){
	if(my == 0){document.getElementById('menu01').src='img_common/menu01_on.gif';}
	else if(my == 1){document.getElementById('menu02').src='img_common/menu02_on.gif';}
	else if(my == 2){document.getElementById('menu03').src='img_common/menu03_on.gif';}
	else if(my == 3){document.getElementById('menu04').src='img_common/menu04_on.gif';}
	else if(my == 4){document.getElementById('menu05').src='img_common/menu05_on.gif';}
	else{document.getElementById('menu01').src='img_common/menu01_on.gif';}
}
function menuRollOver(x){
	if(x == 0){document.getElementById('menu01').src='img_common/menu01_on.gif';}
	else if(x == 1){document.getElementById('menu02').src='img_common/menu02_on.gif';}
	else if(x == 2){document.getElementById('menu03').src='img_common/menu03_on.gif';}
	else if(x == 3){document.getElementById('menu04').src='img_common/menu04_on.gif';}
	else if(x == 4){document.getElementById('menu05').src='img_common/menu05_on.gif';}
}
function menuRollOut(){
	if(my == 0){document.getElementById('menu02').src='img_common/menu02_off.gif';document.getElementById('menu03').src='img_common/menu03_off.gif';document.getElementById('menu04').src='img_common/menu04_off.gif';document.getElementById('menu05').src='img_common/menu05_off.gif';}
	else if(my == 1){document.getElementById('menu01').src='img_common/menu01_off.gif';document.getElementById('menu03').src='img_common/menu03_off.gif';document.getElementById('menu04').src='img_common/menu04_off.gif';document.getElementById('menu05').src='img_common/menu05_off.gif';}
	else if(my == 2){document.getElementById('menu01').src='img_common/menu01_off.gif';document.getElementById('menu02').src='img_common/menu02_off.gif';document.getElementById('menu04').src='img_common/menu04_off.gif';document.getElementById('menu05').src='img_common/menu05_off.gif';}
	else if(my == 3){document.getElementById('menu01').src='img_common/menu01_off.gif';document.getElementById('menu02').src='img_common/menu02_off.gif';document.getElementById('menu03').src='img_common/menu03_off.gif';document.getElementById('menu05').src='img_common/menu05_off.gif';}
	else if(my == 4){document.getElementById('menu01').src='img_common/menu01_off.gif';document.getElementById('menu02').src='img_common/menu02_off.gif';document.getElementById('menu03').src='img_common/menu03_off.gif';document.getElementById('menu04').src='img_common/menu04_off.gif';}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

/* ロールオーバー用 */
<!--

function Setimg(obj,ImgName){
	obj.src = ImgName;
}

// -->
