function RunFlash($flash,$x,$y,$div)
{
   var $div = ($div == null) ? "flash" : $div;
   var browser=navigator.appName;
   var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
   document.write('<div class="'+$div+'">\n');
   
   
if (browser=="Microsoft Internet Explorer" || is_chrome==true )
{
   document.write('<div class="'+$div+'">\n');
   document.write('<object type="application/x-shockwave-flash" width="'+$x+'" height="'+$y+'" id="Flash" align="middle">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain">\n');
   document.write('<param name="movie" value="'+$flash+'">\n');
   document.write('<param name="quality" value="high">\n');
   document.write('<param name="bgcolor" value="#000000">\n');
   document.write('<param name="wmode" value="transparent">\n');
   document.write('</object>\n');
   document.write('</div>\n');
} 
else 
{
   document.write('<embed src="'+$flash+'" quality="high" bgcolor="#ffffff" width="'+$x+'" height="'+$y+'" name="'+$flash+'" align="middle" allowScriptAccess="sameDomain type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />');
}
   document.write('</div>\n'); 
}
