/*
	*********************************************************************
	*	Scripts for ed/psych randomizer						   *
	*	Created - 2/26/07 by oyenj							   *
	*********************************************************************
*/


//Build an Array of descriptions
var theDescription = new Array()
theDescription[0] = 'Imagine the day future educators are mentored by master teachers in the field for 3 years ... that day is today.'
theDescription[1] = 'Imagine the day a cutting edge model for preparing educators is developed that exists no where else in the state of Iowa ... that day is today.'
theDescription[2] = 'Imagine the day math and science educators are prepared through intense collaborations of education, math and science faculties ... that day is today.'
theDescription[3] = 'Imagine the most effectively prepared educators in the United States ...'
theDescription[4] = 'Imagine the day a world class undergraduate psychology department sends 60% of its graduates on to obtain at least a Masters Degree, 25-30% directly out of college ... that day is today'
theDescription[5] = 'Imagine the day an undergraduate program sends 15% of its graduates on to Ph.D.&rsquo;s or equivalent degrees when the national average is 1% ... that day is today.'
theDescription[6] = 'Imagine the day community-based learning fosters a community of collaborative learners who value civic responsibility, critical thinking and diversity ... that day is today.'
theDescription[7] = 'Imagine the day 250 students who serve at more than 60 community sites each semester ... that day is today.'


//Now Randomize
var p = theDescription.length

/*var preBuffer = new Array()
for (i=0; i<p; i++){
		preBuffer[i] = new Image()
		preBuffer[i].src = theDescription[i]
}*/

//Get random image
var whichImage = Math.round(Math.random()*(p-1));

//Write the image and alt tag code to the document
function showDesc(){
	document.write('<p>' + theDescription[whichImage]+'</p>');
}

