var flashie4 = document.all;
var flashns4 = document.layers;
var flashns6 = document.getElementById && !document.all;

var MM_contentVersion = 7;


urlParam = location.search;
if(urlParam == "?noDetect"){
	byPassRoutine = true;
}else{

	byPassRoutine = false;
}


if(!byPassRoutine){
	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;	
	}
	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('MM_FlashCanPlay = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT> \n');
	}
}else{
	MM_FlashCanPlay = true;
}


if ( MM_FlashCanPlay ) {

      flName = "tilt10.swf";
      flColor = "#FFFFFF"
      flWidth = "1000";
      flHeight = "686";

document.write('<OBJECT '
      +  'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
      + ' codebase="http://active.macromedia.com/flash2/'
      + 'cabs/swflash.cab#version=5,0,0,0"'
      + ' ID="tilt"'
      + ' WIDTH=' + flWidth
      + ' HEIGHT=' + flHeight + '>'
      + '<PARAM NAME=movie VALUE="' + flName + '">'
      + '<PARAM NAME=quality VALUE=best>'
      + '<PARAM NAME=bgcolor VALUE=' + flColor + '>'
      + '<EMBED src="' + flName  + '"'
      + ' name="tilt"'
      + ' quality=best bgcolor=' + flColor
      + ' WIDTH=' + flWidth
      + ' HEIGHT=' + flHeight
      + ' TYPE="application/x-shockwave-flash"'
      + ' PLUGINSPAGE="http://www.macromedia.com/shockwave/'
      + 'download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
      + '</EMBED></OBJECT>'
)

} else{
	document.write('<br><br><br><br><br><br><span style="font-family:verdana;font-size:11px;color:#000000">Vous ne disposez pas d\'une version assez récente du lecteur Flash<br>pour utiliser ce site.<br><br>Cliquez sur le lien suivant pour télécharger le lecteur...</span><br><table cellspacing=10 cellpadding=0><tr><td align="left"><a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_new"><img src="get_flashplayer.gif" border=0></a></td><td align="right"><span style="font-family:verdana;font-size:11px;color:#000000">Pour accèder à nouveau au site,<br><a href="index.htm?noDetect">cliquez sur le lien suivant.</a></span></td></tr></table>');
}
