function writeText(area,txt) {
	document.getElementById(area).innerHTML=txt;
}

function showdiv(area) {
	document.getElementById(area).style.visibility="visible";
}
function hidediv(area) {
	document.getElementById(area).style.visibility="hidden";
	writeText(area,"");
}

function playaudio(file,titre,txt) {
	showdiv('videoPlay');
	var play = '<div id="video">'
	+ '<a href="http://www.macromedia.com/go/getflashplayer">'
	+ 'Get the Flash Player</a></div><p><b>' + titre + '<\/b><br />'
	+ txt + '<\/p>'
	+ '<div class="lien" style="text-align: right;" onclick="hidediv(\'videoPlay\');"><u>close<\/u><\/div>';
	writeText("videoPlay",play);
	var thefile = "file=audio/" + file + ".mp3&autostart=true";
	var so = new SWFObject("player.swf","yt","320","20","9","#cccccc");
	so.addParam("allowscriptaccess","always");
	so.addParam("flashvars",thefile);
	so.write("video");
}

function playvideo(file,titre,txt) {
	showdiv('videoPlay');
	var play = '<div id="video">'
	+ '<a href="http://www.macromedia.com/go/getflashplayer">'
	+ 'Get the Flash Player</a></div><p><b>' + titre + '<\/b><br />'
	+ txt + '<\/p>'
	+ '<div class="lien" style="text-align: right;" onclick="hidediv(\'videoPlay\');"><u>close<\/u><\/div>';
	writeText("videoPlay",play);
	var thefile = "file=video/" + file + ".flv&autostart=true";
	var so = new SWFObject("player.swf","yt","320","260","9","#cccccc");
	so.addParam("allowscriptaccess","always");
	so.addParam("flashvars",thefile);
	so.write("video");
}

function showCD(theCDimg,titre,txt) {
	showdiv('videoPlay');
	var theText = '<img src="img/cds/'+ theCDimg + '" alt="'+ txt + '" width="238" height="229" /><p><b>' + titre + '<\/b><br />'  + txt + '<\/p><div class="lien" style="text-align: right;" onclick="hidediv(\'videoPlay\');"><u>close<\/u><\/div>';
	return writeText("videoPlay",theText);
}