// Disable right mouse button
var clickmessage="These images are © Copyright Marbit Pty. Ltd. \n and Digitally encoded and tracked by Digimarc at http://www.digimarc.com \n If you would like to use any of this artwork, please read the \"Use of Shirley Barber's Artwork\" on the Questions page in this site";

function disableclick(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			if (event.srcElement.tagName=="IMG"){
				alert(clickmessage);
				return false;
			}
		}
	}else if (document.layers) {
		if (e.which == 3) {
			alert(clickmessage);
			return false;
		}
	}else if (document.getElementById){
		if (e.which==3&&e.target.tagName=="IMG"){
			alert(clickmessage);
			return false;
		}
	}
}


// Stop right clicking on images and throw up an alert box
function associateimages(){
	for(i=0;i<document.images.length;i++){
		document.images[i].onmousedown=disableclick;
	}
}

if (document.all){
	document.onmousedown=disableclick;
}else if(document.getElementById){
	document.onmouseup=disableclick;
}else if (document.layers){
	associateimages();
}

// Hide the string URL status message at the bottom of the browser
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

