// JavaScript Document

var _img_grande;
	
function mostrar() {

	var ops = "top=" + ((screen.height - _img_grande.height) / 2);
	ops += ",left=" + ((screen.width - _img_grande.width) / 2);
	ops += ",width=" + _img_grande.width + ",height=" + _img_grande.height;
	var contenido = "<html><body style='margin:0;'><img src='" + _img_grande.src + "'></body></html>";
	var ventana = window.open("", "", ops);
	ventana.document.write(contenido);
	ventana.document.close();
}
	
function cargando() {
	
	if (_img_grande.complete) mostrar();
	
	else setTimeout("cargando()", 100);
      
}
	
function abrir(imagen)	{
				
	_img_grande = new Image();
	_img_grande.src = imagen;
	cargando();

}
function abrir_html(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){
     var opciones = "fullscreen=" + pantallacompleta +
                 ",toolbar=" + herramientas +
                 ",location=" + direcciones +
                 ",status=" + estado +
                 ",menubar=" + barramenu +
                 ",scrollbars=" + barrascroll +
                 ",resizable=" + cambiatamano +
                 ",width=" + ancho +
                 ",height=" + alto +
                 ",left=" + izquierda +
                 ",top=" + arriba;
     var ventana = window.open(direccion,"venta",opciones,sustituir);

}  