var currentdate = 0;
var core = 0;

function initArray() {

this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}

image = new initArray(
"http://www.fiomat.com/images/topimagen-1-1.jpg",
"http://www.fiomat.com/images/topimagen-1-2.jpg",
"http://www.fiomat.com/images/topimagen-1-3.jpg",
"http://www.fiomat.com/images/topimagen-1-4.jpg",
"http://www.fiomat.com/images/topimagen-1-5.jpg",
"http://www.fiomat.com/images/topimagen-1-6.jpg",
"http://www.fiomat.com/images/topimagen-1-7.jpg",
"http://www.fiomat.com/images/topimagen-1-8.jpg",
"http://www.fiomat.com/images/topimagen-1-9.jpg"
);

text = new initArray(
"http://www.fiomat.com/images/topimagen-2-1.png",
"http://www.fiomat.com/images/topimagen-2-2.png",
"http://www.fiomat.com/images/topimagen-2-3.png",
"http://www.fiomat.com/images/topimagen-2-4.png",
"http://www.fiomat.com/images/topimagen-2-5.png",
"http://www.fiomat.com/images/topimagen-2-6.png",
"http://www.fiomat.com/images/topimagen-2-7.png",
"http://www.fiomat.com/images/topimagen-2-8.png",
"http://www.fiomat.com/images/topimagen-2-9.png"
);

alt = new initArray(
"Bowfire",
"Maldito Corazon Bendito",
"Mariachi Vargas de Tecatitlan",
"Ara Macao Latin Dance",
"Presidance Ballet Company",
"El Barbero de Sevilla",
"Ballet Folklorico de Mexico de Amalia Hernandez",
"El Quijote",
"Sergio Cardenas con la Orquesta Sinfonica de la UNAM"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranimage = image[core];
var rantext  = text[core];
var ranalt  = alt[core];

document.write('<table style="width: 100%" cellspacing="0" cellpadding="0"><tr><td><img src="'+ranimage+'" title="'+ranalt+'" width="677" height="94" /></td></tr><tr><td><a href="http://www.fiomat.com/homenaje.htm"><img src="http://www.fiomat.com/images/boton-homenaje-1.jpg" width="135" height="37" oversrc="http://www.fiomat.com/images/boton-homenaje-2.jpg" style="border-width:0" /></a><a href="http://www.fiomat.com/reconocimiento.htm"><img src="http://www.fiomat.com/images/boton-reconocimientos-1.jpg" width="135" height="37" oversrc="http://www.fiomat.com/images/boton-reconocimientos-2.jpg" style="border-width:0" /></a><a href="http://www.fiomat.com/sedes.htm" class="menuanchorclass" rel="anylinkmenu2" data-image="http://www.fiomat.com/images/boton-sedes-1.jpg" data-overimage="http://www.fiomat.com/images/boton-sedes-2.jpg"><img src="http://www.fiomat.com/images/boton-sedes-1.jpg" style="border-width:0" width="136" height="37" /></a><a href="http://www.fiomat.com/programa.htm" class="menuanchorclass" rel="anylinkmenu3" data-image="http://www.fiomat.com/images/boton-programa-1.jpg" data-overimage="http://www.fiomat.com/images/boton-programa-2.jpg"><img src="http://www.fiomat.com/images/boton-programa-1.jpg" style="border-width:0" width="136" height="37" /></a><a href="http://www.fiomat.com/patrocinadores.htm"><img src="http://www.fiomat.com/images/boton-patrocinadores-1.jpg" width="136" height="37" oversrc="http://www.fiomat.com/images/boton-patrocinadores-2.jpg" style="border-width:0" /></a></td></tr><tr><td><img src="'+rantext+'" title="'+ranalt+'" width="677" height="140" /></td></tr></table>');