var vanityTable = 
 {
     vbs: "http://seaviewphotography.smugmug.com/gallery/8979814_GFu3h/1/596888384_fptUL",
     horizonvbs: "http://www.seaviewphoto.com/gallery/8979814_GFu3h/1/596888384_fptUL",
     blitz: "http://seaviewphotography.smugmug.com/Sports/816901",
     marriageretreat09: "http://www.smugmug.com/gallery/9771406_SHJf6/1/666681118_VgG45"
 };
  
 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
         }
     }
 }


function hideFamily()
{

  var re = /loggedIn( |$)/;
  var sClassName = document.body.className;

  if ((sClassName) && (!re.test(document.body.className)))
  {
    if (window.location.pathname.toLowerCase().substr(1) == "Family")
      window.location = "http://www.seaviewphoto.com/share/bF4BklfZqJBdM";
  }
  
}
