rightClickWarning = "All photographs are property of Leighton O'Connor. All rights reserved. Unauthorized use is prohibited.";

function AddReferralCode()  {
  var links = this.getElementsByTagName("A");
  if (links && (links.length != 0)) {
    var smugLink = links.item(0);
    smugLink.href = "http://www.smugmug.com/?referrer=3OGITszGAWZeU";
  }
}
YE.onAvailable('footer', AddReferralCode);

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

function changeCategoryInfo()
{
  re = /^([0-9]+ )(galler(y|ies))/;
  divTag1 = document.getElementById("categoriesBox");
  divTag2 = document.getElementById("subcategoriesBox");
  if ((divTag1)|| (divTag2))
  {
    if (divTag1)
      divTags = divTag1.getElementsByTagName("div");
    else
      divTags = divTag2.getElementsByTagName("div");
    for (i=0; i<divTags.length; i++)
    {
      if (divTags[i].className == "miniBox")
      {
        pTags = divTags[i].getElementsByTagName("p");
        re.exec(pTags[1].innerHTML);
        pTags[1].innerHTML = RegExp.$1 + RegExp.$2;
      }
    }
  }
}
changeCategoryInfo();

