function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_6421311")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);

rightClickWarning = "All photos are property of Kathy Higgins Photography. All rights reserved. Unauthorized use is prohibited."; 

filmstripMove = 0;

//filmStrip values you can override:
rightMoves = -5;
leftMoves = 5;


function delCategory() {
re = /\/(Horse%20Show%20Proofs)$/;

if (!YD.hasClass(document.body, 'homepage') || YD.hasClass(document.body, 'loggedIn'))
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();

function RemoveGalleryWord()
{
    this.innerHTML = this.innerHTML.replace(/ Galleries$| Sub-Categories$/, "");
}

YE.onAvailable("subCatGalleryTitle", RemoveGalleryWord);
YE.onAvailable("galleryTitle", RemoveGalleryWord);









