
onload = function() {

// DAMOS DE ALTA EL ARRAY DE IMAGENES QUE QUEREMOS QUE SE MUESTREN EN EL BACKGROUND
images = new Array("http://www.udp.cl/faad/img/fnd.jpg", "http://www.udp.cl/faad/img/fnd2.jpg", "http://www.udp.cl/faad/img/fnd3.jpg", "http://www.udp.cl/faad/img/fnd4.jpg", "http://www.udp.cl/faad/img/fnd5.jpg", "http://www.udp.cl/faad/img/fnd6.jpg");

// ESTO ES LO QUE VA A SACAR UN NUMERO AL AZAR
rand = Math.floor(Math.random()*images.length);

// DEFINIMOS "IMAGEN" PARA LA IMAGEN AL AZAR QUE YA HEMOS SACADO
imagen = images[rand];

// AHORA ASIGNAMOS EL BACKGROUND AL BODY
document.body.style.background = "url("+imagen+") no-repeat fixed center center";
}


