IE = navigator.appName=="Microsoft Internet Explorer";NS = navigator.appName=="Netscape";bVer = parseInt(navigator.appVersion);var newWin=null;// REDIRECTION SUIVANT RESOLUTIONfunction redir(x) {						//alert("redir : " + x ) ;			if (screen.width<=800) {				popup( x + "/flash/base2.html", "florette");			}			if (screen.width>800) {								largeur = screen.width;				hauteur = screen.height-40;				//alert("resolution = "+screen.width+" ; "+largeur);				//alert("resolution = "+screen.height+" ; "+hauteur);				popup2( x + "/flash/base2.html", "flo", largeur, hauteur);			}			}//--><!--//  popup [800*600] ------------------------------------------------------------------------------------------------function popup(loc, name) {        var _params = "width=790,height=540,resizable=no,status=no,scrollbars=yes,top=0,left=0";        newWin = window.open(loc, name, _params);        if ( newWin!=null && !(IE && bVer<5) )                newWin.focus(); // MSIE4 PAS DE FOCUS WINDOWS}<!--//  popup [AUTRE] ------------------------------------------------------------------------------------------------function popup2(loc, name, width, height) {        var _params = "width="+width+",height="+height+",resizable=no,status=no,scrollbars=no,top=0,left=0";        newWin = window.open(loc, name, _params);        if ( newWin!=null && !(IE && bVer<5) )                newWin.focus(); // MSIE4 PAS DE FOCUS WINDOWS}// CHECK PLUGIN FLASH + VERSION, REDIRECTION  --------------------------------------------------------------------------------var requiredVersion = 6;   // Version necessaire pour voir le site (max 6, min 2)var useRedirect = true;    // Flag indicating whether or not to load a separate                           // Variables pour la redirectionvar flashPage = "merci.htm"      // page Flashvar noFlashPage = "noflash.html"  // Page No Flash// Variables globalesvar flash2Installed = false;    // boolean. true si flash 2 is installevar flash3Installed = false;    // boolean. true si flash 3 is installevar flash4Installed = false;    // boolean. true si flash 4 is installevar flash5Installed = false;    // boolean. true si flash 5 is installevar flash6Installed = false;    // boolean. true si flash 6 is installevar maxVersion = 6;             // derniere version  actuellement detectablevar actualVersion = 0;          // version actuelle de l'utilisateurvar hasRightVersion = false;    // boolean. true si bonne version// --><!--// Check navigateur...verifier si c'est ie/winvar isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    // true si ievar isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true si windows// vbscript detection pour IE WINDOWS. IE on Windows ne supporte pas le javascript normal de detectionif(isIE && isWin){	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');	document.write('on error resume next \n');	document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');	document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');	document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  	document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');  	document.write('</SCR' + 'IPT\> \n');}// --><!--// Maintenant le javascript standard de detection en utilisant une fonctionfunction detectFlash(pLang) {    // Si plugin present...  if (navigator.plugins) {    // ... check si flash 2 ou flash 3+.    if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {      // version de Flash detectee. Pour savoir lequel.            //  references de flash 2 et description.      var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";      var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;      var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));           // We found the version, now set appropriate version flags. Make sure      // to use >= on the highest version so we don't prevent future version      // users from entering the site.      flash2Installed = flashVersion == 2;          flash3Installed = flashVersion == 3;      flash4Installed = flashVersion == 4;      flash5Installed = flashVersion == 5;      flash6Installed = flashVersion >= 6;	  	      }	  }  // boucle pour checker toutes les versions et comparer avec la verzsion necessaire  for (var i = 2; i <= maxVersion; i++) {      if (eval("flash" + i + "Installed") == true) actualVersion = i;  }      // actions apres detection.  // pour les autres versions  if (actualVersion >= requiredVersion) {	redir(pLang);	hasRightVersion = true;  	                } else {     	window.location = pLang + "/" + noFlashPage;       }}  //-->