nCurrentMessage=5;
var overImage=0;
aClickMessages = new Array();
aClickMessages[0] = 'This image is copyright of the Alberta Research Council';
aClickMessages[1] = 'This image is copyright of the Glenbow Archives';
aClickMessages[2] = 'This image is copyright of Sydney Amatt';
aClickMessages[3] = 'This image is copyright of Parks and Protected Areas - Alberta Community Development';
aClickMessages[4] = 'This image is copyright of the Edmonton Archives';
aClickMessages[5] = 'This image is copyright of the Heritage Community Foundation';
aClickMessages[6] = 'This image is copyright of the Provincial Archives';
aClickMessages[7] = 'This image is copyright of the Eastern Irrigation District';
aClickMessages[8] = 'This image is copyright of the Soils of Canada Homepage';
aClickMessages[9] = 'This image is copyright of Friends of the Reynolds-Alberta Museum Society';
aClickMessages[10] = 'This image is copyright of the Candian Petroleum Interpretive Centre in Devon';
function over(n)
{
	overImage=n;
	
}
function disableclick(e) {
	clickmessage = aClickMessages[nCurrentMessage];
	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) {
			if(overImage==1)
			{
			alert(clickmessage);
			return false;
			}
		}
	}
	else if (document.getElementById){
		if (e.which==3&&e.target.tagName=="IMG"){
			alert(clickmessage)
				return false;
		}
	}
}

function associateimages(){
	for(i=0;i<document.images.length;i++)
		document.images[i].onmousedown=disableclick;
}

function init(){
	nCurrentMessage=5;
	overImage=0;
}

if (document.all)
	document.onmousedown=disableclick
else if (document.getElementById)
{	//	document.onmouseup=disableclick
	window.captureEvents(Event.RIGHTCLICK);
	document.onclick = disableclick;
}	
else if (document.layers)
{
	//associateimages()
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=disableclick;
}
document.onmouseout=init


