function disableRightClick(e)
{
  var message = "Right click is disabled. These pictures are protected by copyright and may not be reproduced in any shape or form without explicit permission.";
  
  if(!document.rightClickDisabled) // initialize
  {
	if(document.layers) 
	{
	  document.captureEvents(Event.MOUSEDOWN);
	  document.onmousedown = disableRightClick;
	}
	else document.oncontextmenu = disableRightClick;
	return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
	if (e.which==2||e.which==3)
	{
	  alert(message);
	  return false;
	}
  }
  else
  {
	alert(message);
	return false;
  }
}
disableRightClick();


