//document.oncontextmenu=new Function("return false")
var specialcase = ((navigator.userAgent.indexOf('Mac') != -1) || document.all)
var flag = 0;
var x,y,x1,y1,copyAttempt;

function init(){
	if (!(document.getElementById || document.all || document.layers)) return;
	if (specialcase && document.layers){
		document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = special;
	}
	for (i=0;i<document.images.length;i++){
		document.images[i].oncontextmenu = function() {return false;}
		document.images[i].onmousedown = rightClick;
		document.images[i].onmouseup = function() {return false};
		if (specialcase){
			document.images[i].onmousemove = rightClick;
			//document.images[i].onclick = clearIt;
		}
	}
}

function rightClick(e) {
	var rightclick;
	if (!e) var e = window.event;
	if (e.which) rightclick = (e.which == 3);
	else if (e.button) rightclick = (e.button == 2);
	if (rightclick) {
		if ( typeof( window[ 'copyright' ] ) != "undefined" ) {
			alert(copyright);
		} 
		else {
			alert('If you want this picture, please send me an email!');
		}
	}
}

/*
function init(){
	if (!(document.getElementById || document.all || document.layers)) return;
	if (specialcase && document.layers){
		document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = special;
	}
	for (i=0;i<document.images.length;i++){
		document.images[i].oncontextmenu = function() {return false;}
		document.images[i].onmousedown = rightClick;
		document.images[i].onmouseup = function() {return false};
		if (specialcase){
			document.images[i].onmousemove = rightClick;
			//document.images[i].onclick = clearIt;
		}
	}
}
*/

//window.onload = init;

