/* HitArts menu_func.js produced by HitArts 2011-06-27 */

function OnMenu(i) {
	/* メニューボタンの文字色変更 */
	color = "#ffff00";
	IdMenuText = "menutext" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenuText)) {
			document.getElementById(IdMenuText).style.color = color;
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenuText)) {
				document.all(IdMenuText).style.color = color;
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenuText]) {
					document.layers[IdMenuText].color = color;
				}
			}
	/* メニューボタンの画像切替 */
	/*
	image = "./img/menu_button_150x30_new.png";
	IdMenu = "menu" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenu)) {
			document.getElementById(IdMenu).style.backgroundImage = 'url(' + image + ')';
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenu)) {
				document.all(IdMenu).style.backgroundImage = 'url(' + image + ')';
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenu]) {
					document.layers[IdMenu].background.src = image;
				}
			}
	*/
	position = "0px -30px";
	IdMenu = "menu" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenu)) {
			document.getElementById(IdMenu).style.backgroundPosition = position;
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenu)) {
				document.all(IdMenu).style.backgroundPosition = position;
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenu]) {
					document.layers[IdMenu].background.moveBy(0, 0);
				}
			}
}

function OffMenu(i) {
	/* メニューボタンの文字色変更 */
	color = "#ffffff";
	IdMenuText = "menutext" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenuText)) {
			document.getElementById(IdMenuText).style.color = color;
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenuText)) {
				document.all(IdMenuText).style.color = color;
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenuText]) {
					document.layers[IdMenuText].color = color;
				}
			}
	/* メニューボタンの画像切替 */
	/*
	image = "./img/menu_button_150x30_new.png";
	IdMenu = "menu" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenu)) {
			document.getElementById(IdMenu).style.backgroundImage = 'url(' + image + ')';
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenu)) {
				document.all(IdMenu).style.backgroundImage = 'url(' + image + ')';
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenu]) {
					document.layers[IdMenu].background.src = image;
				}
			}
	*/
	position = "0px 0px";
	IdMenu = "menu" + i;
	if (document.getElementById) {			// e5,e6,n6,n7,m1,o6,o7,s1用
		if (document.getElementById(IdMenu)) {
			document.getElementById(IdMenu).style.backgroundPosition = position;
		}
	}	else if (document.all) {		// e4用
			if (document.all(IdMenu)) {
				document.all(IdMenu).style.backgroundPosition = position;
			}
		}	else if (document.layers) {	// n4用
				if (document.layers[IdMenu]) {
					document.layers[IdMenu].background.moveBy(0, 0);
				}
			}
}

