<!-- JavaScript que muestra una imagen Aleatoriamente                     -->
<!-- basado en fuente de PcUsers (http://www.pcusers.com.ar)		  -->
<!-- ACLARACIón: Este Script se puede usar Libremente , es decir la copia -->
<!-- y reproduccion está permitida.  Siempre y cuando mencionen el nombre -->
<!-- del Autor, osea yo. Muchas Gracias.                                  -->
<!-- 								  		              -->
<!-- Autor: Gabriel Rodríguez. 					              -->
<!-- Web Site: http://www.gamarod.com.ar				              -->
<!-- e-mail: gamarod@gamarod.com.ar                                       -->

// Declaramos todas las imagenes 
var images = new createArray ("images/headers/batman-arroba.jpg", "images/headers/cancha-logo.jpg", "images/headers/cesta-penya.jpg", "images/headers/logo-mosaico.jpg", "images/headers/matrix-forera.jpg", "images/headers/pamesa-penya.jpg");

<!-- ruler - here we manage the menu -->

var lsbarPosition = 400; // initial position

function randomImage() {
  today    = new Date();
  maximum  = 6; //La cantidad de imagenes que poseemos.
  seconds  = today.getSeconds();
  if (seconds==0) {
    seconds = 1 
  }
  while (seconds > maximum) {
    seconds = seconds - maximum
  }
  document.write ('<img src="'+images[seconds]+'" alt="Cabecera Penya Forera" />');
}

function createArray (v1, v2, v3, v4, v5, v6) {
 this[1]=v1;
 this[2]=v2;
 this[3]=v3;
 this[4]=v4;
 this[5]=v5;
 this[6]=v6;

}

// 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...

function menuClick(idList,idItem) {
  element = document.getElementById(idList);
  litem = document.getElementById(idItem);
  lsbar = document.getElementById("leftsidebar");
  if (element.style.display == "block") {
    lsbarPosition -= 60;
    lsbar.style.top = lsbarPosition + "px";
    element.style.display="none";
    litem.style.background="url(images/plus.gif) 3% 65% no-repeat";
  } else {
    lsbarPosition += 60;
    lsbar.style.top = lsbarPosition + "px";
    element.style.display="block";
    litem.style.background="url(images/minus.gif) 3% 65% no-repeat";
  }

}

function inputFocused(inputEl) {
  inputEl.style.background='#FFFFFF';
}

function inputBlur(inputEl) {
  inputEl.style.background='#EEEEEE';
}

function buttonPressed(inputEl) {
  inputEl.className='inputButtonPressed';
}

function buttonRelease(inputEl) {
  inputEl.className='inputButton';
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=400');");
}