rightClickWarning = "All photos are property of Jeffrey Bane. All rights reserved. Unauthorized use is prohibited."; 

YE.onContentReady('toolbar', function () { this.innerHTML = this.innerHTML.replace(/href="http:\/\/www.smugmug.com\/([?\w&;=]+)?"/, 'href="' + webServer + '"')});

function addCategoryDescription() {
 var categoryDescription = {
     "X" : " ",
     "Stepperettes" : "Photo galleries of Sue's Stepperettes competitions and recitals. Restricted to Sue's Stepperettes, their families and friends.",
     "Family" : "Our family photographs. Restricted to our family and friends. If you know us and want to view send me an e-mail.",
     "Photography" : "General photography. Enter at your own risk.",
     "SNJ_Studio" : "Images of certain SNJ Studio performances. Restricted to those associated with SNJ Studio",
     "Girl_Scouts" : "Images from my daughter's Girl Scout troops. Restricted to the Girl Scouts, their families and friends.",
     "Nature" : "Collection of nature images. View and Enjoy.",
     "Architecture" : "Images of buildings, streets and other man-made creations. Open to the public." 
 };

  if ((YD.hasClass(document.body, "category")) && (!YD.hasClass(document.body, "subcategory"))) { 

    re = /category_(\S+)/i;
    re.exec(document.body.className);

    breadCrumb = YD.get("breadcrumb");
    if (breadCrumb && categoryDescription[RegExp.$1]) {
      divTag = document.createElement("div");
      divTag.className = "categoryDescription";
      divTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
      breadCrumb.parentNode.insertBefore(divTag, breadCrumb.nextSibling);
    }
  }
  if (YD.hasClass(document.body, "homepage")) {
    re = /\>([\w\-]+)<\/a>/i;

    divTag = YD.get("categoriesBox");
   if (divTag) {
      divTags = YD.getElementsByClassName("albumTitle", "p", divTag);

      for (i=0; i<divTags.length; i++) {
       re.exec(divTags[i].innerHTML);
        if (categoryDescription[RegExp.$1] != undefined) {
          pTag = document.createElement("p");
          pTag.className = "categoryDescription";
          pTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
          divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
        }
      }
    }
  }
}
YE.addListener(window, "load", addCategoryDescription); 

