function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

rightClickWarning = "All photos are © and property of Thomas Messinger-- PhotoWorksSGV. All rights reserved. Unauthorized use is prohibited."; 

// script to replace a user's name in the breadcrumb with "Home"
YE.onContentReady("breadCrumbTrail", ReplaceTopOfBreadcrumbWithHome);

function ReplaceTopOfBreadcrumbWithHome()
{
    var str = this.innerHTML.replace(/\n/g, " ");
    this.innerHTML = str.replace(/\>[^\<]+<\/a>/i, ">Home</a>");
}

function delCategory() {
re = /\/Services$/;

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]);
}
}

delCategory();



