// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
	document.write("Flash 6 ou supérieur mais pas de 8");   // embed the Flash Product Installation SWF
} else if (hasReqestedVersion) {  // if we've detected an acceptable version
	// rbqe_choisie est dans scripts.js
	
	var bandeau_flash = new Array();
	bandeau_flash[0]='homme2.swf';
	bandeau_flash[1]='femme.swf';
	
	var nombre_bandeau_flash = bandeau_flash.length; 
	var index_aleatoire = parseInt(Math.random()*nombre_bandeau_flash);//  Si Netscape on detecte le plug-in flash
	affiche = '/js/'+bandeau_flash[index_aleatoire];
	
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="580" height="150" align="middle">');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="movie" value="'+affiche+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<embed src="'+affiche+'" quality="high" width="580" height="150" name="'+affiche+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>'); 
	}

 else {  // flash is too old or we can't detect the plugin

	document.write('<img src="/flash/bandeau_0.jpg" width="580" height="150" border="0" alt="CASDEN BANQUE POPULAIRE">');
}
	document.writeln('<br><br>');