function flash(swf, w, h, c, fv){
if (screen.availWidth > 1024){
	w = h = "100%";
}
if(!c) c = "dbef3b";
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // si nous avons détecté une version acceptable
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="'+w+'" height="'+h+'"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="'+swf+'.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#'+c+'" />'
    + '<param name="FlashVars" value="'+fv+'" />'
    + '<embed src="'+swf+'.swf" FlashVars="'+fv+'" quality="high" bgcolor="#'+c+'" '
    + 'width="'+w+'" height="'+h+'" name="'+swf+'" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // intégrer le clip Flash
  } else {  // version Flash trop ancienne ou détection du plug-in impossible
    var alternateContent = '<p style = \'text-align: center;\'><br /><br /><a class = "lien" href = "http://www.macromedia.com/go/getflash/" onclick="javascript:window.open(this.href);return false;"><br /><br /><img src = \'emploi/img/non_flash.jpg\' style = \'border: 0;\' title = \'Installer Flash Player\' /><br /><br />Votre version de Flash Player n\'est pas à jour<br />Cliquez ici pour installer la derniere version disponible</a></p>';
    document.write(alternateContent);  // Insérer contenu non-Flash
  }
}