var plugin = 0;
plugin = ((navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);

function disposeFlash(swfFile) {

	if (plugin) {
		plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5;
	} 
	else if (navigator.userAgent && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.userAgent.indexOf("Win") >= 0)){
	document.write('<SCRIPT LANGUAGE="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
	document.write('</SCRIPT\> \n');
	}
	if (plugin) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="510" HEIGHT="240">\n');
		document.write('<PARAM NAME="movie" VALUE="' + swfFile +'">\n');
		document.write('<PARAM NAME="loop" VALUE=false>\n');
		document.write('<PARAM NAME="menu" VALUE=true>\n');
		document.write('<PARAM NAME="quality" VALUE=high>\n');
		document.write('<PARAM NAME="bgcolor" VALUE=#333333>\n');
		document.write('<EMBED src="' + swfFile +'" loop="false" menu="true" quality="high" bgcolor="#333333"  WIDTH="510" HEIGHT="240" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>\n');
		document.write('</OBJECT>\n');
	} else {
		document.write('<br>\n');
	}
}
