var vanityTable = 
 {
     blog: "http://www.chasethestorms.com/gallery/7128428_Fcsro",
     photo: "http://www.chasethestorms.com/gallery/7042740_umhbK",
     video: "http://www.chasethestorms.com/gallery/7030047_3As7j",
     live: "http://www.chasethestorms.com/gallery/8172044_WLosN",
     contact: "http://www.chasethestorms.com/gallery/7218367_Yu4cN",
     youtube: "http://www.youtube.com/WindyStormTours",
     facebook: "http://www.facebook.com/home.php#/profile.php?id=17002163",
     102909: "http://www.chasethestorms.com/gallery/10149194_SSHrN",
     twitter: "http://twitter.com/ChaseTheStorms",
     vids: "http://www.chasethestorms.com/Weather/Videos/7030047_3As7j"
 };


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
         }
     }
 }
