} 
}; 
Event.Methods = (function() {  if (Prototype.Browser.IE) {    function isButton(event, code) {      return event.button == ({ 0: 1, 1: 4, 2: 2 })[code];    }      } else if (Prototype.Browser.WebKit) {    function isButton(event, code) {      switch (code) {        case 0: return event.which == 1 && !event.metaKey;        case 1: return event.which == 1 && event.metaKey;        default: return false;      }    }      } else {    function isButton(event, code) {      return event.which ? (event.which === code + 1) : (event.button === code);    }  }  return {    isLeftClick:   function(event) { return isButton(event, 0) },    isMiddleClick: function(event) { return isButton(event, 1) },    isRightClick:  function(event) { return isButton(event, 2) },        element: function(event) {      var node = Event.extend(event).target;      return Element.extend(node.nodeType == Node.TEXT_NODE ? node.parentNode : node);    },    findElement: function(event, expression) {      var element = Event.element(event);      return element.match(expression) ? element : element.up(expression);    },    pointer: function(event) {      return {        x: event.pageX || (event.clientX +           (document.documentElement.scrollLeft || document.body.scrollLeft)),        y: event.pageY || (event.clientY +           (document.documentElement.scrollTop || document.body.scrollTop))      };    },    pointerX: function(event) { return Event.pointer(event).x },    pointerY: function(event) { return Event.pointer(event).y },    stop: function(event) {      Event.extend(event);      event.preventDefault();       event.stopPropagation();     }  };})();
5582	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5582/d114e76e979a994b44a52ec23fb50499e84dcbfb/event.js/buggy/src/event.js