function putSWF(version , filename, Bg , Width , Height){

	if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
		if(navigator.plugins && navigator.plugins["Shockwave Flash"]){
			plugin = navigator.plugins["Shockwave Flash"].description.substring(16,17)
		}
	}else if(navigator.userAgent && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.userAgent.indexOf("Win") >= 0)){
		document.write('<S'+'CRIPT LANGUAGE="VBS'+'cript"> \n');
		document.write('on error resume next \n');
		document.write('plugin=Left(Hex(Int(CreateObject("ShockwaveFlash.ShockwaveFlash").FlashVersion)),1)\n');
		document.write('</S'+'CRIPT> \n');
	}




if (Number(plugin)>=version) {
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width=\"' + Width + '\" height=\"' + Height + '\">');
		document.write('<param name=\"movie\" value=\"' + filename + '\">');
		document.write('<param name=\"quality\" value=\"high\">');
		document.write('<param name=\"bgcolor\" value=\"#'+ Bg +'\">');
		document.write('<param name=\"scale\" value=\"noscale\">');
		document.write('<param name=\"menu\" value=\"false\">');
		document.write('<embed src=\"' + filename + '\" quality=\"high\" bgcolor=\"#'+ Bg +'\"  width=\"' + Width + '\" height=\"' + Height + '\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" menu=\"false\"></embed>');
		document.write('</object>');
	}

}
