function RandomizeImage()
{
//urls to images
var imagesarray = new Array()
imagesarray[0] = "images/thumbs/2008_2009/04-Phenomenautumn-woody-shepherd_thumb.jpg";
imagesarray[1] = "images/thumbs/2008_2009/08-Beaver-Mountain-Woody-Shepherd_thumb.jpg";
imagesarray[2] = "images/thumbs/2008_2009/12-Gibson-Wilderness-Woody-Shepherd_thumb.jpg";
imagesarray[3] = "images/thumbs/fall_green_2006_woody_shepherd.jpg";
imagesarray[4] = "images/thumbs/2008_2009/10-Fall-Hollow-Woody-Shepherd_thumb.jpg";
imagesarray[5] = "images/thumbs/2008_2009/01-Wasatch-Fall-Woody-Shepherd_thumb.jpg";

//captions for each image
var captionsarray = new Array()
captionsarray[0] = "<em>Phenomenautumn</em>";
captionsarray[1] = "<em>Beaver Mountain</em>";
captionsarray[2] = "<em>Gibson Wilderness</em>";
captionsarray[3] = "<em>Fall Green</em>";
captionsarray[4] = "<em>Fall Hollow</em>";
captionsarray[5] = "<em>Wasatch Fall</em>";

var randomnumber = Math.round(Math.random()*(imagesarray.length - 1));
//put the caption above the image on the page
return ("<h3>"+captionsarray[randomnumber]+"</h3><img src='"+ imagesarray[randomnumber] +"' />");
}