var message;
var nom;

message="RTX - Red Turística de Xalapa";
nom="imagen";

var agt=navigator.userAgent.toLowerCase();
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); 
var is_major = parseInt(navigator.appVersion);
var is_nav5up = (is_nav && (is_major >= 5));

function noclick(e){
  if (document.all) {if (event.button == 2 || event.button == 3) {alert(message);}}
  if (document.layers){
    if (e.which == 2 || e.which == 3) {return false;}
    else{return true;}}
  if (document.getElementById && is_nav5up){
    if (e.which == 2 || e.which == 3){
      document.getElementById(nom).style.left="80";
      document.getElementById(nom).style.top=e.pageY;
      document.getElementById(nom).style.visibility="visible";
      alert(message);
     }
     document.getElementById(nom).style.visibility="hidden";
  }  return false;
}


document.onmousedown=noclick;
if (document.getElementById && is_nav5up) {document.captureEvents(Event.MOUSEMOVE);}
if (document.layers ){
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=noclick;
}

