<!--
//javascript para urls
function PopupUrl(url, ancho, alto) {
	izquierda = (screen.width) ? (screen.width-ancho)/2 : 100;
	arriba = (screen.height) ? (screen.height-alto)/2 : 100;
	opciones = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=' + ancho + ',height=' + alto + ',left=' + izquierda + ',top=' + arriba + ''
	window.open(url, 'popUp', opciones)
}

//javascript para fotos
var ventana;
var cont=0;

function PopupImg(image) {
	if(cont==1){ventana.close(); ventana=null}
	ventana=window.open('','ventana','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=300')
	ventana.document.write('<html><head><title>' + image.title + '</title></head><body style="margin:3px; text-align:center;" onUnload="opener.cont=0"><img src="' + image.href + '" alt="' + image.title + '" onLoad="opener.redimensionar(this.width, this.height)"><div align=left>' + image.title + '</div></body></html>');
	ventana.document.close();
	cont++;
}
function redimensionar(ancho, alto) {
	ventana.resizeTo(ancho+15,alto+85);
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
}
//-->