// fonction pour l'affichage de la popup photo
function photo(repertoire,filename,titre,auteur) {
  // Compatible IE5+ / NN6+ / Mozilla
  oFenetre = window.open('','Image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes');
  oFenetre.document.write("<html><head><title>"+titre+"</title></head>"); 
  oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() {");
  oFenetre.document.write(" if (document.images[0].complete) { ");
  oFenetre.document.write("window.resizeTo(document.images[0].width+29,document.images[0].height+63);");
  oFenetre.document.write(" window.focus();} else { setTimeout('twAjustePopUp()',1000) } }</"+"script>");
  oFenetre.document.write("<body onload='twAjustePopUp()' onblur='window.close()' onclick='window.close()'"); 
  oFenetre.document.write(" leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
  oFenetre.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'>"); 
  oFenetre.document.write("<tr><td valign='middle' align='center'>");
  oFenetre.document.write("<img src='"+repertoire+filename+"' border='0' alt='"+auteur+"' title='"+auteur+"'>");
  oFenetre.document.write("</td></tr></table></body></html>"); 
  oFenetre.document.close(); 
}  
// fonction pour l'affichage d'une popup window
// les arguments sont thePage,theTarget,theWidth,theHeight,showToolbar
function winpopup() {
	a=arguments;
	var thePage = a[0]||null;
	var theTarget = a[1]||null;
	var theWidth = a[2]||null;
	var theHeight = a[3]||null;
	var showToolbar = a[4]||null;
	if( !thePage ) thePage = "error404.html"
	if( !theTarget ) theTarget = Math.round(Math.random()*10000000000000)
	if( !theWidth ) theWidth=634;
	if( !theHeight ) theHeight = 450;
	if( !showToolbar ) showToolbar = "no";
	if( thePage == "" ) thePage = "error404.html";
	if( theTarget == "" ) theTarget = Math.round(Math.random()*10000000000000);
	if( theWidth == "" ) theWidth=634;
	if( theHeight == "" ) theHeight = 450;
	if( showToolbar == "" ) showToolbar = "no";
	popup = window.open(thePage,theTarget,'toolbar=' + showToolbar + ',location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=' + theWidth + ',height=' + theHeight);
	if (popup != null)
	{
		if (popup.opener == null)
		{
			popup.opener = self;
		}
		popup.location.href = thePage;
	}
}
