displaySmugPopular = false;
rightClickWarning = "Copyright © A&G's Picture This! All rights reserved.";

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

var vanityTable = 
 {
     Saligman : "http://www.agpicturethis.com/gallery/8496279_fJfPU",
     saligman : "http://www.agpicturethis.com/gallery/8496279_fJfPU",
     special  : "http://www.agpicturethis.com/gallery/10402830_Ggxg5"
 };
 function CheckRedirects()
 {
     if (YD.hasClass(document.body, 'homepage'))    // only run this code on the home page
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(1);
         
         var newURL = vanityTable[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
         }
     }
 }
var thisURL = webServer + "/gallery/" + AlbumID + "_" + AlbumKey + "/1/" + ImageID + "_" + ImageKey ;