rightClickWarning = "All photos are the property of Ryan Miller Photography.  All rights reserved.  Unauthorized use is prohibited."; function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
} 	

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }

function RemoveGalleryWord()
{
    this.innerHTML = this.innerHTML.replace(/ Galleries$| Sub-Categories$/, "");
}

YE.onAvailable("subCatGalleryTitle", RemoveGalleryWord);
YE.onAvailable("galleryTitle", RemoveGalleryWord);

// Because the slideshow button is created itself in onDOMReady, 
// we don't know the timing of it's creation relative to our function getting called
// so we trigger our event this way to make it execution order independent
YE.onDOMReady(function () {YE.onContentReady("slideshowButton", MoveSlideshowButtonToCartLine);});

function MoveSlideshowButtonToCartLine()
{
    var sourceObj = document.getElementById("slideshowButton");
    var destObj = document.getElementById("buyButton");
    if (sourceObj && destObj)
    {
        var obj = sourceObj.parentNode.removeChild(sourceObj);
        destObj.parentNode.insertBefore(sourceObj, destObj);
    }    
}

