// Solution for the IE Active X blocked problem.
/*
Programmed by Carlos Landaeta
E-Mail: call6108@gmail.com
Comments:
	If you were going nuts about the ACTIVEX thing and I gave you the solution,
	please email me back saying thank you ;)

This program is under GPL License, which can be found at http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------------------------------
Step 1 - In order to make this work you have to add this line between you <head> Tags.
		 Create a directory and call it "includes". Place this file inside the folder
		<script src="includes/swfmc.js" type="text/javascript"></script>
		
Step 2 - Replace your flash movie with the following code and fill it out with the information of your flash movie clip.
		<script language="javascript" type="text/javascript">
			swfmc("flashmovie.swf","width","height");
		</script>
*/

function swfmc(movie,width,height)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="');
		// Width for Object TAG
	document.write(width);
	document.write('" height="');
		// Height for Object TAG
	document.write(height);
	document.write('">\n');
		// File for Object TAG
	document.write('<param name="movie" value="');
	document.write(movie);
	document.write('">\n');
	
	// Params for Object TAG
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false">\n');
	
		// File for EMBED TAG
	document.write('<embed src="');
	document.write(movie);
	document.write('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="');
		// Width for EMBED TAG
	document.write(width);
	document.write('" height="');
		// Height for EMBED TAG
	document.write(height);
	
	// Params for Object TAG
	document.write('" menu="false"></embed>\n');
	document.write('</object>');
}
