rightClickWarning = "These photos are copyright by Expose The Moment. All rights reserved. Unauthorized use is prohibited."
document.title = "Expose The Moment";
function RelevantTitle()
{
   var baseTitle = "Expose The Moment";
   var separator = " - ";
   var albumTitle = document.getElementById("albumTitle");
   var galleryTitle = document.getElementById("galleryTitle");
   if( albumTitle && albumTitle.textContent )
      document.title = baseTitle + separator + albumTitle.textContent;
   else if( galleryTitle && galleryTitle.textContent )
   {
      var galleryTitleText = galleryTitle.textContent;
      // Strip " sub-categories" off the end of the category text
      var finalPositionCategory = galleryTitleText.search(" sub-categories");
      if( finalPositionCategory >= 0 )
         galleryTitleText = galleryTitleText.substr( 0, finalPositionCategory );
      else
      {
         // Strip " galleries" off the end of the category/sub-category text
         var finalPositionSubCategory = galleryTitleText.search(" galleries");
         if( finalPositionSubCategory >= 0 )
            galleryTitleText = galleryTitleText.substr( 0, finalPositionSubCategory );
      }
      document.title = baseTitle + separator + galleryTitleText;
   }
   else // Not Gallery, Category, or Subcategory
   {
      // Set title on homepage
      document.title = baseTitle;
   }
}
displaySmugPopular = false;
showImagePreview = false;
function fixPhotoNav()
{
  oPhotoNav = YD.getElementsByClassName("photoNav", "div");

  for (i=0; i < oPhotoNav.length; i++)
  {
    re = /galleries\/([\d]+)\//;
    oTitle = YD.getElementsByClassName("title", "span", oPhotoNav[i]);
    if (re.test(window.location))
    oTitle[0].innerHTML = "|&nbsp;" + oTitle[0].innerHTML + "&nbsp;|";
    re.exec(window.location);
    oPhotoNav[i].innerHTML = oPhotoNav[i].innerHTML + "<span ><a href=\"/galleries/" + RegExp.$1 + "\"></a></span>";
  }
}
