function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function effetDiv(calque, quand){
	// recup du calque multi browsers
	var qc = new getObj(calque);
	// et hop go go go go
	switch (quand){
		case 'over' :
			qc.style.mozOpacity = '0.75';
			break;
		case 'out' :
			qc.style.mozOpacity = '1';
			break;
		}
}
function PopupImage(img) {
	titre="Zoom sur ...";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes,status=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	w.document.write("<SC"+"RIPT language=java"+"script> function checksize()  { if (document.images['img'].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+35); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT></HEAD>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0 name='img'>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}