  /* 
   * Code to detect which browser the user is using. 
   * Note that although we detect Netscape 4.0, there were 
   * implementation difficulties in having the layers display 
   * checkboxes properly, so this code is not supported by 
   * Netscape 4.x
   */ 
/*
  var isLayers = (document.layers) ? true : false;      // NS4.x
  var isDivs = (document.all) ? true : false;           // IE4.x/5.0
  var isDom = (document.getElementById) ? true : false; // IE5.5/6 NS6/7
  var isDyn = (isLayers || isDivs || isDom);            // DHTML OK
  */


/*
function LoadNextPage(e) { 
  alert("Entering LoadNextPage"); 
  document.location.href = "home.shtml"; 
  alert("Ending LoadNextPage"); 
}
*/

function DisplayMessage(e) { 
  var msg = "Images Copyright (c) 2011 Photography By Cecilio"; 
  if (navigator.appName == 'Mozilla' && e.which == 3) {
    alert(msg);
    return false;
  } else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2) {
    alert(msg);
    return false;
  } else { 
    return true;
  }
}

function DisableRightClick() {
  if(document.images) {
    for(i=0; i<document.images.length; i++) {
      document.images[i].onmousedown = DisplayMessage;
      document.images[i].onmouseup = DisplayMessage;
    }
  }
}


