// JavaScript Document
var theImages = new Array() 

theImages[0] = '../images/carlospi_ok_01.jpg'
theImages[1] = '../images/carlospi_ok_02.jpg'
theImages[2] = '../images/carlospi_ok_03.jpg'
theImages[3] = '../images/carlospi_ok_04.jpg'
theImages[4] = '../images/carlospi_ok_05.jpg'
theImages[5] = '../images/carlospi_ok_06.jpg'
theImages[6] = '../images/carlospi_ok_07.jpg'
theImages[7] = '../images/carlospi_ok_08.jpg'
theImages[8] = '../images/carlospi_ok_09.jpg'
theImages[9] = '../images/carlospi_ok_10.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]+'">');
}


