<!-- The JavaScript Source!! http://javascript.internet.com -->

var theImage = new Array()

theImage[0] = '/home/images/center_image_72_405x400.jpg'
theImage[1] = '/home/images/center_image_72_405x400_2.jpg'
theImage[2] = '/home/images/center_image_72_405x400_3.jpg'

var theLink = new Array()

theLink[0] = '/sch'
theLink[1] = 'http://saturn.emc.maricopa.edu/academics/nasacenter/'
theLink[2] = '/academics'

var j = 0
var p = theImage.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImage[i]
}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="'+theImage[whichImage]+'" name="picture" border="0">');
}

function next() {
 whichImage++;
 if (whichImage <= 2) {
 document.images.picture.src = theImage[whichImage];
 }
 else first();
}

function first() {
 whichImage = 0;
 document.images.picture.src = theImage[whichImage];
}

function linkto(){
 window.location=theLink[whichImage];
}

