//ロールオーバーファンクション
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_up."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_up.", "_over."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_over.", "_up."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

//画像の差し替えファンクション
function gazou(mySrc){
    document.myimg.src=mySrc;
}

//フラッシュ出力用
var movieName;//フラッシュ本体
var movieWidth;//幅
var movieHeight;//高さ
var movieBgcolor;//背景色
var movieID;//ID
function WriteFlash(movieName,movieWidth,movieHeight,movieBgcolor,movieID,movieNum){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+movieWidth+'" height="'+movieHeight+'" id="'+movieID+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="'+movieName+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="'+movieBgcolor+'" />');
	document.write('<param name="FlashVars" value="sceneNum='+movieNum+'">');
	document.write('<embed src="'+movieName+'" FlashVars="sceneNum='+movieNum+'" quality="high" bgcolor="'+movieBgcolor+'" width="'+movieWidth+'" height="'+movieHeight+'" name="'+movieID+'" align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

//ポップアップ
function t2_win(WindowName) {
	window.open(WindowName, 'mywindow', 'width=790, height=800, menubar=no, toolbar=no, scrollbars=yes');
}