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+/)) >= 6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {

	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('</SCRIPT> \n');
}
if ( plugin ) {
	//プラグインのバージョンが大丈夫な場合
	document.write('<object data="img/top/main.swf" width="1280" height="391" type="application/x-shockwave-flash" id="flash" ><param name="movie" value="img/top/main.swf" / ><param name="wmode" value="transparent"/ ></object>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
	//プラグインのバージョンに問題あり
	document.write('<img src="img/top/top_noflash.jpg" alt="" width="1280" height="391" usemap="#Map" id="Ma"/>');
}
