/*
Put this file into a folder _js from the root

Put the following line in the HTML header of the HTML file containing the Flash

<script language=javascript src="/_js/Flash.js"></script> 

Find the Flash objects and surround the existing Flash Object tags with

<noscript>
.
.
.
</noscript>


Above the <noscript> tag paste the following line, changing the parameters accordingly (Filename, Height, Width)

<script type="text/javascript">Flash('_flash/menu.swf',108,720);</script>

Repeat for each flash object

*/

// 



function Flash(pSWF,pWidth,pHeight,pParams)
{
    	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/_flash/swflash.cab#version=6,0,40,0" width="' + pWidth + '" height="' + pHeight + '">\n');
        document.write('<param name="movie" value="' + pSWF + '">\n');
        document.write('<param name="quality" value="High">\n');
        document.write('<param name="menu" value="false">\n');
        document.write('<param name="salign" value="L">\n');
        document.write('<param name="FlashVars" value="' + pParams + '">\n');
	document.write('<embed src="' + pSWF + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + pWidth + '" height="' + pHeight + '" FlashVars="' + pParams + '"></embed>\n');
	document.write('</object>\n');
}        