function RunFoo(swf, curr_page)
{
   document.write('<OBJECT codeBase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="256" width="710" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">\n');
   document.write('<PARAM NAME="flashVars" VALUE="curr_page='+curr_page+'">\n');
   document.write('<PARAM NAME="_cx" VALUE="18785"><PARAM NAME="_cy" VALUE="6773"><PARAM NAME="FlashVars" VALUE="">\n');
   document.write('<PARAM NAME="Movie" VALUE="images/'+swf+'.swf"><PARAM NAME="Src" VALUE="images/'+swf+'.swf">\n');
   document.write('<PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1">\n');
   document.write('<PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1">\n');
   document.write('<PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always">\n');
   document.write('<PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0">\n');
   document.write('<PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE="">\n');
   document.write('<PARAM NAME="SeamlessTabbing" VALUE="1"><embed src="images/'+swf+'.swf" quality="high"\n');
    
   document.write('pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
   document.write('type="application/x-shockwave-flash" width="710" height="256"></embed></OBJECT>\n');
}

