function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");


function delCategory() {
  re = /\/Clients$/;
 
  if (!YD.hasClass(document.body, 'homepage'))
    return;
 
  var oList = YD.getElementsByClassName('miniBox', 'div', YD.get('categoriesBox'));
 
  for (i = 0; i < oList.length; i++) {
    if (re.test(oList[i].getElementsByTagName('a')[0].href))
      oList[i].parentNode.removeChild(oList[i]);
  }
}

