// Handles random image inserts

var theImages2 = new Array()

//Random-loading images
theImages2[0] = 'images/DidYouKnow/01.jpg' // replace with names of images
theImages2[1] = 'images/DidYouKnow/02.jpg' // replace with names of images
theImages2[2] = 'images/DidYouKnow/03.jpg' // replace with names of images
theImages2[3] = 'images/DidYouKnow/04.jpg' // replace with names of images
theImages2[4] = 'images/DidYouKnow/05.jpg' // replace with names of images
theImages2[5] = 'images/DidYouKnow/06.jpg' // replace with names of images
theImages2[6] = 'images/DidYouKnow/07.jpg' // replace with names of images
theImages2[7] = 'images/DidYouKnow/08.jpg' // replace with names of images
theImages2[8] = 'images/DidYouKnow/09.jpg' // replace with names of images
theImages2[9] = 'images/DidYouKnow/10.jpg' // replace with names of images
theImages2[10] = 'images/DidYouKnow/11.jpg' // replace with names of images
theImages2[11] = 'images/DidYouKnow/12.jpg' // replace with names of images
theImages2[12] = 'images/DidYouKnow/13.jpg' // replace with names of images
theImages2[13] = 'images/DidYouKnow/14.jpg' // replace with names of images
theImages2[14] = 'images/DidYouKnow/15.jpg' // replace with names of images
theImages2[15] = 'images/DidYouKnow/16.jpg' // replace with names of images
theImages2[16] = 'images/DidYouKnow/17.jpg' // replace with names of images
theImages2[17] = 'images/DidYouKnow/18.jpg' // replace with names of images
theImages2[18] = 'images/DidYouKnow/19.jpg' // replace with names of images
theImages2[19] = 'images/DidYouKnow/20.jpg' // replace with names of images
theImages2[20] = 'images/DidYouKnow/21.jpg' // replace with names of images
theImages2[21] = 'images/DidYouKnow/22.jpg' // replace with names of images
theImages2[22] = 'images/DidYouKnow/23.jpg' // replace with names of images
theImages2[23] = 'images/DidYouKnow/24.jpg' // replace with names of images
theImages2[24] = 'images/DidYouKnow/25.jpg' // replace with names of images
theImages2[25] = 'images/DidYouKnow/26.jpg' // replace with names of images
theImages2[26] = 'images/DidYouKnow/27.jpg' // replace with names of images
theImages2[27] = 'images/DidYouKnow/28.jpg' // replace with names of images


var j = 0
var p = theImages2.length;
var preBuffer = new Array()

for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages2[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage2(){
if(whichImage==0){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==1){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==2){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==3){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==4){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==5){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==6){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==7){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==8){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}

else if(whichImage==9){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==10){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==11){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==12){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==13){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==14){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==15){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==16){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==17){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==18){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==19){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==20){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==21){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==22){
document.write('<img src="'+theImages2[whichImage]+'" align="right"  border=0>');
}
else if(whichImage==23){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==24){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==25){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==26){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==27){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
else if(whichImage==28){
document.write('<img src="'+theImages2[whichImage]+'" align="right" border=0>');
}
}


var theImages = new Array()

//Random-loading images
theImages[0] = 'images/quotes/01.jpg' // replace with names of images
theImages[1] = 'images/quotes/02.jpg' // replace with names of images
theImages[2] = 'images/quotes/03.jpg' // replace with names of images
theImages[3] = 'images/quotes/04.jpg' // replace with names of images
theImages[4] = 'images/quotes/05.jpg' // replace with names of images
theImages[5] = 'images/quotes/06.jpg' // replace with names of images
theImages[6] = 'images/quotes/07.jpg' // replace with names of images
theImages[7] = 'images/quotes/08.jpg' // replace with names of images
theImages[8] = 'images/quotes/09.jpg' // replace with names of images
theImages[9] = 'images/quotes/10.jpg' // replace with names of images
theImages[10] = 'images/quotes/11.jpg' // replace with names of images
theImages[11] = 'images/quotes/12.jpg' // replace with names of images
theImages[12] = 'images/quotes/13.jpg' // replace with names of images
theImages[13] = 'images/quotes/14.jpg' // replace with names of images
theImages[14] = 'images/quotes/15.jpg' // replace with names of images
theImages[15] = 'images/quotes/16.jpg' // replace with names of images
theImages[16] = 'images/quotes/17.jpg' // replace with names of images
theImages[17] = 'images/quotes/18.jpg' // replace with names of images
theImages[18] = 'images/quotes/19.jpg' // replace with names of images
theImages[19] = 'images/quotes/20.jpg' // replace with names of images
theImages[20] = 'images/quotes/21.jpg' // replace with names of images


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(){
if(whichImage==0){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==1){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==2){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==3){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==4){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==5){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==6){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==7){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==8){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==9){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==10){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==11){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==12){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==13){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==14){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==15){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==16){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==17){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==18){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==19){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
else if(whichImage==20){
document.write('<img src="'+theImages[whichImage]+'" border=0 width=206 height=341>');
}
}

