// JavaScript Document

<!-- Based on a script from The JavaScript Source!! http://javascript.internet.com -->
<!-- modified by Chris Roark -->


// Image array
var theImages = new Array()

theImages[0] = 'images/index_pics/index_00.jpg'
theImages[1] = 'images/index_pics/index_01.jpg'
theImages[2] = 'images/index_pics/index_02.jpg'
theImages[3] = 'images/index_pics/index_03.jpg'
theImages[4] = 'images/index_pics/index_04.jpg'
theImages[5] = 'images/index_pics/index_05.jpg'
theImages[6] = 'images/index_pics/index_06.jpg'
theImages[7] = 'images/index_pics/index_07.jpg'
theImages[8] = 'images/index_pics/index_08.jpg'
theImages[9] = 'images/index_pics/index_09.jpg'
theImages[10] = 'images/index_pics/index_10.jpg'

// Text array
var theText = new Array()

theText[0] = 'AERDO member, Samaritan\'s Purse, provided these water filters to IDP camps in Southern Sudan'
theText[1] = 'AERDO member, EMI, set up water systems with other AERDO organizations in Haiti after the earthquake.'
theText[2] = 'AERDO member, India Partners, helps women become economically self-sufficient.'
theText[3] = 'AERDO member, Mobile Medical Disaster Relief, served the people of Haiti after the earthquake.'
theText[4] = 'AERDO member, Food for the Hungry, brings hope to the poor around the world'
theText[5] = 'One way AERDO member, WHI, works to empower local communities is by helping them grow more food.'
theText[6] = 'AERDO member, Equip International, helps students to learn how to build, use &amp;, maintain the water filters.'
theText[7] = 'AERDO member, Plant with Purpose, helps the poor escape poverty by creating a sustainable environment.'
theText[8] = 'AERDO member, ECHOcuba, volunteers pray with a young boy while visiting a hospital to distribute toys.'
theText[9] = 'AERDO member, World Relief, had staff greeted in conflict-ridden Democratic Republic of Congo.'
theText[10] = 'AERDO member, Compassion, is releasing children from poverty in Jesus\' name.'


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 whichNum = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="'+theImages[whichNum]+'">');
}

function showText(){
document.write(theText[whichNum]);
}