rightClickWarning = "This photo is copyrighted by Garey T. Martin. All Rights Reserved. Unauthorized use prohibited."

var vanityTable = 
 {
     sflgtg2008 : "http://www.gareymartin.com/gallery/4444524_jwuD3",
     vwshoot01 : "http://www.gareymartin.com/gallery/4451354_YNVHY",
     kpbi: "http://www.gareymartin.com/gallery/4454873_kNYxk",
     stuartairshow2007: "http://www.gareymartin.com/gallery/4456698_ffMZy",
     jonathandickinson: "http://www.gareymartin.com/gallery/4443446_fUDAH",
     brianmiller: "http://www.gareymartin.com/gallery/4496696_VAjed",
     mreuro: "http://www.gareymartin.com/gallery/4531796_wrnj3",
     jetta: "http://www.gareymartin.com/gallery/4531626_RLxEP",
     vwshoot02: "http://www.gareymartin.com/gallery/4529593_gNW94",
     sfba: "http://www.gareymartin.com/gallery/4499270_wbWUJ",
     miami: "http://www.gareymartin.com/gallery/4499167_RPbJY",
     misc: "http://www.gareymartin.com/gallery/4499197_9QGnt",
     volksblast07: "http://www.gareymartin.com/gallery/4533365_UatWk",
     scott: "http://www.gareymartin.com/gallery/4575393_jH6mL",
     nopi: "http://www.gareymartin.com/gallery/4683769_4pzKY",
     shownshine08: "http://www.gareymartin.com/gallery/4728748_bcHmv",
     dubkultur001: "http://www.gareymartin.com/gallery/4761220_PAdeA",
     hunter: "http://www.gareymartin.com/gallery/5287250_T4BTH",
     tucci: "http://www.gareymartin.com/gallery/5287317_3rVVd",
     eimeo: "http://www.gareymartin.com/gallery/5325203_8zbey",
     vwshoot03: "http://www.gareymartin.com/gallery/5929992_rynS7",
     acedubs: "http://www.gareymartin.com/gallery/5945580_A49EY",
     stuartairshow2008: "http://www.gareymartin.com/gallery/6649161_nacqn",
     volksblast09: "http://www.gareymartin.com/gallery/7317250_HFZmk",
     winterjam09: "http://www.gareymartin.com/gallery/7480684_HyZiy",
     vwshoot04:"http://www.gareymartin.com/gallery/8860346_om2Vm",
     sonicvwmeet: "http://www.gareymartin.com/gallery/8489063_jCkbX",
     koni: "http://www.gareymartin.com/gallery/7659801_feNom",
     amanda: "http://www.gareymartin.com/gallery/8227664_ynax4",
     alteschule: "http://www.gareymartin.com/gallery/10940792_QLNeg",
     portrait: "http://www.gareymartin.com/gallery/10940524_DYzoT",
     fashionmode: "http://www.gareymartin.com/gallery/10940563_aoi89",
     scott2: "http://www.gareymartin.com/gallery/10939773_MTV5E",
     ourfamily: "http://www.gareymartin.com/gallery/4535164_pixuh",
     wdw: "http://www.gareymartin.com/gallery/9403899_wzWkS",
     typhoonlagoon: "http://www.gareymartin.com/gallery/9403744_WbAEK",
     tahoe: "http://www.gareymartin.com/gallery/7291815_mzwfM",
     randomsfl: "http://www.gareymartin.com/gallery/7768477_i39HT",
     product: "http://www.gareymartin.com/gallery/7659542_faECW",
     mbaquarium: "http://www.gareymartin.com/gallery/7291560_gQkaF",
     cheyne: "http://www.gareymartin.com/gallery/7931721_UHAb3",
     shownshine09: "http://www.gareymartin.com/gallery/7768372_LLdmQ",
     ritters09: "http://www.gareymartin.com/gallery/9776390_YEtds",
     carstrucks: "http://www.gareymartin.com/gallery/4535080_nZzu8",
     lioncountry: "http://www.gareymartin.com/gallery/10945572_WfYGX",
     euro59: "http://www.gareymartin.com/gallery/10966494_wXJah",
     volksblast2010: "http://www.gareymartin.com/gallery/11139540_3c466",
     blackmamba: "http://www.gareymartin.com/gallery/11250261_9faXc",
     winterjam2010: "http://www.gareymartin.com/gallery/11274107_xS7H9"

 };

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
         }
     }
 }