// Fonction du menu
window.onload=montre;
function montre(id) 
{
	var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
	if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
	if (d) {d.style.display='block';}
}
	
// Fonction du pop up taille de l'image

function PopupImage(img,page,titrepage,lienfermer) 
{
	img=img.replace("medium","big");
	w=open("",'image','width=400,height=400,top=10,left=10,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titrepage+"</TITLE><link href='style.css' rel='stylesheet' TYPE='text/css'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+70); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=3 marginwidth=0 marginheight=0>");
	w.document.write("<table border='0' cellpadding='0' cellspacing='0'>");
	w.document.write("<tr><td align='center'><IMG src='"+img+"' border=0></td></tr>");
	w.document.write("<tr><td align='center'><br><a href='javascript:window.close();' class='lien'>"+lienfermer+"</a></td></tr>");
	w.document.write("</table>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
//changement de l'image detail

function move_img(img_name,img_url) {		
	document.images["image"].src=""+img_url;
}
