﻿// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/topGraphic.jpg'
theImages[1] = 'images/topGraphic2.jpg'
theImages[2] = 'images/topGraphic3.jpg'
theImages[3] = 'images/topGraphic4.jpg'
theImages[4] = 'images/topGraphic5.jpg'
theImages[5] = 'images/topGraphic6.jpg'
theImages[6] = 'images/topGraphic7.jpg'

// do not edit 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]+'">');
}



// Set up the image files to be used.
var distImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

distImages[0] = 'images/dist1.gif'
distImages[1] = 'images/dist2.gif'
distImages[2] = 'images/dist3.gif'
distImages[3] = 'images/dist4.gif'

// do not edit anything below this line

var j = 0
var p = distImages.length;
var distBuffer = new Array()
for (i = 0; i < p; i++){
   distBuffer[i] = new Image()
   distBuffer[i].src = distImages[i]
}
var thisImage = Math.round(Math.random()*(p-1));
function showDistImage(){
document.write('<img src="'+distImages[thisImage]+'">');
}