var currentYear;var currentMonth;var currentDay;function setCurrentDate(){data=new Date();currentYear=data.getYear();currentYear=(currentYear<2000)?currentYear+1900:currentYear;currentMonth=data.getMonth()+1;currentDay=data.getDate()}function isToday(b,c,a){if(b==currentYear&&parseInt(c,10)==currentMonth&&a==currentDay){return true}return false}function isSaturday(c,d,a){var b=new Date(c,d-1,a).getDay();if(b==6){return true}return false}function isHoliday(c,d,a){var b=new Date(c,d-1,a).getDay();if(b==0){return true}switch(parseInt(d,10)){case 1:if(a==1){return true}if(a==2&&isSunday(c,d,1)){return true}if(a==(getFirstMonday(c,d)+7)){return true}break;case 2:if(a==11){return true}if(a==12&&isSunday(c,d,11)){return true}break;case 3:if(c>1979&&c<2100){if(a==parseInt(20.8431+0.242194*(c-1980)-parseInt((c-1980)/4))){return true}if(a==(parseInt(20.8431+0.242194*(c-1980)-parseInt((c-1980)/4))+1)&&isSunday(c,d,a-1)){return true}}break;case 4:if(a==29){return true}if(a==30&&isSunday(c,d,29)){return true}break;case 5:if(a==3||a==4||a==5){return true}if(a==6&&(isSunday(c,d,3)||isSunday(c,d,4)||isSunday(c,d,5))){return true}break;case 7:if(a==(getFirstMonday(c,d)+14)){return true}break;case 9:if(a==(getFirstMonday(c,d)+14)){return true}if(c>1979&&c<2100){if(a==parseInt(23.2488+0.242194*(c-1980)-parseInt((c-1980)/4))){return true}if(a==(parseInt(23.2488+0.242194*(c-1980)-parseInt((c-1980)/4))+1)&&isSunday(c,d,a-1)){return true}}break;case 10:if(a==(getFirstMonday(c,d)+7)){return true}break;case 11:if(a==3||a==23){return true}if(a==4&&isSunday(c,d,3)){return true}if(a==24&&isSunday(c,d,23)){return true}break;case 12:if(a==23){return true}if(a==24&&isSunday(c,d,23)){return true}break}return false}function isSunday(c,d,a){var b=new Date(c,d-1,a).getDay();if(b==0){return true}return false}function getFirstMonday(b,c){var a;for(a=1;a<8;a++){if(new Date(b,c-1,a).getDay()==1){break}}return a};