//Flashプラグイン判定
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//書き出す中身

//ファイル名
var theMOVIE = "hp/topimage.swf";
//var theIMG = "flash.asp";

var MW = 750;//ムービー幅
var MH = 170;//ムービー高

//Flash用タグ
var theMOVIEs = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
theMOVIEs = theMOVIEs + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
theMOVIEs = theMOVIEs + ' width="' + MW + '" height="' + MH + '">';
theMOVIEs = theMOVIEs + '<param name=movie value="' + theMOVIE + '">';
theMOVIEs = theMOVIEs + '<param name="FlashVars" value="locale=jp&importFonts=1" />';
theMOVIEs = theMOVIEs + '<param name="wmode" value="opaque" />';
theMOVIEs = theMOVIEs + '<param name=quality value=high>';
theMOVIEs = theMOVIEs + '<embed src="' +theMOVIE+ '" quality=high';
theMOVIEs = theMOVIEs + ' pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ';
theMOVIEs = theMOVIEs + 'type="application/x-shockwave-flash" width="' +MW+ '" height="' +MH+ '">';
theMOVIEs = theMOVIEs + '</embed>\n</object>';



//NonFlash(inc)用タグ
//var theIMGs = '<!--#include file="'+theIMG+'"-->';
var theIMGs = '<div align="center"><img src="hp/images/no_flash.gif"></div>';
theIMGs += '<div class="fs_12" style="margin:10px 0px 10px 15px;">Flashムービーをご覧いただくには、Adobe社のFlash Playerが必要になります。<br>';
theIMGs += 'お手数ですが、Adobe社ウェブサイトから最新のFlash Player(Free)をダウンロードし、インストールしてください。</div>';
theIMGs += '<div style="margin-left:15px;"><a href="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"></a></div>';

if ( plugin ){
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i){
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   && (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}else{
MM_FlashCanPlay = "NOPLUGIN";
}
if(MM_FlashCanPlay =="NOPLUGIN"){
document.write(theIMGs);
}else if ( MM_FlashCanPlay ) {
document.write(theMOVIEs);
}else{
//	alert(theIMGs);
document.write(theIMGs);
}