function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=MJkbdbcsiVdEY";
}
}
YE.onAvailable('footer', AddReferralCode);

rightClickWarning = "All photography on this site is Copyright 1997-2009 Joseph Linaschke Photography, LLC, All rights reserved, whether watermarked or not. The content and metadata included in this site may not be copied, displayed or distributed, in whole or in part, without express license from Joseph Linaschke.";

/* duplicates the homepage to slash galleries and code in the CSS section will hide the galleries there */
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

/* converts breadcrumbs to say galleries and go to galleries level not root */
function AdjustBreadcrumb()
{
    var str = this.innerHTML;
    str = str.replace(/\n/g, " ");
    str = str.replace(/^\s*<a .*?<\/a>/i, '<a href="/galleries" class="nav">Galleries</a>');
    this.innerHTML = str;
}

YE.onContentReady("breadCrumbTrail", AdjustBreadcrumb);