/*
(c) Copyrights 2007 - 2008

Original idea by by Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
 
jQuery Plugin by Tzury Bar Yochay 
tzury.by@gmail.com
http://evalinux.wordpress.com
http://facebook.com/profile.php?id=513676303

Project's sites: 
http://code.google.com/p/js-hotkeys/
http://github.com/tzuryby/hotkeys/tree/master

License: same as jQuery license. 

USAGE:
    // simple usage
    $(document).bind('keydown', 'Ctrl+c', function(){ alert('copy anyone?');});
    
    // special options such as disableInIput
    $(document).bind('keydown', {combi:'Ctrl+x', disableInInput: true} , function() {});
    
Note:
    This plugin wraps the following jQuery methods: $.fn.find, $.fn.bind and $.fn.unbind
*/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(t(j){j.r.I=j.r.V;j.r.W=j.r.X;j.r.Y=j.r.14;m k={2A:\'0.7.9\',R:/1p|1v|1w/g,p:{},F:{27:\'1q\',9:\'1r\',1s:\'1t\',13:\'q\',8:\'1x\',1y:\'1z\',20:\'1A\',1B:\'1R\',19:\'1S\',1U:\'1V\',1W:\'1X\',1Y:\'1Z\',21:\'22\',23:\'24\',25:\'26\',28:\'2b\',2c:\'2d\',2g:\'2h\',2i:\'2j\',10:\'-\',2l:\'2p\',2q:\'2s\',2t:\'2u\',2y:\'2k\',2B:\'2D\',2E:\'2F\',2I:\'2K\',2M:\'2N\',2P:\'2S\',2T:\'2U\',2V:\'1l\',1m:\'1n\',1o:\'/\'},S:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"1u","=":"+",";":":","\'":"\\"",",":"<",".":">","/":"?","\\\\":"|"},1k:t(a,b,c){m d={};d[a]={};d[a][b]={Z:c,J:12};q d}};k.F=j.1C(k.F,{1D:\'0\',1E:\'1\',1F:\'2\',1G:\'3\',1H:\'4\',1I:\'5\',1J:\'6\',1K:\'7\',1L:\'8\',1M:\'9\',1N:\'*\',1O:\'+\',10:\'-\',1P:\'.\',1Q:\'/\'});j.r.14=t(a){n.P=a;q j.r.Y.16(n,1T)};j.r.X=t(a,b,c){l(j.1c(b)){c=b;b=Q}l(b&&1d b===\'1e\'){m d=((n.H&&n.H.P)||(n[0].G&&n[0].G)||n[0]).1f();m e=a.1h(\' \');M(m x=0;x<e.D;x++){29 k.p[d][e[x]][b]}}q n.W(a,c)};j.r.V=t(b,c,d){m e=b.2a(k.R);l(j.1c(c)||!e){q n.I(b,c,d)}C{m f=Q,U=j.2e(b.2f(k.R,\'\'));l(U){f=n.I(U,c,d)}l(1d c==="1e"){c={\'T\':c}}l(c.T){M(m x=0;x<e.D;x++){m g=e[x];m h=c.T.11(),A=k.1k(g,h,d),o=((n.H&&n.H.P)||(n[0].G&&n[0].G)||n[0]).1f();A[g][h].J=c.J;l(!k.p[o]){k.p[o]=A}C l(!k.p[o][g]){k.p[o][g]=A[g]}m i=k.p[o][g][h];l(!i){k.p[o][g][h]=[A[g][h]]}C l(i.2m!==2n){k.p[o][g][h]=[i]}C{k.p[o][g][h][i.D]=A[g][h]}n.2o(t(){m a=j(n);l(a.u(\'v\')&&a.u(\'v\')!==o){o=a.u(\'v\')+";"+o}a.u(\'v\',o)});f=n.I(e.2r(\' \'),c,k.17)}}q f}};k.18=t(a){l(!j(a).u(\'v\')){l(j.1a.2v||j.1a.2w){2x(!j(a).u(\'v\')&&a.1b){a=a.1b}}}q a};k.17=t(a){m b=k.18(a.2z),B=j(b),w=B.u(\'v\');l(w){w=w.1h(\';\');m c=a.2C,O=a.O,N=k.F[c],y=!N&&2G.2H(c).11(),E=a.2J,K=a.2L,L=a.1g||a.2O.1g,s=Q;M(m x=0;x<w.D;x++){l(k.p[w[x]][O]){s=k.p[w[x]][O];2Q}}l(s){m d;l(!E&&!K&&!L){d=s[N]||(y&&s[y])}C{m e=\'\';l(L)e+=\'L+\';l(K)e+=\'K+\';l(E)e+=\'E+\';d=s[e+N];l(!d){l(y){d=s[e+y]||s[e+k.S[y]]||(e===\'E+\'&&s[k.S[y]])}}}l(d){m f=12;M(m x=0;x<d.D;x++){l(d[x].J){m g=j(a.2R);l(B.z("1i")||B.z("1j")||B.z("15")||g.z("1i")||g.z("1j")||g.z("15")){q 2W}}f=f||d[x].Z.16(n,[a])}q f}}}};2X.2Y=k;q j})(2Z);',62,186,'|||||||||||||||||||||if|var|this|selectorId|triggersMap|return|fn|mapPoint|function|attr|hkId|ids||character|is|trigger|jTarget|else|length|shift|specialKeys|id|prevObject|__bind__|disableInInput|ctrl|alt|for|special|type|query|null|override|shiftNums|combi|pass2jq|bind|__unbind__|unbind|__find__|cb|109|toLowerCase|false||find|select|apply|handler|findElement||browser|parentNode|isFunction|typeof|string|toString|altKey|split|input|textarea|newTrigger|f11|123|f12|191|keypress|esc|tab|32|space|_|keydown|keyup|backspace|145|scroll|capslock|144|extend|96|97|98|99|100|101|102|103|104|105|106|107|110|111|numlock|pause|arguments|45|insert|36|home|46|del||35|end|33|pageup|34|pagedown||37|delete|match|left|38|up|trim|replace|39|right|40|down|f4|112|constructor|Array|each|f1|113|join|f2|114|f3|opera|safari|while|115|currentTarget|version|116|which|f5|117|f6|String|fromCharCode|118|shiftKey|f7|ctrlKey|119|f8|originalEvent|120|break|target|f9|121|f10|122|true|window|hotkeys|jQuery'.split('|'),0,{}))
