//\//////////////////////////////////////////////////////////////////////////////////
//\  imagenes.js version 1.0  --
//\  Copyright Grupo Astronomico Silos de Zaragoza 2003. Todos los derechos reservados.
//\
//\  Por Marta Duenas.  Ultima modificacion 2003-04-12.
//\//////////////////////////////////////////////////////////////////////////////////
//\mini

////////////////////////////////////////////////////////////////////////////////////
// FUNCIONES PUBLICAS
////////////////////////////////////////////////////////////////////////////////////

//----------------------------------------------------------------------------------

// FUNCION fotoWhite(imagen, alto, ancho, texto)

// Argumentos:
// imagen, href de la imagen que queremos salga ampliada
// alto, altura de la imagen
// ancho, anchura de la imagen
// texto, texto informativo sobre la imagen

// Accion:
// Esta funcion escribe una pagina que contiene una tabla de 3 lineas.
// La primera linea contiene la imagen, la segunda el texto, la tercera esta vacia y la
//cuarta el copyright del GAS.
//el fondo es blanco

function fotoWhite(imagen, alto, ancho, texto, info) {

	size_str="";
	if (alto>0 && ancho>0) {
		size_str = "width=" + ancho + " height=" + alto;
	}

  msgWindow = window.open("","ventana2",'top=50,left=50,width=600,height=600,scrollbars=yes,resizable=yes');
  msgWindow.document.write("<html> <head>");
  msgWindow.document.write("<title>GAS, Grupo Astronómico Silos de Zaragoza</title>");
  msgWindow.document.write("</head>");
  msgWindow.document.write("<STYLE type=text/css>A:link {COLOR: #ffffcc; TEXT-DECORATION: none}");
  msgWindow.document.write("A:visited {COLOR: #ffffcc; TEXT-DECORATION: none}");
  msgWindow.document.write("A:hover {COLOR: #ffffcc; TEXT-DECORATION: underline}");
  msgWindow.document.write("</STYLE>");
  msgWindow.document.write("</head><body bgColor=#000000>");
  msgWindow.document.write("<TABLE width=400 height=400 align=center >");
  msgWindow.document.write("<TR><TD align=center><IMG src='" + imagen + "' " + size_str + "></TD></TR>");
  msgWindow.document.write("<TR><TD><FONT face=Verdana color=#ffffff>" + texto + "</FONT></TD></TR>");

	if ('undefined'!=typeof(info))
	  msgWindow.document.write("<TR><TD><FONT face=Verdana color=#ffffff><sub>" + info + "</sub></FONT></TD></TR>");

  msgWindow.document.write("<TR><TD><P>&nbsp;</P><P>&nbsp;</P></TD></TR>");
  msgWindow.document.write("<TR><TD align=left><FONT size=1 face=Verdana color=#ffffff>© Grupo Astronómicos Silos, 2003</font></TD></TR>");
  msgWindow.document.write("<TR><TD align=right><FONT size=1 face=Verdana color=#ffffcc><A onclick=window.close() href=javascript:void(null)>Cerrar ventana</a></font></TD></TR>");
  msgWindow.document.write("</TABLE>");
  msgWindow.document.write("</body></html>");
  msgWindow.document.close();
  msgWindow.focus();
}



//----------------------------------------------------------------------------------

// FUNCION fotoWhite(imagen, alto, ancho, texto)

// Argumentos:
// imagen, href de la imagen que queremos salga ampliada
// alto, altura de la imagen
// ancho, anchura de la imagen
// texto, texto informativo sobre la imagen

// Accion:
// Esta funcion escribe una pagina que contiene una tabla de 3 lineas.
// La primera linea contiene la imagen, la segunda el texto, la tercera esta vacia y la
//cuarta el copyright del GAS.
//el fondo es blanco

function fotoBlack(imagen, alto, ancho, texto) {
  msgWindow = window.open("","ventana2",'width=400,height=500,scrollbars=yes,resizable=yes');
  msgWindow.document.write("<html> <head>");
  msgWindow.document.write("<link rel=stylesheet type='text/css' href='../sty_big_articulos.css'>");
  msgWindow.document.write("<title>GAS, Grupo Astronómico Silos de Zaragoza</title>");
  msgWindow.document.write("</head><body bgcolor='Black'>");
  msgWindow.document.write("<TABLE align=center >");
  msgWindow.document.write("<TR><TD><IMG height=" + alto + " src='" + imagen + "' width=" + ancho + "></TD></TR>");
  msgWindow.document.write("<TR><TD class='pie2'>" + texto + "</TD></TR>");
  msgWindow.document.write("<TR><TD><P>&nbsp;</P><P>&nbsp;</P></TD></TR>");
  msgWindow.document.write("<TR><TD><p class='info2'>© Grupo Astronómicos Silos, 2003</p></TD></TR>");
  msgWindow.document.write("</TABLE>");
  msgWindow.document.write("</body></html>");
  msgWindow.document.close();
  msgWindow.focus();
}




