// 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=IU1i9v28ITZ0U";
  }
}
YE.onAvailable('footer', AddReferralCode);

function hasPath(sPath) {
 re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)

}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("find"))
 YD.addClass(document.body, "find");

// Keyword Box Title Hack
YE.onContentReady('keywordsTitle', function(){this.innerHTML = 'Browse by Keywords'});

// Map Box Title Hack
YE.onContentReady('mapTitle', function(){this.innerHTML = 'Bill Anderson Photos Mapped'});

// Popular Box Title Hack
YE.onContentReady('popularTitle', function(){this.innerHTML = 'Bill Anderson Photography - Popular Photos - Just Click'});






