YE.onAvailable("featuredTitle", function() {this.innerHTML = this.innerHTML.replace("Featured Galleries", "Sugerencias del Chef - Chef's Suggestions");});

YE.onAvailable("sharegroupTitle", function() {this.innerHTML = this.innerHTML.replace("Sharegroups", "Grupos Cerrados");});

YE.onAvailable("categoryTitle", function() {this.innerHTML = this.innerHTML.replace("Gallery Categories", "Menú del día - Today's Menu");});

YE.onAvailable("popularPhotos", function() {this.innerHTML = this.innerHTML.replace("Most Popular Photos", "Más Votadas (Ver más...) - Most Popular (See more...)");});

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

function delHover() {
    oLst = YD.getElementsBy(function(el) {return (YD.hasClass(el,'imgBorder') || YD.hasClass(el,'imgBorderOn'))},'img');
    for (i=0; i < oLst.length ; i++) {
        if (oLst[i].title && oLst[i].title != '') oLst[i].title = '';
        if (oLst[i].alt && oLst[i].alt != '') oLst[i].alt = '';
    }
}
YE.onContentReady('bodyWrapper', function() {if (!YD.hasClass(document.body, 'smugmug_ajax')) delHover()});
onPhotoShow.subscribe(function(){YE.onAvailable('mainImage', delHover)});
