// JavaScript Document
// By Emmanuel Galván
// Enables automatic ActiveX control usage activation within MS Internet Explorer with KB912945 for SWF movies
// For compatibility with XHTML 1.0/Transitional Web Pages

function ShowSWFmovie(name, width, height, bgcolor, wmode, fvars){
	
	document.write('<object data="' + name + '" width="' + width + '" height="' + height + '" type="application/x-shockwave-flash" flashvars="' + fvars + '">');
	
	document.write('<param name="type" value="application/x-shockwave-flash" />');
	document.write('<param name="src" value="' + name + '" />');
	document.write('<param name="data" value="' + name + '" />');
	document.write('<param name="codebase" value="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" />');
	document.write('<param name="movie" value="' + name + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="' + bgcolor + '" />');
	document.write('<param name="allowscriptaccess" value="samedomain" />');
	document.write('<param name="wmode" value="' + wmode + '" />');
	document.write('<param name="flashvars" value="' + fvars + '" />');
	document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />');
		
	document.write('</object>');
	
}
//End Script
