function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");



function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=YCmOhskoiszkU";
}
}
YE.onAvailable('footer', AddReferralCode);

function norobotmail(aUser, aDomain) {
       document.location = "mailto:" + aUser + "@" + aDomain;}