var sNav=navigator.userAgent; 
if (sSrc && /mozilla|opera/i.test(sNav) && !/macintosh/i.test(sNav)) {
  document.write('<object id="myFlash" data="'+sSrc+'"');
  document.write(' type="application/x-shockwave-flash"');
  document.write(' width="'+iWidth+'" height="'+iHeight+'">');
  document.write('<param name="movie" value="'+sSrc+'">');
  document.write('<param name="src" value="'+sSrc+'">');
  document.write('<param name="WMode" value="window">'); //other options transparent, opaque ... 
  document.write('<param name="BGColor" value="'+sBgColor+'">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="swliveconnect" value="true">');
  document.write('<p>Pour afficher cette animation veuillez telecharger <a href="http://www.macromedia.com/downloads">FLASH<\/a><\/p>');
  document.write('<\/object>'); 
} else {
  document.writeln('  <embed src="'+sSrc+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="" bgcolor="'+sBgColor+'" menu="false" WMode="window" quality="high" salign="tl" width="'+iWidth+'" height="'+iHeight+'"></embed>');
}
