function makeArray(n) {
this.length = n;
for (var i=1; i<=n; i++) {
this[i] = ""; 
}
return this;
}
var i;
function imagealeatoire() {
i = Math.floor(30 * Math.random() + 1);
return image[i];
}
image = new makeArray(7);
image[1]="bilder/topbild1.jpg";
image[2]="bilder/topbild2.jpg";
image[3]="bilder/topbild3.jpg";
image[4]="bilder/topbild4.jpg";
image[5]="bilder/topbild5.jpg";
image[6]="bilder/topbild6.jpg";
image[7]="bilder/topbild7.jpg";
image[8]="bilder/topbild8.jpg";
image[9]="bilder/topbild9.jpg";
image[10]="bilder/topbild10.jpg";
image[11]="bilder/topbild11.jpg";
image[12]="bilder/topbild12.jpg";
image[13]="bilder/topbild13.jpg";
image[14]="bilder/topbild14.jpg";
image[15]="bilder/topbild15.jpg";
image[16]="bilder/topbild16.jpg";
image[17]="bilder/topbild17.jpg";
image[18]="bilder/topbild18.jpg";
image[19]="bilder/topbild19.jpg";
image[20]="bilder/topbild20.jpg";
image[21]="bilder/topbild21.jpg";
image[22]="bilder/topbild22.jpg";
image[23]="bilder/topbild23.jpg";
image[24]="bilder/topbild24.jpg";
image[25]="bilder/topbild25.jpg";
image[26]="bilder/topbild26.jpg";
image[27]="bilder/topbild27.jpg";
image[28]="bilder/topbild28.jpg";
image[29]="bilder/topbild29.jpg";
image[30]="bilder/topbild30.jpg";
document.write("<img src=" +imagealeatoire() +" width='992' height='150' alt='' />");
