/** * Advanced dom events handling module * * Copyright (C) 2008-2009 Nikolay V. Nemshilov aka St. */ eval((function(s,d){for(var i=d.length-1;i>-1;i--)if(d[i])s=s.replace(new RegExp(i,'g'),d[i]);return s})("11.47({77:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,66:37,UP:38,54:39,DOWN:40,INSERT:45,DELETE:46},74:(18.IE||18.Konqueror)?{66:1,64:4,54:2}:{66:0,64:1,54:2}});11.proto85.62=10(){44 a=$A(68),e=a.69(),o=a.pop()||{};if(isString(e)){44 n=11.clean92(e);if(11.58.57.72(n))e=50 11.58(n,o);51 if(11.26.57.72(n))e=50 11.26(n,o);51 e=50 11.80(n,o)}14 11.ext(e)};11.65=50 70({47:{29:{30:87,22:87,19:56,17:56,16:56,24:56}},62:10(n,o){14 12.53(12.52(n,o))},53:18.IE?10(o){44 e=15.create1182();e.85=e.67=\"on\"+o.21;e.19=o.19;e.17=o.17;e.16=o.16;14 e}:78,52:10(n,o){o=82.83({},11.65.29,12.29,o);o.21=n;14 o}});11.58=50 70(11.65,{47:{57:$w('click 55 59 71 mousedown mouseup mouseover mouseout mousemove'),28:{isLeft91:10(){14 12.84==1},isRight91:10(){14 12.84==3},over:10(e){44 d=$(e).dimensions(),x=12.pageX,y=12.pageY;14!(x(d.86+d.width)||y(d.88+d.height))}}},29:{41:0,42:0,43:0},53:10(o){44 e=18.IE?12.63(o):15.create11(\"5811\");12[18.IE?'48':'76'](e,o);14 e},52:10(n,o){o=12.63(n,o);o.43=11.74[o.21=='59'?'54':o.21=='55'?'64':'66'];o.21=11.real92(o.21);14 o},48:10(e,o){e.clientX=o.41;e.clientY=o.42;e.43=o.43},76:10(e,o){e.init5811(o.21,o.30,o.22,15.25,21=='71'?2:1,o.41,o.42,o.41,o.42,o.17,o.19,o.16,o.24,o.43,o.75)}});11.add28(11.58.28);11.26=50 70(11.65,{47:{57:$w('keypress keydown keyup'),28:{}},29:{20:0,23:0},53:10(o){44 a=78;if(18.IE){a=12.63(o);12.48(a,o)}51 try{a=15.create11('2611');12['init'+(18.WebKit?'89':'90')](a,o)}catch(e){a=15.create11('UI11');12.73(a,o)}14 a},init90:10(e,o){e.initKey11(o.21,o.30,o.22,15.25,o.17,o.19,o.16,o.24,o.20,o.23)},init89:10(e,o){e.init2611(o.21,o.30,o.22,15.25,78,0,o.17,o.19,o.16,o.24)},73:10(e,o){e.initUI11(o.21,o.30,o.22,15.25,1);e.20=o.20;e.23=o.23;e.19=o.19;e.24=o.24;e.17=o.17;e.16=o.16},48:10(e,o){e.20=o.20;e.23=o.23}});(10(){for(44 b in 11.77)(10(k,a){11.26.28[('is_'+k.toLowerCase()).camelize()]=10(){14 12.20==a}})(b,11.77[b]);;11.add28(11.26.28)})();Element.include({fire:10(){44 b=$A(68),e=50 11(b.69(),82.83(b.69(),{75:12}));if(e instanceof 11.80){(12.$listeners||[]).each(10(a){if(a.e==e.85)a.f.apply(12,[e].79(a.a).79(b))},12)}51 if(12.dispatch11)12.dispatch11(e);51 12.fire11(e.67,e);14 12}});",",,,,,,,,,,function,Event,this,,return,document,shiftKey,ctrlKey,Browser,altKey,keyCode,name,cancelable,charCode,metaKey,defaultView,Keyboard,,Methods,Options,bubbles,createEvent,,,,,,,,,,pointerX,pointerY,button,var,,,extend,initIE,dispatchEvent,new,else,options,build,RIGHT,middleclick,false,NAMES,Mouse,rightclick,addMethods,,initialize,$super,MIDDLE,Base,LEFT,eventType,arguments,shift,Class,dblclick,includes,initDOM2,BUTTONS,element,initW3C,KEYS,null,concat,Custom,,Object,merge,which,type,left,true,top,Webkit,Gecko,Click,Name".split(",")));