photoRevert = "images/photos/460px/dub000.jpg"
  
function closeCaptions()
{
  closeDiv('caption_1');
  closeDiv('caption_2');
  closeDiv('caption_3');
  closeDiv('caption_4');
  closeDiv('caption_5');
  closeDiv('caption_6');
  closeDiv('caption_7');
  closeDiv('caption_8');
  closeDiv('caption_9');
  closeDiv('caption_10');
} // closeCaptions

function displayCaption(caption)
{
  closeCaptions();
  var divCaption =  'caption_' + caption;
  openDiv(divCaption);
} // displayCaption

function displayPhoto(photo, caption)
{
  fileName = 'images/photos/460px/' + photo + '.jpg';
  photoRevert = fileName; // return to last image displayed to after viewing the map
  changeImages('mainpic', fileName);
  displayCaption(caption);
} // displayPhoto

function setThumbTray(height, overflow, paddingTop)
{
  var the_style = getStyleObject('thumbs');
  the_style.height = height;
  the_style.overflow = overflow;
  the_style.paddingTop = paddingTop;
} // setThumbTray

function setupThumbs()
{
  var the_style = findElement('mainpic', 0);
  photoRevert = the_style.src; // the default image to return to after viewing the map
  displayCaption(1); // show caption for default image
  
  if ((isIE) && !(isIE7))
  {
    setThumbTray('315px','scroll','5px');
  }
  
  if (isIE7)
  {
    setThumbTray('317px','scroll','0');
  }
 
  if ((isMac) && (isFox) && !(isSafari))
  {
    setThumbTray('295px','auto','5px');	
  }
  
  if ((isMac) && (isSafari))
  {
    setThumbTray('310px','scroll','5px');
  }  
  
} // setupThumbs
