// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
    this.href = "http://markedell.com/";
    this.firstChild.alt = "Mark's Photos";
    this.firstChild.title = "Mark's Photos";
});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});

function AddReferralCode()  {
  var links = this.getElementsByTagName("A");
  if (links && (links.length != 0)) {
    var smugLink = links.item(0);
    smugLink.href = "http://www.smugmug.com/?referrer=cQCACZfiplr7Y";
  }
}
YE.onAvailable('footer', AddReferralCode);

rightClickWarning = "All photos are property of Mark Edell. All rights reserved. Unauthorized use is prohibited.";