var existe = false;
function affichFlash(vers,obj,l,h,file) {
	MM_contentVersion = vers;
	plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN(parseInt(words[i]))) continue;
			MM_PluginVersion = words[i];
		}
		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');
		document.write('on error resume next \n');
		document.write('If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion))) Then \n');
		document.write('MM_FlashCanPlay = 0 \n');
		document.write('Else \n');
		document.write('MM_FlashCanPlay = 1 \n');
		document.write('End If \n');
		document.write('</scr'+'ipt>\n');
	}
	if ( MM_FlashCanPlay ) {
		document.write('<object data="'+obj+'.swf?file='+file+'" type="application/x-shockwave-flash" width="'+l+'" height="'+h+'"><param name="bgcolor" value="#e5e5e5" /><param name="movie" value="'+obj+'.swf?file='+file+'" /></object>');
	} else{
		var msg = '<img src="'+file+'.jpg">';
		if (!existe) {
			msg = msg+'<br><img src="site_requirements.png" align="absmiddle" /> Votre ordinateur ne possède pas la bonne version du plugin Flash. Merci de le télécharger <a href="http://www.macromedia.com/go/getflashplayer_fr">ici</a>.';
			existe = true;
		};
		document.write(msg);
	}
}