showPhotoBar = false; 
useLightbox = false;
var galleryRedirectTable = 
{
2825938 : "http://af-photos.smugmug.com/Recent/318757"
};

function CheckRedirects()
{
  if (! YD.hasClass(document.body, 'loggedIn'))
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(9); 
         
         var newURL = galleryRedirectTable[path];        // look it up in our table

         // if we found it in the table && newURL is different than where we are
         if (newURL && (newURL != window.location))
         {
             window.location.replace(newURL);        // go to the new URL
         }
     }
 }

function delCategory() {
  re = /\/Af-Tools$/;

  if (!YD.hasClass(document.body, 'homepage')  || YD.hasClass(document.body, 'loggedIn'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}