<!--
/**
 * @author		Wing Siu
 * @date		2005-06-28
 * @description	disable the mouse right click
 */
 
function disableRightClick(e){
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		//alert("Sorry, you do not have permission to right click.");
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)){
		alert("Sorry, you do not have permission to save the photo.");
		return false;
	}
	return true;
}

document.onmousedown = disableRightClick;
document.onmouseup = disableRightClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown = disableRightClick;
window.onmouseup = disableRightClick;

//-->