rightClickWarning = "All photos are property of Richard L. Cook. All rights reserved. Unauthorized use is prohibited.";

showImagePreview = false;

YE.addListener(document, "keyup", pageNav);

YE.onAvailable('categoryTitle', function() {this.innerHTML = 'GALLERIES'});

function pageNav(e) {
  if (!e) 
    e = window.event;

  if (!YD.hasClass(document.body, "galleryPage"))
    return;

  switch (e.keyCode) {
    case 37:
      chk = "<";
      break;

    case 39:
      chk = ">";
      break;

    default:
      return;
  }
  
  oList = YD.getElementsByClassName("nav", "a", YD.get("albumNav_top"));
  for (var i=0; i < oList.length ; i++) {
    if (oList[i].innerHTML == chk) {
      window.location = oList[i].href;
      break;
    }
  }
}

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("find"))
YD.addClass(document.body, "find");




YE.onAvailable('homelink', function(e) {

this.href = "http://richcook.smugmug.com/";

this.firstChild.alt = "Rich's Photo Page";

this.firstChild.title = "Rich's Photo Page";

});



YE.onAvailable('toolbar', function(e) {

this.innerHTML = this.innerHTML.replace(new RegExp(/\|/g),"");

});

function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }