function OuvrePhoto(image)
{
	photo1 = new Image();
	photo1.src = image;
	ControlePhoto(image);
}

function ControlePhoto(image)
{
	if((photo1.width == 0) && (photo1.height == 0))
	{
		fonction = "ControlePhoto('" + image + "')";
		setTimeout(fonction, 250);
	}
	else
		AffichePhoto(photo1);
}

function AffichePhoto(photo)
{
	largeur = photo.width + 20;
	longueur = photo.height + 20;
	proprietes = "width=" + largeur +",height=" + longueur;
	window.open(photo.src, "", proprietes);
}
