function change(obj,color)
 {
   obj.style.background = color ;
 }
 
 function enlarge(t,l,h,pot,l0,h0,e,txt){
var h2=(h0+60)
var l2=l0
if (l>420 )
	{ h=h/l*420; l=420;}  
var lrg=screen.availWidth;
if (lrg>800) decd=(lrg-804)/2; 
else decd=0;	
//Render image code for IE 4+
if (document.layers){
document.showimage.document.write('<a href=#><table border="0" width="590" height="415" valign="top" align="center"cellpadding=5>');
document.showimage.document.write('<tr valign="top"><td  style="cursor: hand;" onclick="ferm()" oncontextmenu="ferm()"  ><td><img src="../images/1pix.gif" width=1 border=0></td>');
document.showimage.document.write('<a href="#"><img id=img src="galerie_images/'+pot+'"  width="'+l+'" heigth="'+h+'" border="0" ></a>');
document.showimage.document.write('</td>td valign=middle>'+t+'</td></tr></table></a>');
document.showimage.document.close();
document.showimage.left=decd;
document.showimage.top=120;
document.showimage.visibility="show";
}
else
{

document.getElementById("showimage").style.left=decd;
document.getElementById("showimage").style.top=120 ;
document.getElementById("showimage").innerHTML='<a href=#><table border="0" width="590" title="Fermer" style="cursor: hand" onclick="ferm()" oncontextmenu="ferm()" height="315" valign="top" cellpadding=8><tr valign="top" ><td><img src="../images/1pix.gif" width=1 border=0></td>'
												+'<td  style="cursor: hand;"  ><img id="img" src="'+pot+'"  width="'+l+'" heigth="'+h+'" border="0">'
												+'</td><td width="280" valign=middle>'+t+'</td></tr></table></a>';
document.getElementById("showimage").style.visibility="visible";
document.getElementById("copy").style.visibility="hidden";
}

return true
}

function ferm()
{
showimage.style.visibility="hidden"; 
document.getElementById("copy").style.visibility="visible";
}
