// capture right click
var msg = "Copyright 2006-2007 Maddalena Delli for Tuscanyguide.it";
if(document.layers) {
   window.captureEvents (Event.MOUSEDOWN);
}

function captureRightClick(e)
{
// both major browser types must be checked in the same "if" statement, otherwise
// when the capture event is checked, it seems to be cleared.  Checking them sequentially
// results in only the first comparison being made. 
  
   if  ((navigator.appName == 'Microsoft Internet Explorer' && event.button == 2)|| 
       (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)))
   {
      alert(msg);
//      event.returnValue=false;
	  return false;
      }
    else{
	  return true;
    }
}
window.onmousedown=captureRightClick;
document.onmousedown = captureRightClick;

