// change the link on the SmugMug Logo

YE.onAvailable('homelink', function(e) {

this.href = "http://jondraperphotography.smugmug.com/";

this.firstChild.alt = "Jon Draper Photography";

this.firstChild.title = "Jon Draper Photography";

});

// removes the pipes characters in the toolbar header

YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});

rightClickWarning = "All photos are property of Jon Draper Photography. All rights reserved. For use, contact the photography at Jon@JonDraper.com"; 

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

// =====Start 2nd Home Page=====

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

// =====End 2nd Home======

