﻿// JavaScript Document
var max = 18
var nrImages = 19;
function makeImages() {
this[0] = "fotos/foto_01.jpg";
this[1] = "fotos/foto_02.jpg";
this[2] = "fotos/foto_03.jpg";
this[3] = "fotos/foto_04.jpg";
this[4] = "fotos/foto_05.jpg";
this[5] = "fotos/foto_06.jpg";
this[6] = "fotos/foto_07.jpg";
this[7] = "fotos/foto_08.jpg";
this[8] = "fotos/foto_09.jpg";
this[9] = "fotos/foto_10.jpg";
this[10] = "fotos/foto_11.jpg";
this[11] = "fotos/foto_12.jpg";
this[12] = "fotos/foto_13.jpg";
this[13] = "fotos/foto_14.jpg";
this[14] = "fotos/foto_15.jpg";
this[15] = "fotos/foto_16.jpg";
this[16] = "fotos/foto_17.jpg";
this[17] = "fotos/foto_18.jpg";
this[18] = "fotos/foto_19.jpg";
}
function makeLinks() {
this[0] = "";
this[1] = "";
this[2] = "";
this[3] = "";
this[4] = "";
this[5] = "";
this[6] = "";
this[7] = "";
this[8] = "";
this[9] = "";
this[10] = "";
this[11] = "";
this[12] = "";
this[13] = "";
this[14] = "";
this[15] = "";
this[16] = "";
this[17] = "";
this[18] = "";
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("<img src="+vetImages[cont-1]+" border=0>");
break;
}
}


