function photo_copyright_init() {
	var im = document.getElementsByTagName("IMG");
	if (im) {
		for (var i = 0; i < im.length; i++) {
			photo_copyright_bind(im[i],"mouseup", photo_copyright_alert);
		}
	}
}
function photo_copyright_alert(e) {
	if (!e) e = window.event;
	//alert(e.button);
	if ((e.which && (e.which == 2 || e.which == 3)) || (e.button && e.button == 2))
		alert("Image is copyrighted by its owner. All rights reserved.");
}
function photo_copyright_bind(el, e_str, func) {
	if (el.addEventListener) {
		el.addEventListener(e_str, func, false);
	} else if (el.attachEvent) {
		el.attachEvent("on"+e_str, func);
	} else {
		eval('el.on'+e_str+' = func;');
	}
}
photo_copyright_bind(window,"load", photo_copyright_init);