// ======================================
// Random Picture Generator for Header
// ======================================


var theImages = new Array() 

theImages[0] = 'images/random/one.jpg'
theImages[1] = 'images/random/two.jpg'
theImages[2] = 'images/random/three.jpg'
theImages[3] = 'images/random/four.jpg'
theImages[4] = 'images/random/five.jpg'
theImages[5] = 'images/random/six.jpg'
theImages[6] = 'images/random/seven.jpg'
theImages[7] = 'images/random/eight.jpg'
theImages[8] = 'images/random/nine.jpg'
theImages[9] = 'images/random/ten.jpg'
theImages[10] = 'images/random/eleven.jpg'
theImages[11] = 'images/random/twelve.jpg'
theImages[12] = 'images/random/thirteen.jpg'
theImages[13] = 'images/random/fourteen.jpg'
theImages[14] = 'images/random/fifteen.jpg'
theImages[15] = 'images/random/sixteen.jpg'
theImages[16] = 'images/random/seventeen.jpg'
theImages[17] = 'images/random/eighteen.jpg'
theImages[18] = 'images/random/nineteen.jpg'
theImages[19] = 'images/random/twenty.jpg'
theImages[20] = 'images/random/twentyone.jpg'
theImages[21] = 'images/random/twentytwo.jpg'
theImages[22] = 'images/random/twentythree.jpg'
theImages[23] = 'images/random/twentyfour.jpg'
theImages[24] = 'images/random/twentyfive.jpg'
theImages[25] = 'images/random/twentysix.jpg'
theImages[26] = 'images/random/twentyseven.jpg'
theImages[27] = 'images/random/twentyeight.jpg'
theImages[28] = 'images/random/twentyninejpg'

// ======================================
// 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]+'">');
}

