//recogemos la url de la foto
function Zoom(foto) {
	//creamos el objeto image
	var win= null;
	var imaxe = new Image;
	imaxe.src = foto;
	//si el ancho y el alto es distinto de cero es que ya está cargada
	if (imaxe.width!=0 && imaxe.height!=0){
		var h=imaxe.height+100;
		var w=imaxe.width+100;
		if (h>600) h=600;
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,fullscreen=no,toolbar=no,location=no,directories=no,status=yes,menubar=auto,resizable=yes';
		gfoto=foto;
		win=window.open("ver.htm","foto",settings);
		if(parseInt(navigator.appVersion) >= 4)	{win.window.focus();}
		imaxe=null
		w=null
		h=null
		winl=null
		wint=null
	}
	else{
		//esperamos 0.5 segundos y empezamos otra vez
		setTimeout("Zoom('"+foto+"')", 500)
	}
}
