function showMe(show) 
{
	document.getElementById(show).style.display = 'block';
}

function hideMe(hide) 
{
	document.getElementById(hide).style.display = 'none';
}

function cachecache(val) 
{		
	var mydiv = eval("document.getElementById('" + val + "')");
	if(mydiv.style.display == "none")
		showMe(val);
	else
		hideMe(val);
}

function PopupImage(img) 
{ 
	titre="Agrandissement"; 
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes'); 
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>"); 
	w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+30,document.images[0].height+70); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
	w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
	w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
	w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'>"); 
	w.document.write("</TD></TR></TABLE>");
	w.document.write("</BODY></HTML>"); 
	w.document.close(); 
}

function changeTracks(name, track) {
	if(navigator.appName == "Netscape") {
		document.getElementById("lecteur").innerHTML = '<object type="application/x-shockwave-flash" data="DONNEES/Dewplayer/dewplayer.swf?mp3=DONNEES/Audio/'+track+'" width="200" height="20"><param name="dewplayer" value="DONNEES/Dewplayer/dewplayer.swf?mp3=DONNEES/Audio/'+track+'"></object>';
	} else {
		document.getElementById("lecteur").innerHTML = '<embed src="DONNEES/Audio/'+track+'" autostart="off" height="15"></embed>';
	}
	document.getElementById("titre").innerHTML='<font color=grey>' + name + '</font> <img src="DONNEES/Images/Divers/Haut_parleur.jpg">';
}