/* JavaScript Document

To use this in an HTML document copy the following script to where you want to put the flash in your site.

Script:	<script> embedflash(swf_path, swf_width, swf_height); </script>

Where: 	swf_path is the movie's path
		swf_width is the movies desired width
		swf_height is the movies desired height
	
Remember to add the embed javascript file "embedflash.js" in the head of the webpage you are using it in :

	<script src="embedflash.js"></script>
*/	

function embedflash(swf_path, swf_width, swf_height)
	{
		
		/*
		var swf_path = '/images/home/BWS-11060_slowed.swf';
		var swf_width = '200'; // in pixels
		var swf_height = '80'; // in pixels
		*/
		
		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='"+ swf_width +"' height='"+ swf_height +"'>");
        document.write ("<param name='movie' value='" + swf_path + "'>");
     	document.write (" <param name='quality' value='high'>");
        document.write ("<embed src='" + swf_path + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ swf_width +"' height='"+ swf_height +"'></embed>");
    	document.write ("</object>");
	}