var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'img/webart/progetto_webart_mater01s.jpg'
theImages[1] = 'img/webart/progetto_webart_mater02s.jpg'
theImages[2] = 'img/webart/progetto_webart_mater03s.jpg'
theImages[3] = 'img/webart/progetto_webart_mater04s.jpg'
theImages[4] = 'img/webart/progetto_webart_mater05s.jpg'
theImages[5] = 'img/webart/progetto_webart_mater06s.jpg'
theImages[6] = 'img/webart/progetto_webart_mater07s.jpg'
theImages[7] = 'img/webart/progetto_webart_mater08s.jpg'
theImages[8] = 'img/webart/progetto_webart_mater09s.jpg'
theImages[9] = 'img/webart/progetto_webart_mater10s.jpg'
theImages[10] = 'img/webart/progetto_webart_mater11s.jpg'
theImages[11] = 'img/webart/progetto_webart_mater12s.jpg'
theImages[12] = 'img/webart/progetto_webart_mater13s.jpg'
theImages[13] = 'img/webart/progetto_webart_mater14s.jpg'
theImages[14] = 'img/webart/progetto_webart_mater15s.jpg'
theImages[15] = 'img/webart/progetto_webart_mater16s.jpg'
theImages[16] = 'img/webart/progetto_webart_mater17s.jpg'
theImages[17] = 'img/webart/progetto_webart_mater18s.jpg'
theImages[18] = 'img/webart/progetto_webart_mater19s.jpg'
theImages[19] = 'img/webart/progetto_webart_mater20s.jpg'
theImages[20] = 'img/webart/progetto_webart_mater21s.jpg'
theImages[21] = 'img/webart/progetto_webart_mater22s.jpg'
theImages[22] = 'img/webart/progetto_webart_mater23s.jpg'


// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
