// change the link on the SmugMug Logo
YE.onAvailable('homelink', function(e) {
this.href = "http://shap.smugmug.com/";
this.firstChild.alt = "Sean Shapiro Photography";
this.firstChild.title = "Sean Shapiro Photography";
});
// 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=RgHYf63pObbIk";
}
}
YE.onAvailable('footer', AddReferralCode);

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }