/* **********************************************
/* ** FONCTION DE VERIFICATION
/* ** DU PLUGIN FLASH
** */
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var plugin
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length && plugins[plgIn])) {
  if (plugins[plgIn]) {
    versionIndex = plugins[plgIn].description.indexOf(".");
	var versionString = plugins[plgIn].description.substring(versionIndex-1, versionIndex);
    versionIndex = parseInt( versionString );
    if (versionIndex>=6) ok=(plugins && plugins[plgIn]);
  }
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash >= 6) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok){
  plugin= "dhtml";
  //writeDhtml();
  }
  else {
  plugin= "flash";
  //writeFlash();
  }
  return plugin;
}

var plugin;

/* **********************************************
/* ** FONCTION D'ECRITURE 
/* ** FLASH/NOFLASH
** */
function writeIt() {
	plugin = MM_checkPlugin('Shockwave Flash','','',true);
	if(plugin == "dhtml") {
		return "dhtml";	
	}
	else {
		return "flash";	
	}
}

/* **********************************************
/* ** FONCTION D'ECRITURE 
/* ** NOFLASH
** */
function write_dhtml() {
    document.location.replace("noflash.php");
}

/* **********************************************
/* ** FONCTION D'ECRITURE 
/* ** FLASH
** */
function write_flash() {
	// NE FAIS RIEN
}

/* **********************************************
/* ** UTILISATION DE LA VERIFICATION 
/* ** FLASH/NOFLASH
** */
if (writeIt()=="dhtml") {
	 	 write_dhtml();
}
if (writeIt()=="flash") {
	  	 write_flash();
}


