var vanityTable = 
 {
     service : "http://www.jessejamesphotography.ca/gallery/7798424_NiRV2",
     about : "http://www.jessejamesphotography.ca/gallery/7050867_EBxCt",
     guest: "http://www.jessejamesphotography.ca/gallery/7050823_Q9yRE",
     weddings: "http://www.jessejamesphotography.ca/gallery/7084011_mQTgf",
     models: "http://www.jessejamesphotography.ca/gallery/7113634_vP4EP",
     odds: "http://www.jessejamesphotography.ca/gallery/7046097_m99si",
     landscapes: "http://www.jessejamesphotography.ca/gallery/7045715_FzYf4",
     Pets: "http://www.jessejamesphotography.ca/gallery/7045436_oaa5S",
     Blog: "http://jessejamesphotography.blogspot.com/" ,
     Families: "http://www.jessejamesphotography.ca/gallery/7053837_fzgx5",
     Aub: "http://www.jessejamesphotography.ca/gallery/8467825_Ff2wx",
 };

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
         }
     }
 }