function addCategoryDescription() {
  var categoryDescription = {
      "Stock"  : "Images in all galleries below are available for commercial licensing.",
      "category2"  : "This is another test.",
      "category3"  : "Final test"
  };
 
  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);