/* http://keith-wood.name/timeEntry.html
   Time entry for jQuery v1.2.5.
   Written by Keith Wood (kbwood@iprimus.com.au) June 2007.
   Dual licensed under the GPL (http://www.gnu.org/licenses/gpl-3.0.txt) and 
   CC (http://creativecommons.org/licenses/by/3.0/) licenses. 
   "Share or Remix it but please Attribute the authors." */
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}('(n($){n 1L(){7.2A=0;7.1D=[];7.S=[];7.1Z=[];7.1Z[\'\']={1b:B,V:\':\',16:\'\',U:[\'32\',\'4q\'],2M:[\'3Z\',\'3R 2C\',\'3E 2C\',\'3w\',\'3r\']};7.13={2j:\'\',1i:B,1E:[1,1,1],27:N,23:t,2R:t,2U:\'p.3Y\',1n:[20,20,8],2B:B,1T:[3D,3B],2r:t};$.14(7.13,7.1Z[\'\'])}$.14(1L.2n,{1P:\'3p\',2k:n(a){m b=7.2A++;7.1D[b]=a;r b},A:n(a){r 7.1D[a]||a},3b:n(a){1f(7.13,a||{})},1C:n(a){m b=(a.1o&&a.1o.19()==\'1V\'?a:7);o($.p.H==b){r}o($.p.1q(b)){r}m c=$.p.A(b.y);c.v=$(b);$.p.H=b;$.p.Y=t;m d=c.q(\'2r\');1f(c.1d,(d?d(b):{}));c.1s()},2K:n(a){$.p.Y=$.p.H;$.p.H=t},2I:n(a){m b=a.1Y;m c=$.p.A(b.y);m d=c.q(\'V\').x+2;c.s=0;o($.D.1U){m e=a.3J;c.s=(e>C.M(1,c.I)*d+2?c.u:C.3A(e/d))}F o($.D.1w){m f=b.1g;T(m g=0;g<=C.M(1,c.I,c.u);g++){m h=(g!=c.u?(g*d)+2:(c.u*d)+c.q(\'16\').x+c.q(\'U\')[0].x);b.1g=f.X(0,h);m i=b.1M();o(a.3n<i.3m){c.s=g;w}}b.1g=f}F o($.D.1K||$.D.3i){m f=b.1g;T(m g=0;g<=C.M(1,c.I,c.u);g++){m j=(g!=c.u?(g*d):(c.u*d)+c.q(\'16\').x);o(j>=b.3h){c.s=g;w}}}c.Q()},2g:n(a){o(a.1W>=48){r N}m b=$.p.A(7.y);2e(a.1W){z 9:r(a.34?b.1l(N):b.17(N));z 35:o(a.29){b.1r(\'\')}F{b.s=C.M(1,b.I,b.u);b.G(0)}w;z 36:o(a.29){b.O()}F{b.s=0;b.G(0)}w;z 37:b.1l(B);w;z 38:b.G(+1);w;z 39:b.17(B);w;z 40:b.G(-1);w;z 46:b.1r(\'\');w}r B},2L:n(a){m b=2Z.2Y(a.2W==4m?a.1W:a.2W);o(b<\' \'){r N}m c=$.p.A(7.y);c.2V(b);r B},2T:n(a,b){b=($.D.1K?-b/C.22(b):b);m c=$.p.A(7.y);c.G(b);a.4f()},2P:n(b,c){m d=$(b);o(7.2Q(d,7.1P)){r}m e=c.q(\'2U\');m f=c.q(\'4c\');m g=c.q(\'1n\');m h=c.q(\'2j\');m i=(!e?t:$(\'<R 1u="45" 44="\'+c.1t+\'" 42="41: 3X-3W; 2J: 3V(\\\'\'+e+\'\\\') 0 0 3U-3T; \'+\'3S: \'+g[0]+\'1c; 3Q: \'+g[1]+\'1c;\'+($.D.1U?\' 2F-3P: \'+g[0]+\'1c; 2F-3O: \'+(g[1]-18)+\'1c;\':\'\')+\'"></R>\'));d.3N(\'<R 1u="3M"></R>\').2E(h?\'<R 1u="3L">\'+h+\'</R>\':\'\').2E(i||\'\');d.3K(7.1P).2z(7.1C).3I(7.2K).3H(7.2I).3G(7.2g).3F(7.2L);o($.D.1U){d.2x(\'1V\',n(a){c.1s()})}o($.D.1w){d.2x(\'3C\',n(a){1S(n(){c.1s()},1)})}o(c.q(\'27\')&&$.2w.2v){d.2v(7.2T)}d[0].y=c.1t;o(i){i.3x(7.2u).2t(7.21).2q(7.21).3v(7.2p);i[0].y=c.1t}},2Q:n(a,b){m c=a.3u(\'1u\');r(c&&c.1R(b)>-1)},3t:n(a){7.1Q(a,B)},3s:n(a){7.1Q(a,N)},1Q:n(d,e){d=(d.Z?d:$(d));d.2m(n(){7.2l=e;m b=$.p.A(7.y);o(7.1A&&7.1A.1o.19()==\'R\'){$.p.1k(b,7.1A,(e?5:-1))}m c=7;$.p.S=$.3q($.p.S,n(a){r(a==c?t:a)});o(e){$.p.S[$.p.S.x]=7}})},1q:n(a){a=(a.Z?a[0]:(1O a==\'1N\'?$(a)[0]:a));T(m i=0;i<7.S.x;i++){o(7.S[i]==a){r N}}r B},3o:n(a,b){a=(a.Z?a:$(a))[0];m c=7.A(a.y);o(c){m d=c.1j();1f(c.1d,b||{});o(d){c.O(J W(0,0,0,d[0],d[1],d[2]))}}},3l:n(a,b){a=(a.Z?a[0]:(1O a==\'1N\'?$(a)[0]:a));m c=7.A(a.y);o(c){c.v=$(a);c.O(b)}},3k:n(a){a=(a.Z?a[0]:(1O a==\'1N\'?$(a)[0]:a));m b=7.A(a.y);m c=(b?b.1j():t);r(!c?t:J W(0,0,0,c[0],c[1],c[2]))},2p:n(a){m b=$.p.15(a);m c=$.p.A(b.y);b.3j=c.q(\'2M\')[$.p.1G(c,a)]},2u:n(a){m b=$.p.15(a);m c=b.2i;o($.p.1q(c)){r}o(c==$.p.Y){$.p.H=c;$.p.Y=t}m d=$.p.A(c.y);$.p.1C(c);m e=$.p.1G(d,a);$.p.1k(d,b,e);$.p.1J(d,e);m f=d.q(\'1T\');o(e>=3&&f[0]){$.p.1I=1S(n(){$.p.1H(d,e)},f[0]);$(b).2h(\'2q\',$.p.1F).2h(\'2t\',$.p.1F)}},1J:n(a,b){2e(b){z 0:a.O();w;z 1:a.1l(B);w;z 2:a.17(B);w;z 3:a.G(+1);w;z 4:a.G(-1);w}},1H:n(a,b){$.p.H=$.p.Y;7.1J(a,b);7.1I=1S(n(){$.p.1H(a,b)},a.q(\'1T\')[1])},1F:n(a){3g($.p.1I)},21:n(a){m b=$.p.15(a);m c=$.p.A(b.y);o(!$.p.1q(b.2i)){$.p.1k(c,b,-1)}o(!$.D.1K){$.p.H=$.p.Y}o($.p.H){c.Q()}},15:n(a){r(a.1Y?a.1Y:a.3f)},1G:n(a,b){m c=7.15(b);m d=7.2f(c);m e=7.2s(c);m f=a.q(\'2B\');m g=(f?2o:b.3e+e[0]-d[0]-($.D.1w?1:0));m h=b.3d+e[1]-d[1]-($.D.1w?1:0);m i=a.q(\'1n\');m j=(f?2o:i[0]-g);m k=i[1]-h;o(i[2]>0&&C.22(g-j)<=i[2]&&C.22(h-k)<=i[2]){r 0}m l=C.3c(g,h,j,k);r(l==g?1:(l==j?2:(l==h?3:4)))},1k:n(a,b,c){$(b).3a(\'2J-3y\',\'-\'+((c+1)*a.q(\'1n\')[0])+\'1c 3z\')},2f:n(a){m b=1m=0;o(a.2d){b=a.2c;1m=a.2b;33(a=a.2d){m c=b;b+=a.2c;o(b<0){b=c}1m+=a.2b}}r[b,1m]},2s:n(a){r[C.M(1e.2a.2D,1e.2y.2D),C.M(1e.2a.28,1e.2y.28)]}});n 1B(a){7.1t=$.p.2k(7);7.E=0;7.L=0;7.P=0;7.v=t;7.1d=1f({},a||{})}$.14(1B.2n,{q:n(a){r(7.1d[a]!=t?7.1d[a]:$.p.13[a])},1s:n(){m a=7.1j();m b=7.q(\'1i\');o(a){7.E=a[0];7.L=a[1];7.P=a[2]}F{m c=7.1h();7.E=c[0];7.L=c[1];7.P=(b?c[2]:0)}7.I=(b?2:-1);7.u=(7.q(\'1b\')?-1:(b?3:2));7.1a=\'\';7.s=0;o(7.v.K()!=\'\'){7.1z()}},1j:n(){m a=(7.v?7.v.K():\'\');m b=7.q(\'V\');m c=a.31(b);o(b==\'\'&&a!=\'\'){c[0]=a.X(0,2);c[1]=a.X(2,4);c[2]=a.X(4,6)}m d=7.q(\'U\');o(c.x>=2){m e=(a.1R(d[0])>-1);m f=(a.1R(d[1])>-1);m g=1X(c[0],10);g=(1y(g)?0:g);g=((e||f)&&g==12?0:g)+(f?12:0);m h=1X(c[1],10);h=(1y(h)?0:h);m i=(c.x>=3?1X(c[2],10):0);i=(1y(i)||!7.q(\'1i\')?0:i);r[g,h,i]}r t},1h:n(a){m b=(a!=t);o(!b){m c=J W();a=[c.2H(),c.25(),c.2G()]}m d=B;m e=7.q(\'1E\');T(m i=0;i<e.x;i++){o(d){a[i]=0}F o(e[i]>1){a[i]=C.30(a[i]/e[i])*e[i];d=!b}}r a},1z:n(){m a=7.q(\'1b\');m b=7.q(\'V\');m c=(7.1p(a?7.E:((7.E+11)%12)+1)+b+7.1p(7.L)+(7.q(\'1i\')?b+7.1p(7.P):\'\')+(a?\'\':7.q(\'16\')+7.q(\'U\')[(7.E<12?0:1)]));7.1r(c);7.Q()},Q:n(){o(!7.v){r}m a=7.v[0];m b=7.q(\'V\');m c=b.x+2;m d=(7.s!=7.u?(7.s*c):(7.u*c)-b.x+7.q(\'16\').x);m e=d+(7.s!=7.u?2:7.q(\'U\')[0].x);o(a.2X){a.2X(d,e)}F o(a.1M){m f=a.1M();f.43(\'2N\',d);f.4p(\'2N\',e-7.v.K().x);f.4n()}o(!a.2l){a.2z()}},1p:n(a){r(a<10?\'0\':\'\')+a},1r:n(a){7.v.K(a);7.v.4l(\'4k\')},1l:n(a){m b=(7.v.K()==\'\'||7.s==0);o(!b){7.s--}7.Q();7.1a=\'\';r(b&&a)},17:n(a){m b=(7.v.K()==\'\'||7.s==C.M(1,7.I,7.u));o(!b){7.s++}7.Q();7.1a=\'\';r(b&&a)},G:n(a){o(7.v.K()==\'\'){a=0}m b=7.q(\'1E\');7.O(J W(0,0,0,7.E+(7.s==0?a*b[0]:0)+(7.s==7.u?a*12:0),7.L+(7.s==1?a*b[1]:0),7.P+(7.s==7.I?a*b[2]:0)))},O:n(a){o(!a){m b=7.1h();a=J W(0,0,0,b[0],b[1],b[2])}m a=7.1x(a);m c=7.1x(7.q(\'23\'));m d=7.1x(7.q(\'2R\'));a=(c&&a<c?c:(d&&a>d?d:a));7.E=a.2H();7.L=a.25();7.P=a.2G();7.1z()},1x:n(a){o(!a){r t}a.4j(4i);a.4h(1-1);a.4g(26);r a},2V:n(a){o(a==7.q(\'V\')){7.17(B)}F o(a>=\'0\'&&a<=\'9\'){m b=(7.1a+a)*1;m c=(7.s==0&&((7.q(\'1b\')&&b<24)||(b>=1&&b<=12))?b:7.E);m d=(7.s==1&&b<2O?b:7.L);m e=(7.s==7.I&&b<2O?b:7.P);m f=7.1h([c,d,e]);7.O(J W(0,0,0,f[0],f[1],f[2]));7.1a=a}F o(!7.q(\'1b\')){m g=7.q(\'U\');o((a==g[0].X(0,1).19()&&7.E>=12)||(a==g[1].X(0,1).19()&&7.E<12)){m h=7.s;7.s=7.u;7.G(+1);7.s=h;7.Q()}}}});n 1f(a,b){$.14(a,b);T(m c 2S b){o(b[c]==t){a[c]=t}}r a}$.2w.p=n(e){r 7.2m(n(){m a=7.1o.19();o(a==\'1V\'){m b=t;T(1v 2S $.p.13){m c=7.4e(\'4d:\'+1v);o(c){b=b||{};4b{b[1v]=4a(c)}49(4o){b[1v]=c}}}m d=(d&&!b?d:J 1B(!b?e:$.14(b,e)));$.p.2P(7,d)}})};$(1e).47(n(){$.p=J 1L()})})(4r);',62,276,'|||||||this|||||||||||||||var|function|if|timeEntry|_get|return|_field|null|_ampmField|_input|break|length|_timeId|case|_getInst|false|Math|browser|_selectedHour|else|_adjustField|_lastInput|_secondField|new|val|_selectedMinute|max|true|_setTime|_selectedSecond|_showField|span|_disabledInputs|for|ampmNames|separator|Date|substring|_blurredInput|jquery||||_defaults|extend|_getSpinnerTarget|ampmPrefix|_nextField||toLowerCase|_lastChr|show24Hours|px|_settings|document|extendRemove|value|_constrainTime|showSeconds|_extractTime|_changeSpinner|_previousField|curTop|spinnerSize|nodeName|_formatNumber|isDisabled|_setValue|_parseTime|_id|class|attrName|msie|_normaliseTime|isNaN|_showTime|nextSibling|TimeEntryInstance|_doFocus|_inst|timeSteps|_releaseSpinner|_getSpinnerRegion|_repeatSpinner|_timer|_actionSpinner|opera|TimeEntry|createTextRange|string|typeof|markerClassName|_disableFor|indexOf|setTimeout|spinnerRepeat|mozilla|input|keyCode|parseInt|target|regional||_endSpinner|abs|minTime||getMinutes||useMouseWheel|scrollTop|ctrlKey|documentElement|offsetTop|offsetLeft|offsetParent|switch|_findPos|_doKeyDown|one|previousSibling|appendText|_register|disabled|each|prototype|99|_describeSpinner|mouseout|beforeShow|_findScroll|mouseup|_handleSpinner|mousewheel|fn|bind|body|focus|_nextId|spinnerIncDecOnly|field|scrollLeft|after|padding|getSeconds|getHours|_doDblClick|background|_doBlur|_doKeyPress|spinnerTexts|character|60|_connectTimeEntry|_hasClass|maxTime|in|_doMouseWheel|spinnerImage|_handleKeyPress|charCode|setSelectionRange|fromCharCode|String|round|split|AM|while|shiftKey||||||css|setDefaults|min|clientY|clientX|srcElement|clearTimeout|selectionStart|safari|title|getTimeFor|setTimeFor|boundingWidth|offsetX|reconfigureFor|hasTimeEntry|map|Decrement|disableFor|enableFor|attr|mousemove|Increment|mousedown|position|0px|floor|250|paste|500|Next|keypress|keydown|dblclick|blur|rangeOffset|addClass|timeEntry_append|timeEntry_wrap|wrap|top|left|height|Previous|width|repeat|no|url|block|inline|png|Now||display|style|moveStart|_timeid|timeEntry_control||ready||catch|eval|try|spinnerText|time|getAttribute|preventDefault|setDate|setMonth|2001|setFullYear|change|trigger|undefined|select|err|moveEnd|PM|jQuery'.split('|'),0,{}))