function popcentrer(url, position, largeur, hauteur) 
{
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  var option = "top="+top+",left="+left+",width="+largeur+",height="+hauteur+", scrollbars=0, toolbar=0, titlebar=0, status=0, resizable=0, menubar=0' ";
  var fenetre = window.open('', '_blank', option);
  fenetre.document.write('<p align="center"><IMG src="'+url+'" border="0">');
  fenetre.document.write('<br /><br />'+document.images[position+1].alt+'<br />'); //On ne compte pas l'image de la bannière
  fenetre.document.write('<a href="javascript:self.close()">Fermez la fen&ecirc;tre</a></p>');
  fenetre.focus();
}


function displayPics()
{
	var photos = document.getElementById('galerie_mini') ;
	// On récupère l'élément ayant pour id galerie_mini
	var liens = photos.getElementsByTagName('a') ;
	// On récupère dans une variable tous les liens contenu dans galerie_mini
	var big_photo = document.getElementById('big_pict') ;
	// Ici c'est l'élément ayant pour id big_pict qui est récupéré, c'est notre photo en taille normale

	var titre_photo = document.getElementById('photo').getElementsByTagName('dt')[0] ;
	// Et enfin le titre de la photo de taille normale

	// Une boucle parcourant l'ensemble des liens contenu dans galerie_mini
	for (var i = 0 ; i < liens.length ; ++i) {
		// Au clique sur ces liens 
		liens[i].onclick = function() {
			big_photo.src = this.href; // On change l'attribut src de l'image en le remplaçant par la valeur du lien
			big_photo.alt = this.title; // On change son titre
			titre_photo.firstChild.nodeValue = this.title; // On change le texte de titre de la photo
			return false; // Et pour finir on inhibe l'action réelle du lien
		};
	}
}
window.onload = displayPics;
// Il ne reste plus qu'à appeler notre fonction au chargement 


<!--
if ( navigator.appName == "Netscape" )
{
	//-- This next line ensures that any plug-ins just installed are updated in the browser
	//-- without quitting the browser.
	navigator.plug-ins.refresh();
	// We don't need the APPLET within IE
	// ***Please note that if you do not need to script events, you can safely remove the next two lines
	document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
	document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E")
}
//-->
