// tag objet du flash
	MM_FlashCanPlay = false;
		
	// dÈtection flash.
	// indiquer ici quel version l'usager doit avoir au minimum.
	
	var versionDemander = 7;
	
	// le lien pour telecharge la derniere version de FLASH.
	var Lien = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French&P6_Language=French";	
	
	// initialisation et ecritures des codes en VBScript pour Explorer.
	// ce code a ete teste sous PC: IE 5.5 IE 6, Netscape 4.7, Netscape 7
	//							MAC: IE: 5.1, Netscape 4.7
	
	MM_contentVersion   = versionDemander;

	
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	
	if ( plugin ) {
			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;
			
			// se souvient de la version installer sur le poste
			if(!MM_FlashCanPlay) MM_contentVersion = MM_PluginVersion;
		
		
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.appVersion.indexOf("Win") != -1)) {
	   
	   // boucle afin d'identifier la version de flash sur Explorer
	   // installer au niveau du poste.
	   // a revoir pour le coder en VBScript
	   
	   while(MM_FlashCanPlay != true && MM_contentVersion >=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');
	

			if(MM_FlashCanPlay) {
				if(MM_contentVersion != versionDemander) MM_FlashCanPlay = false;
				break;
			}
			MM_contentVersion--;
		}
			
	}	


	
	// ecriture de la balise Object specifie en arguments ou des images, textes si ne possËde
	

	
		if ( MM_FlashCanPlay == true) {
			document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="214" height="209" id="entete" align="middle">');
			document.write('<param name="allowScriptAccess" value="sameDomain" />');
			document.write('<param name="movie" value="/fantomes/flash/affiche.swf" />');
			document.write('<param name="quality" value="high" />');
			document.write('<param name="bgcolor" value="#ffffff" />');
			document.write('<param name="wmode" value="transparent" />');
			document.write('<embed src="/fantomes/flash/affiche.swf" width="214" height="209" autostart="true" wmode="transparent" quality="high" bgcolor="#ffffff" name="entete" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
			document.write('</object>');
	
		}	else{
			document.write('<a href="' + Lien + '" target="_blank">');
			if(MM_contentVersion < versionDemander && MM_contentVersion >=1) {
					document.write('<img src="/fantomes/img/acc/sitenecessiteflash.gif" width="422" height="49" alt="" border="0">');
			} else {
					document.write('<img src="/fantomes/img/acc/flashnestpasinstalle.gif" width="422" height="49" alt="" border="0">');
			}
			document.write('</a>');
		}

