if (document.layers) {document.captureEvents(Event.MOUSEDOWN)}
if (navigator.appName == "Mozilla") {document.onmouseup = xRightClick}
document.onmousedown = xRightClick;           //needed for IE5 Mac
document.oncontextmenu = xContextClick;       //needed for IE5 PC, NS6 PC
function xContextClick() {return false}
function xRightClick(e) {
  if (document.layers) {
    if (e.which>=2) {return false}
    if (navigator.platform.indexOf("Mac") != -1) {  //needed for NS4 Mac
      p=e.target+""; if (p.length) {location.href=e.target}
      return false
    }
  }
  else if (event.button>=2) {return false}    //needed for IE5 Mac
}
