rightClickWarning = "© Jerry Nelson Photography -- Remember, Thou Shalt Not Steal"; 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'
    });

}



<div id="twitter_div">
<h2 class="sidebar-title">Twitter Updates</h2>
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/jandrewnelson" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/jandrewnelson.json?callback=twitterCallback2&amp;count=5"></script>