// Java Document
var max = 11;
var nrImages = 10;
function makeImages() {
this[0] = "images/abap1.jpg";
this[1] = "images/abap2.jpg";
this[2] = "images/abap3.jpg";
this[3] = "images/abap4.jpg";
this[4] = "images/abap5.jpg";
this[5] = "images/abap6.jpg";
this[6] = "images/abap7.jpg";
this[7] = "images/abap8.jpg";
this[8] = "images/abap9.jpg";
this[9] = "images/abap10.jpg";




this.length = nrImages;
}
function makeLinks() {
this[0] = "historia.php";
this[1] = "historia.php";
this[2] = "historia.php";
this[3] = "historia.php";
this[4] = "historia.php";
this[5] = "historia.php";
this[6] = "historia.php";
this[7] = "historia.php";
this[8] = "historia.php";
this[9] = "historia.php";



this.length = nrImages;

}
var vetImages = new makeImages();
var vetLinks = new makeLinks();
var x = Math.round(Math.random()*max);
var y = max / nrImages;
for(var cont = 1;cont*y<= max;cont++) {
if (x <= (cont*y)) {
document.write("<a href="+vetLinks[cont-1]+" target=_blank><img src="+vetImages[cont-1]+" border=0></a>");
break;
}
}