var is_Flash        = false;
var is_FlashVersion = 0;

if ((Browser.ie) && (! Browser.mac))
{
   document.write(
      '<scr' + 'ipt language=VBScript>' + '\n' +
      'Dim hasPlayer, playerversion' + '\n' +
      'hasPlayer = false' + '\n' +
      'playerversion = 10' + '\n' +
      'Do While playerversion > 0' + '\n' +
         'On Error Resume Next' + '\n' +
         'hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))' + '\n' +
         'If hasPlayer = true Then Exit Do' + '\n' +
         'playerversion = playerversion - 1' + '\n' +
      'Loop' + '\n' +
      'is_FlashVersion = playerversion' + '\n' +
      'is_Flash = hasPlayer' + '\n' +
      '<\/sc' + 'ript>');
}
else
{
	var plugin = (navigator.mimeTypes && 
                 navigator.mimeTypes["application/x-shockwave-flash"] &&
                 navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ?
                 navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (plugin)
	{
		is_Flash = true;
		is_FlashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
	}
}

if (is_Flash)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"') ;
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"') ;
	document.write('width="' + Largeur + '" height="' + Hauteur + '">') ;
	document.write('<param name="movie" value="' + Film + '">') ;
	document.write('<param name="quality" value="high">') ;
	document.write('<param name="bgcolor" value="#ffffff">') ;
	document.write('<embed src="' + Film + '" quality="high" bgcolor="#ffffff"') ;
	document.write('width="' + Largeur + '" height="' + Hauteur + '"') ;
	document.write('type="application/x-shockwave-flash"') ;
	document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">') ;
	document.write('</embed>') ;
	document.write('</object>') ;
}

