function buttonOver(ctl)
{
	ctl.style.backgroundColor = '#606060';
}
	
function buttonOut(ctl)
{
	ctl.style.backgroundColor = '#a0a0a0';
}
var message = "Copyright - Saddleworth Archaeological Trust, 2008 ";

function whichElement(e)
{
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // Safari bug
   targ = targ.parentNode;
var tname;
tname=targ.tagName;
if (e.button > 1)
{
  if ((tname != 'A') && (tname != 'a'))
  {
    //  if (e.preventDefault) e.preventDefault();
    //  if (e.stopPropagation) e.stopPropagation();
    if (!document.attachEvent)
    {
    document.oncontextmenu = function() { return false; }
    document.ondragstart   = function() { return false; }
    }
    alert(message);
    return false;
  }
 }
}
function nill()
{
return false;
}

if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
}
if (document.attachEvent)
	document.attachEvent('onmousedown',whichElement,false);
else
if (document.addEventListener)
{
	document.onmousedown = whichElement;
}
