rightClickWarning = "(C) Jerry Nelson Photography"; rightClickWarning = "All photos are property of Jerry Nelson. All rights reserved. Unauthorized use is prohibited."; 

YE.onAvailable('featuredTitle', function() {this.innerHTML = 'Most Popular Galleries'}); 

onPhotoShow.subscribe(ProcessDownloadButton);

function IsSmugmugView()
{
	return(YD.hasClass(document.body, "smugmug"));
}


function ProcessDownloadButton()
{
    if (IsSmugmugView())
    {
        if (photoInfo[ImageID].albumOriginals && (photoInfo[ImageID].Format !== "MP4"))
        {
            InsertDownloadButton("cartButtonsWrapper");
        }
    }
}

function InsertDownloadButton(parentId)
{
    // now add the download button
    var parentDiv = document.getElementById(parentId);
    var downloadButton = document.getElementById("downloadButtonId");
    if (parentDiv && !downloadButton)
    {
        var downloadButtonInfo =
        {
            id: "downloadButtonId",
            label: "Download Image...",
            container: parentDiv,
            type: "button",
            className: "sm-button sm-button-small themesButton glyphButton",
            onclick: { fn: InitiateDownloadImage }
        };
        
        var dButtonObj = new YAHOO.widget.Button(downloadButtonInfo);
    }
}

function InitiateDownloadImage()
{
    // construct the download URL
    window.location = "/photos/" + ImageID + "_" + ImageKey + "-D.jpg";
}

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

var pos = window.document.URL.indexOf("gallery");

if (pos > 0 && SM) {
        var thisURL = window.document.URL ;
    SM.buttons.FacebookButton = new YAHOO.widget.Button({
        id: 'Share on Facebook',
        label: 'Share on Facebook',
        container: 'altViews',
        type: 'link',
        href: 'http://www.facebook.com/share.php?u='+thisURL+'&t=Facebook+sucks+because+it+ignores+this',
        target: '_blank',
        className: 'sm-button sm-button-small shareButton glyphButton menuButton share_button'
    });

}

<!-- begin Genbook badge -->
<script src="http://www.genbook.com/bookings/booknowjstag.action?id=30062800&bookingSourceId=1000&pop=1"></script>
<noscript><a href="http://www.genbook.com/bookings/slot/reservation/30062800?bookingSourceId=1000"><img src="http://www.genbook.com/bookings/images/30062800/booknow.gif" width="100" height="34" alt="Make an Online Appointment" border="0"/></a><br/><a href="http://www.genbook.com" style="font-size:10px;">Online appointment scheduling for Photographers</a></noscript>
<!-- end Genbook badge -->