// JavaScript Document

function twPopupImage(img, titre, auteur) { 
  // Compatible IE5+ / NN6+ / Mozilla
  oFenetre = window.open('','Image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');
  oFenetre.document.write("<html><head><title>"+titre+"</title></head>"); 
  oFenetre.document.write("<script type=\"text/javascript\">function twAjustePopUp() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+20,document.images[0].height+80); window.focus();} else { setTimeout('twAjustePopUp()',1000) } }</"+"script>");
  oFenetre.document.write("<body onload='twAjustePopUp()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 bgcolor=\"#FFFFFF\">"); 
  oFenetre.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><tr><td valign='middle' align='center'>"); 
  oFenetre.document.write("<img src='"+img+"' border='1' alt='"+titre+"' title='"+titre+"' style='border-color:#D7AF2B'>");
  oFenetre.document.write("<div style='font-family:verdana; font-size: 11px;	font-style: italic;	color: #808080;	text-align: center;'>"+titre+" "+auteur+"</div>");
  oFenetre.document.write("</td></tr></table></body></html>"); 
  oFenetre.document.close();
} 

