<!--//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="560">'
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
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")


// position loupes
var navig= navigator.appCodeName;
//alert(navig);
if (document.all){
document.write('<style type="text/css">#showloupe1{margin-left:8;margin-top:114;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe2{margin-left:8;margin-top:112;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe3{margin-left:8;margin-top:114;position:absolute;visibility:visible;)</style>');
}
if (!document.all){
document.write('<style type="text/css">#showloupe1{margin-left:8;margin-top:41;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe2{margin-left:8;margin-top:39;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe3{margin-left:8;margin-top:41;position:absolute;visibility:visible;)</style>');
}
if (ns6){
document.write('<style type="text/css">#showloupe1{margin-left:8;margin-top:114;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe2{margin-left:8;margin-top:112;position:absolute;visibility:visible;)</style>');
document.write('<style type="text/css">#showloupe3{margin-left:8;margin-top:114;position:absolute;visibility:visible;)</style>');
}

