// Funcion para ver la imagen grande en otra ventana
var win=null;
function mostrarimagen(url_imagen,titulo,ancho,alto){
 	var img = new Image(ancho, alto);
 	img.src = url_imagen;
	win=window.open('','','width='+img.width+',height='+img.height+',scrollbars=no,resizable=1,toolbar=0');
	win.document.write ('<html>\n');
	win.document.write (' <head>\n');
	win.document.write ('  <title>'+titulo+'</title>\n');
	win.document.write (' </head>\n');
	win.document.write (' <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n');
	win.document.write ('  <img src="' + url_imagen + '" height='+img.height+' width='+img.width+'>\n');
	win.document.write (' </body>\n');
	win.document.write ('</html>\n');
}

// Cambiar la imagen aleatoriamente cada vez que se entra
var imagenumber = 3 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
// Definimos un array de imágenes.
images = new Array
images[1] = "img/aleatorio.gif"
images[2] = "img/aleatorio2.gif"
images[3] = "img/aleatorio3.gif"

var image = images[rand1]


