function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

rightClickWarning = "All photos are property of Jamie Wallis. 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=nYhAc7i2Tr1.o";
}
}
YE.onAvailable('footer', AddReferralCode);
