var msg = "all images are copyright of blue sky photography";

right = function(event, showMsg) {
	
	console.log('show? ' + (showMsg ? 'yes' : 'no'));
	
	if (navigator.appName == 'Netscape' && event.which == 3) {
		if (showMsg == true) alert(msg);
		return false;
	}

	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==3) {	
		if (showMsg == true) alert(msg);
		return false;		
	}
	
	return true;
}

trap = function() {
	if(document.images) {
    	for(i=0; i < document.images.length;i++) {
    	
    		/*
	    	if (document.images[i].oncontextmenu != null) {
    			document.images[i].oncontextmenu = function() { 
					alert(msg);
					return false; 
				}; 
			}	
			else {
//	  			Event.observe(document.images[i], 'mousedown', function(e) { Event.stop(e); right(e,true) });
//				Event.observe(document.images[i], 'mouseup', function(e) { Event.stop(e); right(e,false) });
  				
  	
  			}
  			*/
			Event.observe(document.images[i], 'contextmenu', function(e) { 
	  				Event.stop(e);
					alert(msg);
					return false; 					
  				});
		}
    }
}

Event.observe(window, 'load', function() { 
	trap(); 
});
