function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
} 

YE.onContentReady('subCatGalleryTitle', function() {this.innerHTML = this.innerHTML.replace('sub-categories', '')});

YE.onContentReady('categoryTitle', function() {this.innerHTML = this.innerHTML.replace('categories', '')});

YE.onContentReady('galleryTitle', function() {this.innerHTML = this.innerHTML.replace('galleries', '')});




function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_2372278")) 
  {
    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);
