// need to have previously also included randomlist.js in the html for this method to work
function getRandomPhoto() {
  var index = parseInt(Math.random() * jeffsphotos.length);
//  document.write('length:'+jeffsphotos.length+' index:'+index+' jeffsphotos[index]:'+jeffsphotos[index]+'<br>');

  var photoinfo = jeffsphotos[index].split("/");
  var year = photoinfo[0];
  var album = photoinfo[1];
  var image = photoinfo[3];

  var imagethumb= year+'/'+album+'/'+image;
  var imagefull= year+'/'+album+'/f/'+image;
  var yearphp = year+'.php';
  var albumphp = year+'/'+album+'/index.php';

  document.write('<a href="'+imagefull+'" rel="lightbox[gallery]"><img src="'+imagethumb+'" border=0 alt="From '+year+' &ndash; '+album+'"></a><br>');
  document.write('Year: <a href="'+yearphp+'">'+year+'</a><br>Album: <a href="'+albumphp+'">'+album+'</a>');
}
