// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://snapdragonphotography.smugmug.com/";

this.firstChild.alt = "Snapdragon Photography";

this.firstChild.title = "Snapdragon Photography";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_5754584")) 
  {
    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);

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_5754658")) 
  {
    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);

