function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("This website is copyright Chudleigh Cricket Club");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

if (document.images != null) {
  a01on = new Image(); a01on.src = "../imgs/butc.gif";
  a01off = new Image(); a01off.src = "../imgs/butg.gif";
  a1on = new Image(); a1on.src = "../imgs/noshad.gif";
  a1off = new Image(); a1off.src = "../imgs/shadow.gif";
  a2on = new Image(); a2on.src = "../imgs/noshad.gif";
  a2off = new Image(); a2off.src = "../imgs/shadow.gif";
  a3on = new Image(); a3on.src = "../imgs/noshad.gif";
  a3off = new Image(); a3off.src = "../imgs/shadow.gif";
  a4on = new Image(); a4on.src = "../imgs/noshad.gif";
  a4off = new Image(); a4off.src = "../imgs/shadow.gif";
  a5on = new Image(); a5on.src = "../imgs/noshad.gif";
  a5off = new Image(); a5off.src = "../imgs/shadow.gif";
  }

function turnOn(imageName) {
  if (document.images != null) {
    document[imageName].src = eval(imageName + "on.src");
  }
}
function turnOff(imageName) {
  if (document.images != null) {
    document[imageName].src = eval(imageName + "off.src");
  }
}

