function flash_detect() 
{
  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]; 
    }
  }
  else if (window.ActiveXObject) {
    for (x = 13; x > 0; x--) {
      try {
      if (!!(new ActiveXObject('ShockwaveFlash.ShockwaveFlash.' + x))) {
        MM_PluginVersion = x + '.0';
        break;
      }
      }
      catch(e) { }
    }
  }

  var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
  
  //téléchargement de la version de flash
  if ( !MM_FlashCanPlay ) {
   	document.getElementById('flash_vedette').style.display='none';
   	document.getElementById('widget_repertoire').style.display='none';
   	document.getElementById('get_flash_top').style.display='block';
   	document.getElementById('get_flash_bottom').style.display='block';
  }
}
