// Set up the image files to be used.
var theImages = new Array();
var theAlt = new Array();

theImages[0] = "yr2009/mg_01.jpg";
theAlt[0] = "Greek Drama";

theImages[1] = "yr2009/mg_02.jpg";
theAlt[1] = "Scarves";

theImages[2] = "yr2009/mg_03.jpg";
theAlt[2] = "School Building";

theImages[3] = "yr2009/mg_04.jpg";
theAlt[3] = "Computer girls";

theImages[4] = "yr2009/mg_05.jpg";
theAlt[4] = "Singers";

theImages[5] = "yr2009/mg_06.jpg";
theAlt[5] = "Dancers";

theImages[6] = "yr2009/mg_07.jpg";
theAlt[6] = "Diversity Crowd";

theImages[7] = "yr2009/mg_08.jpg";
theAlt[7] = "School Youth Week";


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="../media/images/common/'+theImages[whichImage]+'" alt="'+theAlt[whichImage]+'" title="'+theAlt[whichImage]+'" width="300" height="200" />');
}
