Event.prototype = Event.prototype || document.createEvent("Events").__proto__; 
if(!Event.prototype) try { Event.prototype = document.createEvent("Events").__proto__; } catch(e) { return function(event) { if (event._extendedByPrototype) return event; return Object.extend(event, methods); }; } 
Event.extend = (function() {  var methods = Object.keys(Event.Methods).inject({ }, function(m, name) {    m[name] = Event.Methods[name].methodize();    return m;  });    if (Prototype.Browser.IE) {    Object.extend(methods, {      stopPropagation: function() { this.cancelBubble = true },      preventDefault:  function() { this.returnValue = false },      inspect: function() { return "[object Event]" }    });    return function(event) {      if (!event) return false;      if (event._extendedByPrototype) return event;            event._extendedByPrototype = Prototype.emptyFunction;      var pointer = Event.pointer(event);      Object.extend(event, {        target: event.srcElement,        relatedTarget: Event.relatedTarget(event),        pageX:  pointer.x,        pageY:  pointer.y      });      return Object.extend(event, methods);    };      } else {    Event.prototype = Event.prototype || document.createEvent("Events").__proto__;    Object.extend(Event.prototype, methods);    return Prototype.K;  }})();
5582	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5582/cbaec757e2064d53466aea82c2ca25238ce84004/event.js/buggy/src/event.js