function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }


function delHover() {
imgTags = document.getElementsByTagName("img");
for (i=0; i<imgTags.length; i++) {
imgTags[i].title = "";
imgTags[i].alt = "";
}
}



// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://hossenfefferphoto.smugmug.com/";
this.firstChild.alt = "Hossenfeffer Photo";

this.firstChild.title = "Hossenfeffer Photo";

});




function delHover() {
imgTags = document.getElementsByTagName("img");
for (i=0; i<imgTags.length; i++) {
imgTags[i].title = "";
imgTags[i].alt = "";
}
}

function delCategory() {
  re = /\/(Graig%20Mischler|CHL|LEM|Other|Booster-Buddies|Private|Photography|CHBCBB|Portfolio|Around%20Town)$/;

  if (!YD.hasClass(document.body, 'homepage'))
    return;

  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}



function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}

rightClickWarning = "All photos are property of Hossenfeffer Photo. All rights reserved. Unauthorized use is prohibited."; 

function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=MN1Qxv8gnHuI2";
}
}
YE.onAvailable('footer', AddReferralCode);





