//Change comments text to guestbook

function ModifyText () 
{
  if (YD.hasClass(document.body, "gallery_7926598")) 
  {
    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);

// anti spam email link

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }

// Change Home Link (from Devbobo)
YE.onContentReady('toolbar', function () { this.innerHTML = this.innerHTML.replace(/href="http:\/\/www.smugmug.com\/([?\w&;=]+)?"/, 'href="' + webServer + '"')});

// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://www.averywongphotography.com/";

this.firstChild.alt = "Avery Wong Photography";

this.firstChild.title = "Avery Wong Photography";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});