function creerBlocFlash(idBloc){
	
	document.write('<div id="'+idBloc+'">');
	document.write('<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><div style="color: #000000;"><strong>Pour visualiser ce contenu, vous devez mettre à jour votre Flash Player</strong></div><div style="color: #000000;"><a style="color: #000000;" href="http://www.macromedia.com/go/getflashplayer" target="_blank">Cliquez ici pour télécharger la version la plus récente</a>.</div><br />');
	document.write('</div>');
}

function loadMusic(nomFichier, idDiv, idFlash, largeur, hauteur, soundFile, xmusic)
{	
	creerBlocFlash(idDiv);
	
	var fo = new FlashObject(nomFichier, idFlash, largeur, hauteur, "8");
	fo.addVariable("allowScriptAccess", "sameDomain");
	fo.addVariable("quality", "high");
	fo.addParam("wmode", "transparent");
	fo.addVariable("SOUND_FILENAME", soundFile);
	fo.addVariable("SOUND_ACTIVE", xmusic);
	fo.write(idDiv);
}

function loadMenuTop(section)
{	
	creerBlocFlash("menutopFlash");
	
	var fo = new FlashObject("menu_top.swf", "menutop", "800", "42", "8");
	fo.addParam("wmode", "transparent");	
	fo.addVariable("allowScriptAccess", "sameDomain");
	fo.addVariable("quality", "high");
	fo.addVariable("CURRENT_SECTION", section);
	fo.write("menutopFlash");
}

function loadTitre(idDiv,imageOeuvre,titreOeuvre)
{	
	nomFichier = 'oeuvres_titre.swf';
	idFlash = 'flashTitreOeuvre';
	
	var fo = new FlashObject(nomFichier, idFlash, 500, 90, "8");
	fo.addParam("wmode", "transparent");
	fo.addVariable("allowScriptAccess", "sameDomain");
	fo.addVariable("quality", "high");
	fo.addVariable("IMAGE_OEUVRE", imageOeuvre);
	fo.addVariable("TITRE_OEUVRE", titreOeuvre);
	fo.write(idDiv);
}

function xplayvideo(pathVideo) {

	document.write('<div id="emplacementVideo"><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><strong>You need to upgrade your Flash Player</strong><br />You can download the most recent version by clicking <a style="color:#FF0000" href="javascript:getFlash()">here</a>.<br /></div>');
	
	var fo = new FlashObject("00-videoplayer.swf", "mymovie", "480", "398", "8");
	fo.addParam("wmode", "transparent");
	fo.addVariable("allowScriptAccess", "sameDomain");
	fo.addVariable("quality", "high");
	fo.addVariable("VIDEO_FILENAME", pathVideo);
	//fo.addVariable("CURRENT_LANGUAGE", xlang);
	fo.write("emplacementVideo");
}
