var vanityTable = 
 {
     christyna200812 : "http://aguther.smugmug.com/gallery/6879498_7Ek7D#440288447_Q2am2",
	 pianocelebration200812 : "http://aguther.smugmug.com/gallery/6879498_7Ek7D#440288447_Q2am2",
     christyna200806 : "http://aguther.smugmug.com/gallery/5168711_5qHxs#313085786_Hue3b",
	 pianocelebration200806 : "http://aguther.smugmug.com/gallery/5168711_5qHxs#313085786_Hue3b",
     christyna200801: "http://aguther.smugmug.com/gallery/5836390_7FgRC#362021364_ZVfoD",
	 pianocelebration200801: "http://aguther.smugmug.com/gallery/5836390_7FgRC#362021364_ZVfoD",
	 pianocelebration: "http://aguther.smugmug.com/Music/674716",
     pianoclub: "http://aguther.smugmug.com/Music/674716",
	 crowdenholidayparty2008: "http://aguther.smugmug.com/gallery/6867794_D7qgo#439892095_Cbqid",
	 hochzeitdorisundarmin: "http://aguther.smugmug.com/Events/585905",
	 hochzeitarminunddoris: "http://aguther.smugmug.com/Events/585905",
	 hochzeitarmin: "http://aguther.smugmug.com/Events/585905",
	 hochzeitdoris: "http://aguther.smugmug.com/Events/585905",
	 crowdenbasicallybaroque2009: "http://aguther.smugmug.com/gallery/7180806_apQXg#461000825_VUQxL",
	 tcsbb2009: "http://aguther.smugmug.com/gallery/7180806_apQXg#461000825_VUQxL",
	 tcsdi2009: "http://aguther.smugmug.com/gallery/7226658_GQFY5#464323168_2YqiQ",
	 crowdenyosemitecartoons: "http://aguther.smugmug.com/gallery/6078103_RtUyv#381339379_6BX8y",
	 crowden2008to2009: "http://aguther.smugmug.com/Crowden/609235",
         crowden2009ascr: "http://aguther.smugmug.com/gallery/8303386_Vbto8#544129395_HN3Ry"
 };

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
         }
     }
 }
