// JavaScript Document
<!-- Adapted from avascript Source scripts. MH -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

var theImages = new Array() 

// Image array
theImages[0] = 'images/global/index_student2.gif'
theImages[1] = 'images/global/index_student3.gif'
theImages[2] = 'images/global/index_student4.gif'
theImages[3] = 'images/global/index_student5.gif'
theImages[4] = 'images/global/index_student6.gif'
theImages[5] = 'images/global/index_student7.gif'

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));
var PicCurrent = new Image();
PicCurrent.src = theImages[whichImage];

// call this function in the <head> of the document with the changing pic
// (changes image named "ChangingPix"): 
function showImage(){
document["ChangingPix"].src = PicCurrent.src; //
}

