function insertFlashFile(swf, play, width, height)
{

//Insert the following to get it working
//<script language="JavaScript" type="text/javascript" src="<path to file>/flashcorrection.js"></script>
//<div style="z-index: -1;">
//<script type="text/javascript">insertFlashFile('<swf file name>', '<play info>', '<width>', '<height>');</script>
//</div>

    document.write('<OBJECT style="WIDTH: ' + width + '; HEIGHT: ' + height + '" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
	document.write(' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT >');
	document.write('<PARAM NAME="_cx" VALUE="19315" >');
	document.write('<PARAM NAME="_cy" VALUE="10848" >');
	document.write('<PARAM NAME="FlashVars" VALUE="" >');
	document.write('<PARAM NAME="Movie" VALUE="' + swf + '" >');
	document.write('<PARAM NAME="Src" VALUE="' + swf + '" >');
	document.write('<PARAM NAME="Play" VALUE="' + play + '" >');
	document.write('<PARAM NAME="Loop" VALUE="-1" >');
	document.write('<PARAM NAME="Quality" VALUE="High" >');
	document.write('<PARAM NAME="SAlign" VALUE="" >');
	document.write('<PARAM NAME="Menu" VALUE="-1" >');
	document.write('<PARAM NAME="Base" VALUE="" >');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="always" >');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll" >');
	document.write('<PARAM NAME="DeviceFont" VALUE="0" >');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0" >');
	document.write('<PARAM NAME="BGColor" VALUE="" >');
	document.write('<PARAM NAME="SWRemote" VALUE="" >');
	document.write('<PARAM NAME="MovieData" VALUE="" >');
	document.write('<PARAM NAME="SeamlessTabbing" VALUE="1" >');
	document.write('<param name="wmode" value="transparent" >');
	document.write('<embed src="' + swf + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ');
	document.write('type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" align="top" wmode="transparent"></embed>');
    document.write('</object>\n');
}
