function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("Gallery"))
YD.addClass(document.body, "Gallery");
