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.sgzuerich.ch/home_bild/01.jpg",
"http://www.sgzuerich.ch/home_bild/02.jpg",
"http://www.sgzuerich.ch/home_bild/03.jpg",
"http://www.sgzuerich.ch/home_bild/04.jpg",
"http://www.sgzuerich.ch/home_bild/05.jpg",
"http://www.sgzuerich.ch/home_bild/06.jpg",
"http://www.sgzuerich.ch/home_bild/07.jpg",
"http://www.sgzuerich.ch/home_bild/08.jpg",
"http://www.sgzuerich.ch/home_bild/09.jpg",
"http://www.sgzuerich.ch/home_bild/10.jpg",
"http://www.sgzuerich.ch/home_bild/11.jpg"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranimage = image[core];

document.write('<img src=\"'+ranimage+'\" border="0" >');
