addEvent(window, "load", addCategoryDescription);

function addCategoryDescription()
{
  var categoryDescription = {
      "Levi"  : "My father was a commercial photographer but unfortunately died when I was a child. My mom wasn't a professional, but loved to take snapshots. I took one of these compact cameras on a 7th grade trip to Washington DC where I must have taken 10 rolls! When I returned, I gave them to my mom to develop. She left them in her bag at the office overnight and when she returned the bag was gone! We ended up going back to DC as a family to make up for some of the loss.",
      "Jessica"  : "This is another test."

  };

  if ((YAHOO.util.Dom.hasClass(document.body, "category")) && (!YAHOO.util.Dom.hasClass(document.body, "subcategory")))
  {

    re = /category_(\S+)/i;
    re.exec(document.body.className);

    breadCrumb = document.getElementById("breadcrumb");
    if (breadCrumb)
    {
      divTag = document.createElement("div");
      divTag.className = "categoryDescription";
      divTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
      breadCrumb.parentNode.insertBefore(divTag, breadCrumb.nextSibling);
    }
  }
  if (YAHOO.util.Dom.hasClass(document.body, "homepage"))
  {
    re = /\>([\w\-]+)<\/a>/i;

    divTag = document.getElementById("categoriesBox");
    if (divTag)
    {
      divTags = YAHOO.util.Dom.getElementsByClassName("albumTitle", "p", divTags);

      for (i=0; i<divTags.length; i++)
      {
        re.exec(divTags[i].innerHTML);
        pTag = document.createElement("p");
        pTag.className = "categoryDescription";
        pTag.appendChild(document.createTextNode(categoryDescription[RegExp.$1]));
        divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
      }
    }
  }
}