var swfVersion="8";
var swfDirectory="./"

var VBflash="ShockwaveFlash.ShockwaveFlash."+swfVersion;
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+/)) >= swfVersion;
}else{
	document.write('<script language=VBScript>\n');
	document.write('on error resume next\n');
	document.write('plugin=(IsObject(CreateObject(VBflash)))\n');
	document.write('</script\>');
}

function showSwf(){
	if (plugin){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+swfWidth+'" height="'+swfHeight+'">');
		document.write('<param name="movie" value="'+ swf +'" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="base" value="'+swfDirectory+'" /><param name="FlashVars" value="flvpath='+vars+'" />');
		document.write('<embed src="'+ swf +'" base="'+swfDirectory+'" loop="true" quality="high" swLiveConnect="false" width="'+swfWidth+'" height="'+swfHeight+'" FlashVars="flvpath='+vars+'" type="application/x-shockwave-flash"></embed>');
		document.write('</object>');
	}else{
		document.write('<p>このページをご覧いただくには、<br><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=Japanese" target="_blank">Adobe&reg; Flash&reg; Player '+swfVersion+'.0以上が必要です。</a></p>');
	}
}

