//Control del botó dert del ratolķ
//@Autor: Maxi Viale Ochoa
//@Data: 3-3-2003

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

function rightMouse(){  //Inicialitzem la crida al mčtode que controlarą el botó
  document.onmousedown = rightMouseEvent
  if (is.ns4) document.captureEvents(Event.MOUSEDOWN)
}

function rightMouseEvent(e) 
{
  if ((is.ns && e.which!=2) || (is.ie && event.button!=2)) return true
  var x = (is.ns)? e.pageX : event.x+document.body.scrollLeft
  var y = (is.ns)? e.pageY : event.y+document.body.scrollTop
  alert("HOSPITAL PLATÓ\nFundació privada")
  return true
}

rightMouse() //Fem la crida automąticament

