function norobotmail(aUser, aDomain) 
{ document.location = "mailto:" + aUser + "@" + aDomain; }

// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
this.href = "http://dkoyanagi.smugmug.com/";
this.firstChild.alt = "dkoyanagi photo gallery";
this.firstChild.title = "dkoyanagi photo gallery";
});

// removes the pipes characters in the toolbar header
YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});


/* change "gallery comments" to "guestbook comments" */
function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_5648994"))
  {
    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);
