// JavaScript Document

var imagenes = new armarvector ("images/headers/mp-header1.jpg", "images/headers/mp-header2.jpg","images/headers/mp-header3.jpg", "images/headers/mp-header4.jpg", "images/headers/mp-header5.jpg");
// Declaramos todas las imagenes
var enlaces = new armarvector ("", "","", "", "");
// Declaramos sus respectivos enlaces

function Imagen_Aleatoria() {
hoy= new Date();
maximo=5; //La cantidad de imagenes que poseemos.
segundos=hoy.getSeconds();
if (segundos==0) {segundos=1}
while (segundos>maximo) {segundos=segundos-maximo}
document.write ('<IMG SRC="'+imagenes[segundos]+'" border=0>');
}
function armarvector (v1, v2,v3,v4,v5) {
this[1]=v1;
this[2]=v2;
this[3]=v3;
this[4]=v4;
this[5]=v5;
}
Imagen_Aleatoria()

// Aquí tenemos nuestro Vector de imagenes, si tuvieramos 6 imagenes o más
// tendriamos que agregar las siguientes líneas.
//Ejemplo:
//--------
// function armarvector (v1, v2,v3,v4,v5,v6) {
// this[1]=v1;
// this[2]=v2;
// this[3]=v3;
// this[4]=v4;
// this[5]=v5;
// this[6]=v6;
// }
// Espero que te sirva de algo...
