var MM_contentVersion = 8;
var flashPage = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		if (navigator.plugins["Shockwave Flash"]) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function afficheBanniereFlash(idFlash, nomFichierFlash, paramEnvFlash, width, height, nomFichierImage, idImage, altText, pVertige) {
	if  (!bw.ns4&&!pVertige) {
		if ( MM_FlashCanPlay) {
			document.write('<div id="' + idFlash + '">');
			document.write('<object style="display:inline" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
			document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
			document.write(' height="'+height+'" width="'+ width + '" id="flash_' + idFlash + '">');
			document.write(' <param name="scale" value="noscale"/><param name="bgcolor" value="#000000"/><param name="wmode" value="transparent"/><param name="all" value="allowNetworking"/><param name="allowscriptaccess" value="always"/><param name="movie" value="' + nomFichierFlash + '.swf?p_ban=' + paramEnvFlash + '"><param name="allowScriptAccess" value="always" /><param name="quality" value="high">'); 
			document.write(' <embed allowScriptAccess="always" wmode="transparent" id="flash_' + idFlash + '" src="' + nomFichierFlash + '.swf?p_ban=' + paramEnvFlash + '" quality=high   ');
			document.write(' swLiveConnect="FALSE" name="' + idFlash + '" width="'+ width + '" height="' + height + '"');
			document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
			document.write(' </embed>');
			document.write('</object>');
			document.write('</div>');
			document.write('<div style="display:none" id="' + idImage + '">');	
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</div>');		
		} else {
			document.write('<div id="' + idImage + '">');	
			document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
			document.write('</div>');		
		}
	} else {
		document.write('<img width="'+ width + '" height="'+height+'" src="' + nomFichierImage + '"  alt="' + altText + '">');
	}	
}


