//Add pseudo-home page named /galleries

function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

//End pseudo-home page

// Function to delete categories we don't want to see on the main page

function delCategory()
{
  re = /href="\/(Madison|Middleton|Calendar|Travel|Posters)"/;
  if ((YD.hasClass(document.body, "homepage")) && (!YD.hasClass(document.body, "loggedIn")))
  {
     oList = YD.getElementsByClassName("miniBox", "div");

     for (i=0; i<oList.length; i++)
     {
         if (!(re.test(oList[i].innerHTML)))
           oList[i].parentNode.removeChild(oList[i]);
     }
  }
}
