// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_3856768")) 
  {
    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);





// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
    this.href = "http://milanaphotography.smugmug.com/";
    this.firstChild.alt = "MilanaPhotography";
    this.firstChild.title = "MilanaPhotography";
});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});
