// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});

function AddReferralCode() {
var links = this.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=aN3GWDnT6N4VQ";
}
}
YE.onAvailable('footer', AddReferralCode);

filmstripMove = 0;

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

//filmStrip values you can override:
rightMoves = -4;
leftMoves = 4;
filmstripMove = 0;

rightClickWarning = "Nope! I bet your just going to use a screen capture next, right?"; 

function hasPath(sPath) { re = new RegExp("\/" + sPath + "(\/|$)"); return re.test(window.location) } if (hasPath("galleries")) YD.addClass(document.body, "galleries");

function RemoveGalleryWord()
{
    this.innerHTML = this.innerHTML.replace(/ Galleries$/, "");
}

YE.onAvailable("subCatGalleryTitle", RemoveGalleryWord);
YE.onAvailable("galleryTitle", RemoveGalleryWord);