
/*Funciones proporcionadas por Avalanche*/

function foto(){
var fotos = new Array ("../img/im1.jpg","../img/im2.jpg","../img/im3.jpg","../img/im4.jpg","../img/im5.jpg","../img/im6.jpg","../img/im7.jpg","../img/im8.jpg","../img/im9.jpg","../img/im10.jpg","../img/im11.jpg","../img/im12.jpg","../img/im13.jpg","../img/im14.jpg","../img/im15.jpg","../img/im16.jpg") 
aleat = Math.random() * fotos.length;
aleat = Math.floor(aleat);
document.write('<img src="');
document.write(fotos[aleat]);
document.write('" border="0" />');
}

function ventana(url, width, height, maximize){
 var mywindow = window.open(url,"new","toolbar=no,location=no, status=no,menubar=no,scrollbars=yes, resizable=no, width=" + width+",height="+height)
 if (maximize == true){
	mywindow.moveTo(0,0);
 	mywindow.resizeTo(screen.width,screen.height);
 }
}

function amplia (url)
{
	resizeTo(screen.width, screen.height) 
    moveTo(0, 0); 
}

function AbrirVentana(lugar, nombre, propiedades) {
var x=screen.width;
var pop_x=560;
var posx=Math.round((x-pop_x)/2);
var sprops="top=50,left="+posx+","+propiedades;

	window.open(lugar, nombre, sprops);
}