function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

/*=======================*/
/*== CHANGE BREADCRUMB ==*/
/*=======================*/


YE.onContentReady('breadCrumbTrail', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});

YE.onContentReady('breadcrumb', function() {
 for (var i in this.childNodes) {
 if (this.childNodes[i].tagName == "A") {
 this.childNodes[i].href="/galleries";
 break;
 }
 }
});