// JavaScript Document
<!-- This script allows for random images to be displayed -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
// Set up the image files to be used.
var theImage = new Array() // do not change this
var theAuthor = new Array()
var theTitle = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImage[0] = 'images/small/rlittle_01.jpg'
theAuthor[0] = 'Robert Little'
theTitle[0] = 'Paddle Steamer'
theImage[1] = 'images/small/D_012_27.jpg'
theAuthor[1] = 'Ian Porter'
theTitle[1] = 'Red Door (D_012_27)'
theImage[2] = 'images/small/jmolineux_sunset_over_the_nile_luxor.jpg'
theAuthor[2] = 'Jane Molineux'
theTitle[2] = 'Sunset over the Nile'
theImage[3] = 'images/small/rlittle_Buzzard.jpg'
theAuthor[3] = 'Robert Little'
theTitle[3] = 'Buzzard'
theImage[4] = 'images/small/jmolineux_Lord_Bute.jpg'
theAuthor[4] = 'Jane Molineux'
theTitle[4] = 'Lord Bute'
theImage[5] = 'images/small/D_067_10.jpg'
theAuthor[5] = 'Ian Porter'
theTitle[5] = 'Austin (D_067_10)'
theImage[6] = 'images/small/D_094_12-Edit.jpg'
theAuthor[6] = 'Ian Porter'
theTitle[6] = 'Im watching you (D_094_12)'
theImage[7] = 'images/small/D_122_37-Edit.jpg'
theAuthor[7] = 'Ian Porter'
theTitle[7] = 'Mikey and Samantha (D_122_37)'
theImage[8] = 'images/small/jmolineux_bull_elephant_zambia.jpg'
theAuthor[8] = 'Jane Molineux'
theTitle[8] = 'Bull elephant, Zambia.'
theImage[9] = 'images/small/rlittle_DSCF3553.jpg'
theAuthor[9] = 'Robert Little'
theTitle[9] = 'Fungi'
theImage[10] = 'images/small/rlittle_game_fair.jpg'
theAuthor[10] = 'Robert Little'
theTitle[10] = 'Game Fair'
// do not edit anything below this line
var j = 0
var p = theImage.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImage[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
//alert(theImages[whichImage]);
//document['headImg'].src=theImages[whichImage]);
document.write('<img class="ImgBorder" src="'+theImage[whichImage]+'" ><br><br><span class="ImageTitleSmall">Author:</span><span class="ImageTitleMedium"> '+theAuthor[whichImage]+'</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="ImageTitleSmall">Title:</span><span class="ImageTitleMedium"> '+theTitle[whichImage]+'</span>');
}
//  End -->
