// This causes a randomly selected picture to appear as the first picture.

function changepix()
{

today = new Date(); 
 
var index = today % (document.images.length - 5);


document.images[0].src    = document.images[index].src;
document.images[0].width  = document.images[index].width;
document.images[0].height = document.images[index].height;
document.images[0].title  = document.images[index].title;
document.getElementById("caption").innerHTML 
                          = document.images[index].title;

}
