/*--------------- [ Flash View ] ---------------*/
var flash_ver = 8;
function FlashView(filename,width,height){
	var MM_contentVersion = flash_ver;
	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)) {
		try{
			var flashVersion=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
			flashVersion=Math.floor(flashVersion / 0x10000);
		}catch(e){
			flashVersion = MM_contentVersion;
		}
		var MM_FlashCanPlay = flashVersion >= MM_contentVersion;
	}

	if(MM_FlashCanPlay){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '">');
		document.write(' <param name="movie" value="' + filename + '" />');
		document.write(' <param value="high" name="quality">');
		document.write(' <param name="wmode" value="transparent" />');
		document.write(' <embed src="' + filename + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + ' " height="' + height + '" wmode="transparent"></embed>');
		document.write('</object>\n');
	}else{
		document.write('<p class="error">このムービーをご覧になるには、<em><a href="http://www.adobe.com/shockwave/download/index.cgi?Lang=Japanese&amp;P5_Language=Japanese&amp;P1_Prod_Version=ShockwaveFlash&amp;Lang=Japanese">Adobe Flash Player ver.'+MM_contentVersion+'</a> が必要です。</em></p>');
	}
}
