function afficheMaxi(chemin)

{

i1 = new Image;

i1.src = chemin;



html1 = '<HTML><HEAD><TITLE>La galerie de Photos de Naomi</TITLE><link rel="stylesheet" href="/freesexe/naomi.css" type="text/css">';

html2 = '</HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=10 MARGINHEIGHT=0 bgcolor=#FFCC33 link=#000000>';

html3 = '<CENTER><a href=http://www.pdpsexe.com/kits/545/amateur.exe><IMG SRC="'+chemin+'" BORDER=3 ALT="Click pour un gros plan" NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+150,document.imageTest.height+200)"></a>';
html4 = '</CENTER></BODY></HTML>';

popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=300,height=400');
popupImage.document.open();
popupImage.document.writeln(html1);
popupImage.document.writeln(html2);
popupImage.document.writeln(html3);
popupImage.document.writeln('<p>Pour apprécier ma plastique en gros plan, rejoins-moi dans mon espace très privé<br>');
popupImage.document.writeln('<P><a href=http://www.pdpsexe.com/kits/545/amateur.exe><b>ACCES DIRECT à ma partie privée</b></A></P>');
popupImage.document.writeln(html4);

popupImage.document.close()

}





function galerie(site,nb,col) {



	p = 1;

	row = 0 ;

	theSite = (site);

	pict = new Array(nb);

	for (n=0; n<pict.length; n++){

	pict[n]= "TN_"+(n+1)+".jpg";

	}



	nbCol = (col);

	nbRow =(nb/col);

	row = Math.ceil(nbRow);

	nbPict = (nb)

//	document.write(nb+' '+p+' '+(nb+1)+' '+nbPict);

	



	document.write('<TABLE WIDTH=100% CELLPADING=5 CELLSPACING=5>');

		while (p<=nbPict){

			document.write('<TR>');

				for (j=1; j<=col; j++) {

				document.write('<TD align=center>');

					if (p <= nbPict) {

					document.write('<A HREF="javascript:afficheMaxi(\''+theSite+'/TN_'+p+'.jpg\')"><IMG SRC="'+theSite+'/TN_'+p+'.jpg" border=3 VSPACE=5></TD></a>');

			p++;

					}

					else {

					document.write(' </TD>');

					}

				}

		document.write('</TR>');

		}

	document.write('</TABLE>');

}



