/* Slide Show */
var img_logo = "Gif/hitarts_logo_board.gif,Gif/hitarts_logo_board_r.gif,Gif/hitarts_logo_board_y.gif,Gif/hitarts_logo_board_g.gif,Gif/hitarts_logo_board_b.gif,Gif/hitarts_logo_board.gif";
var imgs_logo = img_logo.split(",");
var i_logo=0;
var pic_logo = new Array();
for(cnt_logo=0; cnt_logo<imgs_logo.length; cnt_logo++) {
	pic_logo[cnt_logo] = new Image();
	pic_logo[cnt_logo].src = imgs_logo[cnt_logo];
}
function sulaidoImg_logo() {
	i_logo++; i_logo%=imgs_logo.length;
	imgFil_logo.filters.blendTrans.Apply();
	imgFil_logo.src = pic_logo[i_logo].src;
	imgFil_logo.filters.blendTrans.Play();
}

/* メニューリンク先へのジャンプスクリプト（現在は使用不可） */
function JumpToLink(URL) {
	location.href = URL;
}

/* メニュータグのマウスオーバー処理 */

function OnMenuMain(LayMain,LaySub) {
	image_url = "Gif/tag_deepskyblue.gif";
	if (document.getElementById) {
		document.getElementById(LayMain).style.backgroundImage = 'url('+ image_url +')';
		//document.getElementById(LayMain).style.backgroundRepeat = 'no-repeat';
		document.getElementById(LaySub).style.visibility = 'visible';
	}	else if (document.all) {
			document.all(LayMain).style.backgroundImage = 'url('+ image_url +')';
			//document.all(LayMain).style.backgroundRepeat = 'no-repeat';
			document.all(LaySub).style.visibility = 'visible';
		}	else if (document.layers) {
				document.layers[LayMain].background.src = image_url;
				//document.layers[LayMain].background.repeat = 'no-repeat';
				document.layers[LaySub].visibility = 'show';
			}
}

function OffMenuMain(LayMain,LaySub) {
	image_url = "Gif/tag_royalblue.gif";
	if (document.getElementById) {
		document.getElementById(LayMain).style.backgroundImage = 'url('+ image_url +')';
		document.getElementById(LaySub).style.visibility = 'hidden';
	}	else if (document.all) {
			document.all(LayMain).style.backgroundImage = 'url('+ image_url +')';
			document.all(LaySub).style.visibility = 'hidden';
		}	else if (document.layers) {
				document.layers[LayMain].background.src = image_url;
				document.layers[LaySub].visibility = 'hide';
			}
}

function OnNowMenuMain(LayMain,LaySub) {
	image_url = "Gif/tag_aka.gif";
	//image_url = "Gif/tag_salmon.gif";
	if (document.getElementById) {
		document.getElementById(LayMain).style.backgroundImage = 'url('+ image_url +')';
		document.getElementById(LaySub).style.visibility = 'visible';
	}	else if (document.all) {
			document.all(LayMain).style.backgroundImage = 'url('+ image_url +')';
			document.all(LaySub).style.visibility = 'visible';
		}	else if (document.layers) {
				document.layers[LayMain].background.src = image_url;
				document.layers[LaySub].visibility = 'show';
			}
}

function OffNowMenuMain(LayMain,LaySub) {
	image_url = "Gif/tag_tomato.gif";
	if (document.getElementById) {
		document.getElementById(LayMain).style.backgroundImage = 'url('+ image_url +')';
		document.getElementById(LaySub).style.visibility = 'hidden';
	}	else if (document.all) {
			document.all(LayMain).style.backgroundImage = 'url('+ image_url +')';
			document.all(LaySub).style.visibility = 'hidden';
		}	else if (document.layers) {
				document.layers[LayMain].background.src = image_url;
				document.layers[LaySub].visibility = 'hide';
			}
}

function OnBGCOLOR(layName) {
	color = "#00BFFF";		// DeepSkyBlue
	if (document.getElementById) {
		document.getElementById(layName).style.backgroundColor = color;
	}	else if (document.all) {
			document.all(layName).style.backgroundColor = color;
		}	else if (document.layers) {
				if (color == 'transparent') color = null;
				document.layers[layName].bgColor = color;
			}
}

function OffBGCOLOR(layName) {
	color = "#4169E1";		// RoyalBlue
	if (document.getElementById) {
		document.getElementById(layName).style.backgroundColor = color;
	}	else if (document.all) {
			document.all(layName).style.backgroundColor = color;
		}	else if (document.layers) {
				if (color == 'transparent') color = null;
				document.layers[layName].bgColor = color;
			}
}

function OnNowBGCOLOR(layName) {
	color = "#FF0000";		// Red
	if (document.getElementById) {
		document.getElementById(layName).style.backgroundColor = color;
	}	else if (document.all) {
			document.all(layName).style.backgroundColor = color;
		}	else if (document.layers) {
				if (color == 'transparent') color = null;
				document.layers[layName].bgColor = color;
			}
}

function OffNowBGCOLOR(layName) {
	color = "#FF6347";		// Tomato
	if (document.getElementById) {
		document.getElementById(layName).style.backgroundColor = color;
	}	else if (document.all) {
			document.all(layName).style.backgroundColor = color;
		}	else if (document.layers) {
				if (color == 'transparent') color = null;
				document.layers[layName].bgColor = color;
			}
}

function BGCOLOR(layName,color) {
	if (document.getElementById) {
		document.getElementById(layName).style.backgroundColor = color;
	}	else if (document.all) {
			document.all(layName).style.backgroundColor = color;
		}	else if (document.layers) {
				if (color == 'transparent') color = null;
				document.layers[layName].bgColor = color;
			}
}

function OnSubMenu(layName) {
	if (document.getElementById) {
		document.getElementById(layName).style.visibility = 'visible';
	}	else if (document.all) {
			document.all(layName).style.visibility = 'visible';
		}	else if (document.layers) {
				document.layers[layName].visibility = 'show';
			}
}

function OffSubMenu(layName) {
	if (document.getElementById) {
		document.getElementById(layName).style.visibility = 'hidden';
	}	else if (document.all) {
			document.all(layName).style.visibility = 'hidden';
		}	else if (document.layers) {
				document.layers[layName].visibility = 'hide';
			}
}

function OnNowSubMenu(layName) {
	if (document.getElementById) {
		document.getElementById(layName).style.visibility = 'visible';
	}	else if (document.all) {
			document.all(layName).style.visibility = 'visible';
		}	else if (document.layers) {
				document.layers[layName].visibility = 'show';
			}
}

function OffNowSubMenu(layName) {
	if (document.getElementById) {
		document.getElementById(layName).style.visibility = 'hidden';
	}	else if (document.all) {
			document.all(layName).style.visibility = 'hidden';
		}	else if (document.layers) {
				document.layers[layName].visibility = 'hide';
			}
}

