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="/swf/topFlash.swf" width="730" height="300" type="application/x-shockwave-flash" id="flash"><param name="movie" value="/swf/topFlash.swf" /></object>');
	//
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
	document.write('<img src="/common/img/top_noflash.jpg" alt="" width="730" height="300" usemap="#Map" id="flash"/>');
}



