// Set up the image files to be used.
var theLeftImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theLeftImages[0] = './images/photos/children/leftfun/left_fun1'
theLeftImages[1] = './images/photos/children/leftfun/left_fun2'
theLeftImages[2] = './images/photos/children/leftfun/left_fun3'
theLeftImages[3] = './images/photos/children/leftfun/left_fun4'
theLeftImages[4] = './images/photos/children/leftfun/left_fun5'
theLeftImages[5] = './images/photos/children/leftfun/left_fun6'
theLeftImages[6] = './images/photos/children/leftfun/left_fun7'
theLeftImages[7] = './images/photos/children/leftfun/left_fun8'


// do not edit anything below this line

var leftj = 0
var leftp = theLeftImages.length;
var leftpreBuffer = new Array()
for (k = 0; k< leftp; k++){
   leftpreBuffer[k] = new Image()
   leftpreBuffer[k].src = theLeftImages[k]
}
var whichLeftImage = Math.round(Math.random()*(leftp-1));
function showLeftImage(k){
if (k>0)
document.write('<img src="'+theLeftImages[k-1]+'.jpg"><br><a href="'+theLeftImages[k-1]+'F.jpg"><br>&nbsp;<br>View fullsize image.</a>');
else
document.write('<img src="'+theLeftImages[whichLeftImage]+'.jpg"><br><a href="'+theLeftImages[whichLeftImage]+'F.jpg">View fullsize image.</a>')

}

