/*
 * Date prototype extensions. Doesn't depend on any
 * other code. Doens't overwrite existing methods.
 *
 * Adds dayNames, abbrDayNames, monthNames and abbrMonthNames static properties and isLeapYear,
 * isWeekend, isWeekDay, getDaysInMonth, getDayName, getMonthName, getDayOfYear, getWeekOfYear,
 * setDayOfYear, addYears, addMonths, addDays, addHours, addMinutes, addSeconds methods
 *
 * Copyright (c) 2006 Jörn Zaefferer and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 *
 * Additional methods and properties added by Kelvin Luck: firstDayOfWeek, dateFormat, zeroTime, asString, fromString -
 * I've added my name to these methods so you know who to blame if they are broken!
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([589l-qs-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8.N=[\'Niedziela\',\'Poniedzialek\',\'Wtorek\',\'Środa\',\'Czwartek\',\'Oątek\',\'Sobota\'];8.P=[\'Nd\',\'Pon\',\'Wt\',\'Śr\',\'Czw\',\'Oą\',\'Sb\'];8.p=[\'Styczeń\',\'Luty\',\'Marzec\',\'Kwiecień\',\'Q\',\'Czerwiec\',\'Lipiec\',\'Sierpień\',\'Wrzesień\',\'Rździernik\',\'Listopad\',\'Grudzień\'];8.A=[\'Sty\',\'Lut\',\'Mar\',\'Kwi\',\'Q\',\'Cze\',\'Lip\',\'Sie\',\'Wrz\',\'Rź\',\'Lis\',\'Gru\'];8.firstDayOfWeek=1;8.E=\'F/G/H\';8.S=\'20\';(9(){9 b(a,c){n(!8.T[a]){8.T[a]=c}};b("U",9(){m a=5.v();l(a%4==0&&a%100!=0)||a%400==0});b("V",9(){l 5.B()==0||5.B()==6});b("isWeekDay",9(){l!5.V()});b("getDaysInMonth",9(){l[o,(5.U()?29:28),o,C,o,C,o,o,C,o,C,o][5.w()]});b("getDayName",9(a){l a?8.P[5.B()]:8.N[5.B()]});b("I",9(a){l a?8.A[5.w()]:8.p[5.w()]});b("W",9(){m a=X 8("1/1/"+5.v());l Y.floor((5.J()-a.J())/86400000)});b("getWeekOfYear",9(){l Y.ceil(5.W()/7)});b("setDayOfYear",9(a){5.x(0);5.K(a);l 5});b("addYears",9(a){5.L(5.v()+a);l 5});b("addMonths",9(a){m c=5.y();5.x(5.w()+a);n(c>5.y())5.Z(-5.y());l 5});b("Z",9(a){5.K(5.y()+a);l 5});b("addHours",9(a){5.10(5.getHours()+a);l 5});b("addMinutes",9(a){5.11(5.getMinutes()+a);l 5});b("addSeconds",9(a){5.12(5.getSeconds()+a);l 5});b("zeroTime",9(){5.setMilliseconds(0);5.12(0);5.11(0);5.10(0);l 5});b("asString",9(a){m c=a||8.E;l c.q(\'H\').s(5.v()).q(\'yy\').s((5.v()+\'\').14(2)).q(\'15\').s(5.I(16)).q(\'17\').s(5.I(true)).q(\'G\').s(k(5.w()+1)).q(\'F\').s(k(5.y()))});8.fromString=9(a){m c=8.E;m e=X 8(\'01/01/1977\');m h=0;m f=c.t(\'15\');n(f>-1){19(m d=0;d<8.p.z;d++){m i=a.u(f,8.p[d].z);n(8.p[d]==i){h=8.p[d].z-4;1a}}e.x(d)}M{f=c.t(\'17\');n(f>-1){m i=a.u(f,3);19(m d=0;d<8.A.z;d++){n(8.A[d]==i)1a}e.x(d)}M{e.x(D(a.u(c.t(\'G\'),2))-1)}}m g=c.t(\'H\');n(g>-1){n(f<g){g+=h}e.L(D(a.u(g,4)))}M{n(f<g){g+=h}e.L(D(8.S+a.u(c.t(\'yy\'),2)))}m j=c.t(\'F\');n(f<j){j+=h}e.K(D(a.u(j,2)));n(isNaN(e.J())){l 16}l e};m k=9(a){m c=\'0\'+a;l c.14(c.z-2)}})();',[],73,'|||||this|||Date|function||||||||||||return|var|if|31|monthNames|split||join|indexOf|substr|getFullYear|getMonth|setMonth|getDate|length|abbrMonthNames|getDay|30|Number|format|dd|mm|yyyy|getMonthName|getTime|setDate|setFullYear|else|dayNames|Pi|abbrDayNames|Maj|Pa|fullYearStart|prototype|isLeapYear|isWeekend|getDayOfYear|new|Math|addDays|setHours|setMinutes|setSeconds||substring|mmmm|false|mmm||for|break'.split('|'),0,{}))
