// JavaScript Document
var _img_grande,tit,ponPie;
function popImg() {
	var alto
	alto=_img_grande.height + 30;
	var ops = "top=" + ((screen.height - _img_grande.height) / 2);
	ops += ",left=" + ((screen.width - _img_grande.width) / 2);
	ops += ",width=" + _img_grande.width + ",height=" + alto;
	var contenido = "<html><title>" + tit + "</title><link href='css/estilosPopImagen.css' rel='stylesheet' type='text/css' /><body onblur='javascript:window.close();'>";
	
	contenido+= "<div align='center'><img name='foto' src='"+_img_grande.src+"' style='display:block'></div>";
	contenido+= "<table border='0' width='100%'><tr><td class='txt' height='30' valign='middle'>"+ponPie+"</td></tr></table>";
	contenido+="</body></html>";

	var ventana = window.open("", "", ops);
	ventana.document.write(contenido);
	ventana.document.close();
	}

function cargando() {
	if (_img_grande.complete) popImg();
	else setTimeout("cargando()", 100);
	}

function popImage(titulo,imagen,pie)	{
	tit = titulo;
	ponPie = pie;
	_img_grande = new Image();
	_img_grande.src = imagen;
	cargando();
}