//This Javascript Function Makes Popup Copyright Box When Someone Tries To Save An Image
function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0, status=1,menubar=1,scrollbars=1,resizable=0,WIDTH=675,height=450');
self.name = "mainWin"; }
var ErrMsg = "Sorry, the content of this site is Copyright © Sam D'Cruz Photography";
function disableRightClick(btnClick) 
{
	if (navigator.appName == "Netscape" && btnClick.which==3)
// check for Netscape and Right Click
{
alert(ErrMsg);
return false;
}
else if (navigator.appName == "Microsoft Internet Explorer" && event.button==2)
// for IE and Right Click
{
alert(ErrMsg);
return false;
}
}
document.onmousedown = disableRightClick;
document.onmouseup = disableRightClick;

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
