function hasPath(sPath)
{
  re = new RegExp("\/" + sPath + "(\/|$)");
  return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");


//Code to toggle the text on the info page
function toggleDiv(divName) {
  var d = document.getElementById(divName);
  
  if (d.style.display == 'block')
      d.style.display = 'none';
   else 
     d.style.display = 'block';
}
	