function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }


var vanityTable = 
{
"utah" : "http://www.marclangille.com/Nature/Utah/9715321_nfQTj#657525540_eLVHy",
"hummingbirds" : "http://www.marclangille.com/Nature/Hummingbirds-1/3643150_cLdW5#207746965_Qxa9A",
"macro" : "http://www.marclangille.com/Nature/Macro/3643772_fzmif#207789069_FK3Zh",
"wading-shore-birds" : "http://www.marclangille.com/Nature/Wading-Shore-Birds/4969962_wXCP8#346159781_7UxCC",
"african-wildlife" : "http://www.marclangille.com/Nature/African-Indian-Wildlife/4833806_MM66h#287675596_KVNDr",
"water-birds" : "http://www.marclangille.com/Nature/Water-Birds/6310689_dLcs7#397944896_cHhMs",
"landscape" : "http://www.marclangille.com/Nature/Landscape-Scenery/3643766_ZMRxZ#208699288_93Zma",
"workshops" : "http://www.marclangille.com/gallery/3878331",
"calendars" : "http://www.marclangille.com/Nature/Calendars/10139891_J953D"
};

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
         }
     }
 }