function F_AfficherPhoto(sp_Rep,sp_Photo,np_Hauteur,np_Largeur,sp_Sound) {
img = sp_Rep + "/" + sp_Photo;
imgnulle = sp_Rep + "/transparent 1.jpg";
titre=sp_Photo; 
//if (sp_Sound != '') {
w=open("",'image','width='+np_Largeur+',height='+np_Hauteur+',toolbar=no,scrollbars=no,resizable=0,menubar=no,status=no,directories=no,copyhistory=yes,location=no,top='+(screen.height-np_Hauteur)/2+',left='+(screen.width-np_Largeur)/2); 
//} else {
//w=open("",'image','width='+10+',height='+10+',toolbar=no,scrollbars=no,resizable=0,menubar=no,status=no,directories=no,copyhistory=yes,location=no,top='+(screen.height-10)/2+',left='+(screen.width-10)/2); 
//}
/*
W=open("","_blank"," fullscreen=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=0, copyhistory=yes, width=1, height=1");
w=open("",'image','width=20,height=20,toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no);
w=open("",'image','width=10,height=10,toolbar=no,scrollbars=no,resizable=no,top=10,left=10');
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no,top='+(screen.width - np_Largeur)/2+',left='+(screen.height - np_Hauteur)/2); 
w=open("",'image','toolbar=no,scrollbars=no,resizable=no');
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no,top=200,left=200'); 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=n,resizable=no,top=250,left=200'); 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no,top='+(screen.width - np_Largeur)/2+',left='+(screen.height - np_Hauteur)/2); 
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no,top='+(screen.width - np_Largeur)/2+',left='+screen.height/4); 
alert(navigator.appName+navigator.appVersion);
	s_Version=navigator.appVersion.substr(16,9);
	alter('x'+s_Version+'x');
n=document.images[0].height+30;

*/


w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>"); 
//w.document.write("<link rel='stylesheet' href='thumbnailviewer.css' type='text/css' />");
//w.document.write("<script src='thumbnailviewer.js' type='text/javascript'></script>");
w.document.write("</HEAD>"); 

w.document.write("<script language=JavaScript>"); 

w.document.write("var message='cliquer sur YYYYY  pour fermeer';");

w.document.write("function clickIE4(){");
w.document.write("if (event.button==2){");
w.document.write("return false;");
w.document.write("}");
w.document.write("}");

w.document.write("function clickNS4(e){");
w.document.write("if (document.layers||document.getElementById&&!document.all){");
w.document.write("if (e.which==2||e.which==3){");
w.document.write("return false;");
w.document.write("}");
w.document.write("}");
w.document.write("}");

w.document.write("if (document.layers){");
w.document.write("document.captureEvents(Event.MOUSEDOWN);");
w.document.write("document.onmousedown=clickNS4;");
w.document.write("}");
w.document.write("else if (document.all&&!document.getElementById){");
w.document.write("document.onmousedown=clickIE4;");
w.document.write("}");
w.document.write("document.oncontextmenu=new Function('window.close();return false')");

w.document.write("</script>");

//w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write('<SCRIPT language"JavaScript1.1">');
//w.document.write('function F_Proteger()');
//w.document.write('{');
//w.document.write('alert("Photo protégée");');
//w.document.write('window.close();');
//w.document.write('}');
//w.document.write('</SCRIPT>');
//w.document.write("<BODY onblur='window.close()' onclick="F_Proteger();" leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY onblur='F_Proteger();' onclick='F_Proteger();' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY onblur='window.close();' onclick='window.close();' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY onblur='window.close();' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY 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("<BODY onblur='window.close();window.close();' onclick='window.close();window.close();' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
//w.document.write("<BODY 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'>");
//if (sp_Sound != '') {
w.document.write("<IMG src='"+img+"' border=0 alt='"+sp_Photo+"'>"); 
//} else {
//w.document.write("<a id='first' href='"+$img+"' rel='thumbnail'><IMG src='"+img+"' border=0 alt='"+sp_Photo+"'></a>"); 
//w.document.write("<a id='first' href='photos/fischer/Bleu_0442.jpg' rel='thumbnail'><IMG src='photos/fischer/Bleu_0442.jpg'></a>");
//}
//w.document.write("<TD background='"+img+"' valign='middle' align='center'><IMG src='"+imgnulle+"' border=0 alt='"+sp_Photo+"'>"); 
//w.document.write("<TD background='"+img+"' valign='middle' align='center' width='"+np_Largeur+"' height='"+np_Hauteur+"' ><IMG src='"+imgnulle+"' border=0>"); 
//w.document.write("<TD valign='middle' align='center'><span style='background-image: url("+img+")'><IMG src='"+imgnulle+"' border=0 alt='"+sp_Photo+"'></span>"); 
//w.document.write("<TD valign='middle' align='center'><span style='background-image: url("+img+")'><IMG src='"+imgnulle+"' border=0></span>"); 
//w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"'><IMG src='"+imgnulle+"' width='200' height='150' style='position:relative;left:-102px; top:0px;' border=0 alt='"+sp_Photo+"'>"); 
//w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"'><IMG src='"+imgnulle+"' width='200' height='150' style='position:relative;left:-102px; top:0px;' border=0 >"); 
w.document.write("</TD></TR></TABLE>");
if (sp_Sound != '') {
//w.document.write("<object type='application/x-shockwave-flash' data='dewplayer.swf?mp3=agas.mp3&amp;autostart=1' width='150' height='20'><param name='movie' value='dewplayer.swf?mp3=agas.mp3&amp;autostart=1' /></object>");
w.document.write("<object type='application/x-shockwave-flash' data='dewplayer.swf?mp3="+sp_Sound+"&amp;autostart=1' width='150' height='20'><param name='movie' value='dewplayer.swf?mp3="+sp_Sound+"&amp;autostart=1' /></object>");
}
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 

/*

	var img = document.createElement('img');
	img.src = sp_Rep + "/" + sp_Photo;
	var n_Largeur=img.images[0].width+36;
	var n_Hauteur=img.document.images[0].height+34;
	var n_Winl = (screen.width - n_Largeur) / 2;
	var n_Wint = (screen.height - n_Hauteur) / 2;
/*
	if (navigator.appName == 'Netscape'){
		n_Largeur=np_Largeur;
		n_Hauteur=np_Hauteur;
	} else {
	}

	alert(navigator.appName+n_Largeur);

	date_t = new Date;
	d_Time = date_t.getTime();
	 s_Winprops = 'height='+n_Hauteur+',width='+n_Largeur+',top='+n_Wint+',left='+n_Winl+',scrollbars=1,resizable,leftMargin=0 topMargin=0 marginwidth=0 marginheight=0'
	s_Fenetre = window.open('', d_Time, s_Winprops)
	s_Fenetre.document.open();
	s_Texte="<html>\n<head>\n<title>" + sp_Photo + "</title>\n</head>\n" +
"<body>\n" +
"<img src='" + sp_Rep + "/" + sp_Photo + "'alt='" + sp_Photo + "'/>\n" +
"</body>\n</html>";
	s_Fenetre.document.write(s_Texte);
	s_Fenetre.document.close();
}
*/
