var TextD = new Array()
TextD[0] = 'Cunningham Hall Addition'
TextD[1]= 'Neurons stained and visualized using confocal laser microscopy'
TextD[2] = 'Dr. Gail Fraizer'
TextD[3] = 'Pollen-filled anther from yellow monkey flower'
TextD[4] = 'Procambarus crayfish'
TextD[5] = ''
TextD[6] = 'Art and Margaret Herrick Aquatic Ecology Research Facility'
TextD[7] = 'Confocal Micrograph of blood vessel in parietal cortex'
TextD[8] = '3-d Classroom used to view stereoscopic images'
TextD[9] = ''
TextD[10] = 'Disodium chromoglycate'
TextD[11] = 'Daphnia pulex'
TextD[12] = 'Bacterial colonies growing on petri plate'
TextD[13] = 'Histologic section of testis'
TextD[14] = 'Graduate students at Jennings Woods'
TextD[15] = 'Microtubules'
TextD[16] = 'Mormon cricket with radio tag'
TextD[17] = 'Pyramidal cells from parietal cortex'
TextD[18] = 'Pseudomonas bacteria biofilm viewed using confocal laser microscopy'
TextD[19] = 'Dr. Darren Bade conducting Research aboard the Lake Guardian'
TextD[20] = 'Dr. Oscar Rocha and Dr. Ferenc De Szalay'
TextD[21] = 'University of Costa Rica.  Students taking Tropical Field Biology and Conservation visit Costa Rica each year.'
TextD[22] = 'Histologic section of ovary'

//////////
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
var PN = 23
var k = 0 
var r=0
for ( k=0; k<PN; k++)
{
theImages[k] = 'PreFaceImages/'+(k+1)+'.jpg'
}


// do not edit anything below this line

var i = 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]+'">');
function showImage()
{
document.write('<img src="'+theImages[whichImage]+'" width="350px" height="250px"  align="center" style="border:none;  display:block;"/>');
}
function showText()
{
//document.write('<p>'+ TextD[whichImage]+'<p/>');
document.write('<p>'+ TextD[whichImage]+'<p/>');
}

///////////
