// Create separate galleries page
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");


// Change Gallery Comment to Guestbook
function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_7611396")) 
{
var objElement = YD.get("comment")
if (objElement != null) 
{
var str = new String(objElement.innerHTML);
str = str.replace(/\gallery/gi, 'Guestbook');
objElement.innerHTML = str;
}
}
}
YE.onAvailable("comment", ModifyText);