YE.onContentReady("subcategoriesBox", swapBoxes);

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("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');


var objElement = document.getElementById("categoryTitle")
if (objElement != null)
objElement.innerHTML = objElement.innerHTML.replace('Gallery','Capturing Light and Emotion - Photography by Aaron Newman');



function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_8621840")) 
  {
    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);
