//Flash が利用可能か？
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
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');
}


//swf表示
function dspSwfObject(swfFilePath, prmBgColor, prmWidth, prmHeight, prmAlign, flgMsg) {
	if (MM_FlashCanPlay) {
		document.writeln("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ");
		document.writeln("codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" ");
		document.writeln("width=\"" + prmWidth + "\" ");
		document.writeln("height=\"" + prmHeight + "\" ");
		document.writeln("align=\"" + prmAlign + "\">");
	
		document.writeln("<param name=\"movie\" value=\"" + swfFilePath + "\" />");
		document.writeln("<param name=\"bgcolor\" value=\"" + prmBgColor + "\" />");
		document.writeln("<param name=\"align\" value=\"" + prmAlign + "\" />");
	
		document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.writeln("<param name=\"quality\" value=\"high\" />");
		document.writeln("<param name=\"loop\" value=\"false\" />");
		document.writeln("<param name=\"menu\" value=\"false\" />");
	
		document.writeln("<embed ");
		document.writeln("src=\"" + swfFilePath + "\" ");
		document.writeln("bgcolor=\"" + prmBgColor + "\" ");
		document.writeln("width=\"" + prmWidth + "\" ");
		document.writeln("height=\"" + prmHeight + "\" ");
		document.writeln("align=\"" + prmAlign + "\" ");
		document.writeln("quality=\"high\" loop=\"false\" menu=\"false\" swLiveConnect=\"FALSE\" ");
		document.writeln("allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" ");
		document.writeln("pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
		document.writeln("</object>");
	} else if (flgMsg) {
		document.writeln("You will need install Flash Player on your computer.<br>");
		document.writeln("<a href='http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Japanese' target='_blank'>Click here</a> to get Macromedia Flash Player.");
	}
}

