YE.onAvailable('galleryTitle', function() {this.innerHTML = 'galleries (scroll to see them all)'});

function redirectPath() {
  re = /((www.)?prolixpics.smugmug.com)/;
  tmp = window.location.href;
  if (re.test(tmp)) {
    tmp = tmp.replace(re, "www.prolixpics.com");
    window.location.href = tmp;
  }
}
redirectPath();

var vanityTable = 
 {
     private1 : "/share/VAkVsT17NyOSk",
     private2 : "/share/eQdqy2FhleqpA"
 };
function IsHomePage()
 {
    return(YD.hasClass(document.body, 'homepage'));
 }
 
function CheckRedirects()
 {
     if (IsHomePage())    // 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 hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location);
}

YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
   if (this.childNodes[i].tagName == "A") {
     this.childNodes[i].href="/galleries";
     break;
   }
  }
});
YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
   if (this.childNodes[i].tagName == "A") {
     this.childNodes[i].href="/galleries";
     break;
   }
  }
});