function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("Biography"))
YD.addClass(document.body, "Biography");

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("google9268167bb542a2cc.html"))
YD.addClass(document.body, "google9268167bb542a2cc.html");


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("Media"))
YD.addClass(document.body, "Media");



function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("Photostories"))
YD.addClass(document.body, "PhotoStories");

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)});

addEvent(window, "load", showSlideshowCaption);

function showSlideshowCaption()
{
  try
  {
    if (showCaption == false)
      setCaption();
  }
  catch(e) {}
}

addEvent(window, "load", enableSlideshowOptions);

function enableSlideshowOptions()
{
  if (YD.hasClass(document.body, "fsSlideshow"))
  {
    document.getElementById("captions").click();
    document.getElementById("fades").click();
  }
}