
function fPutFlash(n,pLangRep){
	/*if(pLangRep == "fr"){
		var subFla = "_fr";
	}else{
		var subFla = "";
	}*/
	if(n > 0){
		document.write('   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="964" height="279">');
		document.write('   <param name="movie" value="homepage.swf">');
		document.write('	   <param name="quality" value="high">');
		document.write('	   <param name="menu" value="false">');
		document.write('    <embed src="homepage.swf" width="964" height="279" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>');
		document.write('   </object>');
	}else{
		document.write('<IMG SRC="_customer/images/'+ pLangRep +'/index_bg_middle.gif">');
	}
}

// CHECK PLUGIN FLASH + VERSION, REDIRECTION  --------------------------------------------------------------------------------

var requiredVersion = 6;   // Version nécessaire pour voir le site (max 6, min 2)
var useRedirect = true;    // Flag indicating whether or not to load a separate

// Variables globales
var flash2Installed = false;    // boolean. true si flash 2 is installé
var flash3Installed = false;    // boolean. true si flash 3 is installé
var flash4Installed = false;    // boolean. true si flash 4 is installé
var flash5Installed = false;    // boolean. true si flash 5 is installé
var flash6Installed = false;    // boolean. true si flash 6 is installé
var maxVersion = 6;             // dernière version  actuellement détectable
var actualVersion = 0;          // version actuelle de l'utilisateur
var hasRightVersion = false;    // boolean. true si bonne version

// -->

<!--

// Check navigateur...vérifier 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 détection pour IE WINDOWS. IE on Windows ne supporte pas le javascript normal de détection

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 détection en utilisant une fonction

function detectFlash() {  
  // Si plugin présent...
  if (navigator.plugins) {
    // ... check si flash 2 ou flash 3+.
    if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {

      // version de Flash détectée. Pour savoir lequel.
      
      //  références 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 nécessaire
  for (var i = 2; i <= maxVersion; i++) {  
    if (eval("flash" + i + "Installed") == true) actualVersion = i;
  }
  
  
  // actions après détection.

  // pour les autres versions
  if (actualVersion >= requiredVersion) {
   
	putFlash = 1;
	hasRightVersion = true;  
	              
  } else { 
  
  	putFlash = 0; 
    
  }
  
}


detectFlash();  // appel de la fonction  

//-->