var theImages = new Array() 

theImages[0] = '../images/fotos/dsc00402.jpg'
theImages[1] = '../images/fotos/dsc00514.jpg'
theImages[2] = '../images/fotos/dsc00539.jpg'
theImages[3] = '../images/fotos/dsc00611.jpg'
theImages[4] = '../images/fotos/dsc00645.jpg'
theImages[5] = '../images/fotos/bloqued_01.jpg'
theImages[6] = '../images/fotos/clase_01.jpg'
theImages[7] = '../images/fotos/atrio_01.gif'
theImages[8] = '../images/fotos/cafe_02.jpg'
theImages[9] = '../images/fotos/biblio_02.jpg'
theImages[10] = '../images/fotos/voley_02.jpg'

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]+'">');
}

function showBanner(){
document.write('<img src="'+theImages[(whichImage+0)%10]+'"> <img src="'+theImages[(whichImage+1)%10]+'"> <img src="'+theImages[(whichImage+2)%10]+'"> <img src="'+theImages[(whichImage+3)%10]+'"> <img src="'+theImages[(whichImage+4)%10]+'"> <img src="'+theImages[(whichImage+5)%10]+'">');
}
