// JavaScript Document
function RunFoo(swf, hauteur, largeur, couleur, nom, zone0) 
{
	//var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	var hasRightVersion = true;
	if(hasRightVersion) {  // si nous avons détecté une version acceptable
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+largeur+'" height="'+hauteur+'"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="'+swf+'" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noborder" /><param name="wmode" value="transparent" /><param name="bgcolor" value="'+couleur+'" />'
		+ '<param name=FlashVars value="zone0='+zone0+'">'
		+ '<embed src="'+swf+'" FlashVars="zone0='+zone0+'" menu="false" quality="high" scale="noborder" wmode="transparent" bgcolor="'+couleur+'" '
		+ 'width="'+largeur+'" height="'+hauteur+'" name="'+nom+'" align="top"'
		+ '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 = '<H1>&quot;OUEST AVEYRON RECRUTONS ENSEMBLE&quot;</H1>'
		+ '<A HREF="../index2.php"><img src="../templates/temp/images/logo.jpg" alt="Ouest Aveyron Recrutons Ensemble" width="170" height="30" border=0/><BR><BR>'
		+ '[ <a href=http://www.jobaveyron.com/dossiers/dossiers.php?id_dossier=112>Recrutements - Offres d\'Emploi</a> ] - '
		+ '[ <a href=http://www.jobaveyron.com/dossiers/cat.php?idcat=1>Pr&eacute;sentation</a> - '
		+ '[ <a href=http://www.jobaveyron.com/dossiers/dossiers.php?id_dossier=105>Annuaire des Entreprises</a> ] - '
		+ '[ <a href=http://www.jobaveyron.com/index2.php>Accueil</a> ]'
		+ '<BR><BR>Pourvoir ce contenu anim&eacute; cela requiert Macromedia Flash Player &agrave; t&eacute;l&eacute;charger &agrave; l\'adresse:'
		+ ' <a href=http://www.macromedia.com/go/getflash/>Obtenir Flash</a><BR><BR>';
		document.write(alternateContent);  // Insérer contenu non-Flash
	  }
}
