// Set up the image files to be used.
var theImages = new Array()

theImages[0] = 'http://nccancerstories.org/images/front_evans.jpg'
theImages[1] = 'http://nccancerstories.org/images/front_holbrook.jpg'
theImages[2] = 'http://nccancerstories.org/images/front_boyd.jpg'
theImages[3] = 'http://nccancerstories.org/images/front_jernigan.jpg'
theImages[4] = 'http://nccancerstories.org/images/front_dymond.jpg'
theImages[5] = 'http://nccancerstories.org/images/front_abercrumbie.jpg'
theImages[6] = 'http://nccancerstories.org/images/front_young.jpg'
theImages[7] = 'http://nccancerstories.org/images/front_holton.jpg'
theImages[8] = 'http://nccancerstories.org/images/front_farb.jpg'
theImages[9] = 'http://nccancerstories.org/images/front_davis.jpg'
theImages[10] = 'http://nccancerstories.org/images/front_ward.jpg'
theImages[11] = 'http://nccancerstories.org/images/front_coleman.jpg'
theImages[12] = 'http://nccancerstories.org/images/front_waddell.jpg'

var theName = new Array()

theName[0] = 'Evans'
theName[1] = 'Reece'
theName[2] = 'Bob'
theName[3] = 'Jane'
theName[4] = 'Barbara'
theName[5] = 'Beatrice'
theName[6] = 'Cheryl'
theName[7] = 'Dave'
theName[8] = 'Harriet'
theName[9] = 'Butch'
theName[10] = 'The Wards'
theName[11] = 'LaTeacha'
theName[12] = 'Aurora'

var theStory = new Array()

theStory[0] = 'http://nccancerstories.org/stories/evans.asp'
theStory[1] = 'http://nccancerstories.org/stories/holbrook.asp'
theStory[2] = 'http://nccancerstories.org/stories/boyd.asp'
theStory[3] = 'http://nccancerstories.org/stories/jernigan.asp'
theStory[4] = 'http://nccancerstories.org/stories/dymond.asp'
theStory[5] = 'http://nccancerstories.org/stories/abercrumbie.asp'
theStory[6] = 'http://nccancerstories.org/stories/young.asp'
theStory[7] = 'http://nccancerstories.org/stories/holton.asp'
theStory[8] = 'http://nccancerstories.org/stories/farb.asp'
theStory[9] = 'http://nccancerstories.org/stories/davis.asp'
theStory[10] = 'http://nccancerstories.org/stories/ward.asp'
theStory[11] = 'http://nccancerstories.org/stories/coleman.asp'
theStory[12] = 'http://nccancerstories.org/stories/waddell.asp'

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 whichName = whichImage;
var whichStory = whichImage;


function showImage(){
			document.write('<img src="'+theImages[whichImage]+'" vspace="12"><br><a href="'+theStory[whichStory]+'" class="nameofpatient"><u>Read '+theName[whichName]+'\'\s Story</u></a>' );
	
}


