function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {
    this.href = "http://marmotinha.smugmug.com/";
    this.firstChild.alt = "LocalRealism";
    this.firstChild.title = "LocalRealism";
});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {
this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");
});