var vanityTable = 
 {
     mentor : "http://deborahcull.smugmug.com/gallery/7447834_5pe9H",
     denisejeremy : "http://deborahcull.smugmug.com/gallery/7619355_WNQVE",
     fca2009 : "http://deborahcull.smugmug.com/gallery/7962653_FXZu9",
     peterson : "http://deborahcull.smugmug.com/gallery/8043501_QUbTn",
     nicoleroger : "http://deborahcull.smugmug.com/gallery/8135983_DXv2d",
     jennycarlos : "http://deborahcull.smugmug.com/gallery/8530972_AU7Uu"
 };

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
         }
     }
 }