var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;


if ( plugin ) {
	plugin = parseInt(plugin.description.match(/\d+\.\d+/)) >= CFLfpver;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
	document.write('</SCRIPT\> \n');
}

function set_flash(){
	if ( plugin ) {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="770" height="205" id="index">');
		document.write('<param name="allowScriptAccess" value="sameDomain">');
		document.write('<param name="movie" value="img/index.swf">');
		document.write('<param name="loop" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="bgcolor" value="#FFFFFF">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<embed src="img/index.swf" loop="true" menu="false" quality="high" bgcolor="#FFFFFF" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="205" name="index" wmode="transparent">');
		document.write('</embed>');
		document.write('</object>');
	}else{
		document.write('Flash Playerをインストールしてください');
	}
}