﻿// JScript File
// Set up the image files to be used.
var theImages = new Array() // do not change this
var EventImages = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '1.gif'
theImages[1] = '2.gif'
theImages[2] = '3.gif'
theImages[3] = '4.gif'
theImages[4] = '5.gif'
theImages[5] = '6.gif'
theImages[6] = '7.gif'
theImages[7] = '8.gif'
theImages[8] = '9.gif'
theImages[9] = '10.gif'

// do not edit anything below this line

EventImages[0] = 'images/Education1.jpg'
EventImages[1] = 'images/Education2.jpg'
EventImages[2] = 'images/Education3.jpg'
EventImages[3] = 'images/Education4.jpg'
EventImages[4] = 'images/Education5.jpg'
EventImages[5] = 'images/Education6.jpg'
EventImages[5] = 'images/Education7.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 eventBuffer = new Array()
var p1 = EventImages.length;
var z = 0
for (i=0; i < p1; i++){
   eventBuffer[i] = new Image()
   eventBuffer[i].src = EventImages[i]
}


var whichImage = Math.round(Math.random()*(p-1));
var thisImage = Math.round(Math.random()*(p1-1));

function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

function showEventImage(){
document.write('<img src="'+EventImages[thisImage]+'">');
}



