// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://billyw.smugmug.com";

this.firstChild.alt = "Bill Wakeley Photography";

this.firstChild.title = "Bill Wakeley Photography";

});


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("find"))
YD.addClass(document.body, "find");





function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_10321891"))
  {
    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);


