<!--//BEGIN Script
function twPopupImage(img, titre, auteur) { 
  // Compatible IE5+ / NN6+ / Mozilla
  oFenetre = window.open('','Image','width=800,height=600,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='"+img+"' border='0' alt='"+auteur+"' title='"+auteur+"'>");
  oFenetre.document.write("</td></tr></table></body></html>"); 
  oFenetre.document.close(); 
} 

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

function zoom2(which, e, numann, position, imgwidth, imgheight){
var anndiv = "affichephoto" + numann
if (ie||ns6){
crossobj=document.getElementById? document.getElementById(anndiv) : document.all.affichephoto&&numann
// ICI POUR REGLER LA POSITION DE LA LOUPE PAR RAPPORT A LA PAGE
crossobj.style.left=0+"px"
crossobj.style.top=0+"px"

crossobj.innerHTML='<img src="'+which+'" width="530">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, affiche image ds le navigateur en pleine page
return true
}


function nozoom2(which, e, numann, position, imgwidth, imgheight){
var anndiv = "affichephoto" + numann
if (ie||ns6){
crossobj=document.getElementById? document.getElementById(anndiv) : document.all.affichephoto&&numann
crossobj.innerHTML=''
crossobj.style.visibility="hidden"
return false
}
else //if NOT IE 4+ or NS 6+, affiche image ds le navigateur en pleine page
return false
}

