// JavaScript Document
// <![CDATA[ 
var ie=document.all
var ns6=document.getElementById&&!document.all

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

function zoom2(imgwidth, contenu , alt_image , which, e, position, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
// ICI POUR REGLER LA POSITION DE LA LOUPE PAR RAPPORT A LA PAGE
crossobj.style.left=280+"px"
crossobj.style.top=80+"px"

crossobj.innerHTML='<div align="right" id="dragbar" class="txt-bold"><span id="closetext" onClick="closepreview()">&raquo; Fermer &nbsp;&nbsp;</span></div><img src="'+which+' " alt="'+alt_image+'"><div align="left" class="txt-bold" style="padding-left:5px; width:'+imgwidth+'px; background-color:#0080C0; color:#FFFFFF;"><span>'+contenu+'</span></div>'
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 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")

function image_zoom(img){	
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}
 //]]>