// JavaScript Document
<!--

// ==============================================

// Codigo random

// ==============================================

var theImages = new Array() 

// parametro de incremento theImages[x]

theImages[0] = 'randomimages/random2.jpg'

theImages[1] = 'randomimages/random1.jpg'

theImages[2] = 'randomimages/random3.jpg'

theImages[3] = 'randomimages/random4.jpg'

theImages[4] = 'randomimages/random5.jpg'

theImages[5] = 'randomimages/random6.jpg'

theImages[6] = 'randomimages/random7.jpg'

theImages[7] = 'randomimages/random8.jpg'

theImages[8] = 'randomimages/random9.jpg'

theImages[9] = 'randomimages/random10.jpg'

theImages[10] = 'randomimages/random11.jpg'

theImages[11] = 'randomimages/random12.jpg'

theImages[12] = 'randomimages/random13.jpg'

theImages[13] = 'randomimages/random14.jpg'

theImages[14] = 'randomimages/random15.jpg'

theImages[15] = 'randomimages/random16.jpg'

theImages[16] = 'randomimages/random17.jpg'

theImages[17] = 'randomimages/random18.jpg'

theImages[18] = 'randomimages/random19.jpg'

theImages[19] = 'randomimages/random20.jpg'

theImages[20] = 'randomimages/random21.jpg'

theImages[21] = 'randomimages/random22.jpg'

theImages[22] = 'randomimages/random23.jpg'

theImages[23] = 'randomimages/random24.jpg'

theImages[24] = 'randomimages/random25.jpg'

theImages[25] = 'randomimages/random26.jpg'

theImages[26] = 'randomimages/random27.jpg'

theImages[27] = 'randomimages/random28.jpg'

theImages[28] = 'randomimages/random29.jpg'

theImages[29] = 'randomimages/random30.jpg'

theImages[30] = 'randomimages/random31.jpg'


// ======================================

// fin del código para generar random

// ======================================

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

}
//-->
