function hasPath(sPath) {
 re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


if (YD.hasClass(document.body, "singleImage"))
  fixPhotoNav();


if (hasPath("featured"))
 YAHOO.util.Dom.addClass(document.body, "featured");



if (hasPath("keywordPage"))
 YAHOO.util.Dom.addClass(document.body, "keywordPage");




if (hasPath("galleries"))
  YAHOO.util.Dom.addClass(document.body, "galleries");





var objElement = document.getElementById("galleryTitle")
if (objElement != null)
objElement.innerHTML = objElement.innerHTML.replace('Galleries','Albums');


var objElement = document.getElementById("categoryTitle")
if (objElement != null)
objElement.innerHTML = objElement.innerHTML.replace('Gallery Categories','Client Galleries');


var objElement = document.getElementById("subCatGalleryTitle")
if (objElement != null)
objElement.innerHTML = objElement.innerHTML.replace('sub-categories','Categories');



var objElement = document.getElementById("subCatGalleryTitle")
if (objElement != null)
objElement.innerHTML = objElement.innerHTML.replace('Galleries','Albums');






if (hasPath("find")) { 
YD.addClass(document.body, "find"); 
loadSmugMaps(); 
} 



