function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

 <!-- Hide Categories -->
function delCategory() {
  re = /\/Archive/
  var oList = YD.getElementsByClassName('miniBox', 'div', this);

  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}
YE.onContentReady('categoriesBox', delCategory);
     <!-- End Hide Categories -->

 
     <!-- Start Hide Breadcrumb Trail -->

YE.onContentReady("breadCrumbTrail", RemoveTopOfBreadCrumb);

function RemoveTopOfBreadCrumb() 
{
    var str = this.innerHTML;
    str = str.replace(/\n/g, " ");    // get rid of linebreaks which cause problems for regular expressions in javascript
    this.innerHTML = str.replace(/^\s*<a .*?a>.*?</i, "<");
}
 <!-- End Hide Breadcrumb Trail -->

