function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3801805"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);

/*=======================*/
/*== CHANGE BREADCRUMB ==*/
/*=======================*/

YE.onContentReady('breadCrumbTrail', function() {this.innerHTML =
this.innerHTML.replace('seanquinn','Photo Galleries')});

YE.onContentReady('breadcrumb', function() {this.innerHTML =
this.innerHTML.replace('seanquinn', 'Photo Galleries')});

YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});