(function(){var b=!(window.attachEvent&&!window.addEventListener),f=Element.NativeEvents;f.focusin=2;f.focusout=2;var c=function(h,k,i){var j=Element.Events[h.event],l;if(j){l=j.condition}return Slick.match(k,h.value)&&(!l||l.call(k,i))};var e=function(h,j,i){for(var k=j.target;k&&k!=this;k=document.id(k.parentNode)){if(k&&c(h,k,j)){return i.call(k,j,k)}}};var g=function(h){var i="$delegation:";return{base:"focusin",onRemove:function(j){j.retrieve(i+"forms",[]).each(function(k){k.retrieve(i+"listeners",[]).each(function(l){k.removeEvent(h,l)});k.eliminate(i+h+"listeners").eliminate(i+h+"originalFn")})},listener:function(r,s,q,t,v){var k=q[0],j=this.retrieve(i+"forms",[]),p=k.target,m=(p.get("tag")=="form")?p:k.target.getParent("form");if(!m){return}var o=m.retrieve(i+"originalFn",[]),l=m.retrieve(i+"listeners",[]),u=this;j.include(m);this.store(i+"forms",j);if(!o.contains(s)){var n=function(w){e.call(u,r,w,s)};m.addEvent(h,n);o.push(s);l.push(n);m.store(i+h+"originalFn",o).store(i+h+"listeners",l)}}}};var a=function(h){return{base:"focusin",listener:function(l,m,j){var k={blur:function(){this.removeEvents(k)}},i=this;k[h]=function(n){e.call(i,l,n,m)};j[0].target.addEvents(k)}}};var d={mouseenter:{base:"mouseover"},mouseleave:{base:"mouseout"},focus:{base:"focus"+(b?"":"in"),args:[true]},blur:{base:b?"blur":"focusout",args:[true]}};if(!b){Object.append(d,{submit:g("submit"),reset:g("reset"),change:a("change"),select:a("select")})}Event.definePseudo("relay",{listener:function(i,j,h){e.call(this,i,h[0],j)},options:d})})();