/* Galleries 1 */
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");


/* fix the pesky pipes */
YE.onAvailable("cobrand_footer", function() {this.innerHTML = 
this.innerHTML.replace(/\||what are feeds\?/gi, '');});


/* Guestbook comments */
function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_6567775"))
  {
    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);
