var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var cnt = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < cnt.length; ++i)
	    {
		if (isNaN(parseInt(cnt[i])))
		continue;
		var MM_Plugin = cnt[i]; 
	    }
	var MM_FlashPlay = MM_Plugin >= MM_CVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'
	+'on error resume next \n'
	+'MM_FlashPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_CVersion)))\n'
	+'</SCR' + 'IPT\> \n'
	);
}


//NoFlashケータイ
if ((navigator.userAgent.indexOf("FOMA")!=-1) || (navigator.userAgent.indexOf("SoftBank")!=-1) || (navigator.userAgent.indexOf("KDDI")!=-1)) {
	document.write('<img src="img/grand.jpg" alt="" width="750" height="260" border="0">');
}

//プラグイン有り
else if (MM_FlashPlay) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="750" height="277">'
	+'<param name="movie" value="custamo.swf">'
	+'<param name="quality" value="high">'
	+'<param name="wmode" value="opaque">'
	+'<embed src="custamo.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="277"></object>');
}

//プラグイン無し
else {
	document.write('<img src="../img/noflash.jpg" alt="" width="750" height="260" border="0" usemap="#Map">');
}
