function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_6967387"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Guest Book');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featuredfind"))
YD.addClass(document.body, "featuredfind");


if (hasPath("mostpopular"))
YD.addClass(document.body, "mostpopular");

if (hasPath("featured"))
YD.addClass(document.body, "featured");

YE.onAvailable('featuredTitle', function() {this.innerHTML = 'Latest Pictures'}); 