/* Make /galleries and /featured work nice */
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
} 

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");

/* Stop the filmstrip */
filmstripMove = 0;

/* Make the filmstrip point the right way */
rightMoves = -5;
leftMoves = 5;

/* Strip links from non-gallery galleries */
function doOnLoad() {
  if (window.AlbumID && ((window.AlbumID == "8792635") || (window.AlbumID == "8794601"))) 
  removeLinkFromImg();
}

function removeLinkFromImg()
{
    var links = document.getElementsByTagName("A");
    for (var i = 0; i < links.length; i++)
    {
        var link = links[i];
        var divElm = link.parentNode;
        if (!divElm)
            continue;
        divElm = divElm.parentNode;
        if (!divElm)
            continue;
        if (divElm.className.indexOf("photo")<0)
            continue;
        link.href = "javascript:void(0);";
    }
} 
