function noRightClick(e) {
	alert('I\'ve disabled right-click in an attempt to dissuade people from\n'+
	  		'"hot-linking" to the photos.  I (obviously) don\'t mind you linking\n'+
			'to this page(!), but please not directly to the image file itself.\n'+
			'\n'+
			'I appreciate that there\'s many ways for you to get around this,\n'+
			'but hope that you\'ll choose not to.... :)\n\nThank you!\n'+
			'\n'+
			'- seb frost');
	if (e.preventDefault)
		e.preventDefault();
	e.cancelBubble=true;
	return false;
}


function initNoClick() {
	if (document.getElementById('photo'))
	{
		var elem = document.getElementById('photo').getElementsByTagName('img')[0];
		addEventSimple(elem,'contextmenu',noRightClick);
	}
	
	var aULs = document.getElementsByTagName('ul');
	var nULs = aULs.length;
	
	for (i=0;i<nULs;i++)
	{
		var aImgs = aULs[i].getElementsByTagName('img');
		var nImgs = aImgs.length;
		
		for (j=0;j<nImgs;j++)
			addEventSimple(aImgs[j],'contextmenu',noRightClick);
	}
}


addEventSimple(window,'load',initNoClick);
