var f_ver = 8;//フラッシュの書き出しのバージョンを入れてください。
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

function flash(file_pass,swf_width,swf_height){
	if ( plugin ) {
		plugin = parseInt(plugin.description.match(/\d+\.\d+/)) >= f_ver;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & f_ver)))\n');
		document.write('</SCRIPT\> \n');
	}
	if ( plugin ) {
		document.write('<object id ="movie" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"  width="'+swf_width+'" height="'+swf_height+'">');
		document.write('<param name="movie" value="'+file_pass+'"><param name="quality" value="high">'); 
		document.write('<embed src="'+file_pass+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+swf_width+'" height="'+swf_height+'">');
		document.write('</embed>');
		document.write('</object>');

	} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			document.write('<img src="/swf/top_swf.gif" width="959" height="279">');
	}
}