function redirectPath() {
  re = /((www.)?drdavid.smugmug.com)/;
  tmp = window.location.href;
  if (re.test(tmp)) {
    tmp = tmp.replace(re, 'www.wolfsnap.com');
    window.location.href = tmp;
  }
}
redirectPath();

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;
   }
  }
});