function PopupCentrer(page,nom)
{
	imagePOP = new Image();
	imagePOP.name = ""+nom;
	imagePOP.src = ""+page;
	nbf = 0;
	affiche();
	}
	function affiche()
	{
	if (imagePOP.width != 0) {setTimeout("pop()",0);return;}
	nbf++
	if (nbf<200) {setTimeout("affiche()",20);return;}
	}
	function pop()
	{
	largeur = imagePOP.width;
	hauteur = imagePOP.height;
	nom = imagePOP.name;
	ttop=(screen.height-hauteur)/2;
	tleft=(screen.width-largeur)/2;
	POPUP = window.open("","photo2","top="+ttop+",left="+tleft+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=no,statusbar=no");
	POPUP.document.write("<title>"+nom+"</title><body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\" MARGINWIDTH=0 MARGINHEIGHT=0><img name='img' style='position:absolute;top:0;left:0;' src='"+imagePOP.src+"' border=0 alt=''></body>");
	POPUP.document.close();
	POPUP.focus();
}

