// The code below attemps to disable the right click function for images
function right(e) {
	var msg = "Contents & Graphics Copyright Vetter Design Group\nOur work is not Public Domain, and should not be saved or copied from this site.\nThank you.";
	if (document.all && event.button==2) {
		//alert("document.all: "+document.all);
		alert(msg);
		return false;
	}
	if (navigator.appName == 'Netscape' && e.which == 3) {
		//alert("document.layers: "+document.layers);
		alert(msg);
		return false;
	}
	else return true;
}

function trap() {
	if(document.images) {
		for(i=0;i<document.images.length;i++) {
			document.images[i].onmousedown = right;
			//document.images[i].onmouseup = right;
		}
	}
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
			oldonload();
			func();
		}
	}

}

//window.onload = menuLoad;
addLoadEvent(trap);

