if (window.Event) document.captureEvents(Event.MOUSEUP); 

function nocontextmenu()  {
  event.cancelBubble = true;
  event.returnValue = false;
  return false;
}

function norightclick(e) {
  if (window.Event) {
    if (e.which == 2 || e.which == 3) return false;
  } else if (event.button == 2 || event.button == 3) {
    event.cancelBubble = true;
    event.returnValue = false;
    return false;
  }
}

document.oncontextmenu = nocontextmenu;		
document.onmousedown = norightclick;
		
function click(e) {
  var message="DO NOT COPY IMAGES FROM THIS WEBSITE.\r\n\r\nAll images on this website are protected by copyright.\r\n\r\nAll rights are reserved worldwide.\r\n\r\nFor any questions, please contact\r\n\r\noffice@vivanatura.org\r\n\r\nThank you for visiting www.vivanatura.org";
  if (document.all) {
    if (event.button == 2) {
      alert(message);
      return false;
    }
  }
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
}

if (document.layers) document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;

function open_window(url, window_name, features) {
  new_window = window.open(url, window_name, features);
	new_window.focus();
}

function status_bar(message) {
  window.status = message;
}

function bookmark_page(url,page) {
  if (window.external) {
    window.external.AddFavorite(url, page)
  } else {
    alert("Sorry. Your browser does not support bookmarking this page.");
  }
}
