var flashie4 = document.all;
var flashns4 = document.layers;
var flashns6 = document.getElementById && !document.all;


queryStr = this.document.location.search.substr(1, String(this.document.location.search).length);



function refreshPage(){
	this.document.location = this.document.location + "?nodetect";	
}

var MM_contentVersion = 6;
;
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'); //FS hide this from flashie4.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 || queryStr == "nodetect") {
	flName = "main_fr.swf";
	objName = "myFlash";
	flColor = "#000000";	
	flWidth = "1008";
	flHeight = "574";

document.write('<OBJECT '
      +  'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
      + ' codebase="http://active.macromedia.com/flash2/'
      + 'cabs/swflash.cab#version=6,0,0,0"'
      + ' ID="' + objName + '"'
      + ' WIDTH=' + flWidth
      + ' HEIGHT=' + flHeight + '>'
      + ' <PARAM NAME=movie VALUE="' + flName + '">'
      + ' <PARAM NAME=quality VALUE=best>'
	  + ' <param name="allowScriptAccess" value="sameDomain" />'
      + ' <PARAM NAME=bgcolor VALUE=' + flColor + '>'
      + '<EMBED src="' + flName  + '"'
      + ' name="' + objName + '"'
      + ' quality=best bgcolor=' + flColor
      + ' WIDTH=' + flWidth
      + ' HEIGHT=' + flHeight
      + ' TYPE="application/x-shockwave-flash"'
	  + ' allowScriptAccess="sameDomain"'
      + ' PLUGINSPAGE="http://www.macromedia.com/shockwave/'
      + 'download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
      + '</EMBED></OBJECT>'
)

} else{
	document.write('<span style="font-family:verdana;font-size:11px">Pour jouer au jeu en Flash, t&eacute;l&eacute;chargez l \'application <a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_new">Flash Player</a></span>');
}
