// JavaScript Document
<!--
/*
 Java Script Calendar is a small script for web pages which displays current Day of the week, Month, Date and Year along with Holidays notification.
  Just like this working demo below. It will work with Netscape 2++, Microsoft 3++ and Opera 3++ web browsers.
                                    Tuesday, November 24, 1998
About 70 holidays from all over the world are displayed by Calendar (if you know other ones, let me know, I will add them).
 It even calculates Easter Sunday date! To see how it works change the date on your computer to January, 1,
for example and re-load the page.
Installation is very simple. Just copy the script below, everything between SCRIPT and SCRIPT tags (including tags themselves)
 and paste in the place you want it to appear on your page. You can customize the way
 it looks by changing document.write function arguments just after month names definitions. Java Script Calendar is free without
  any limitations. Copyright © Eugene Vassiltsov. But please, let me know if you will use it.
*/
 calendar = new Date();
 day = calendar.getDay();
 month = calendar.getMonth();
 date = calendar.getDate();
 year = calendar.getYear();
 if (year < 1000)
 year+=1900
 cent = parseInt(year/100);
 g = year % 19;
 k = parseInt((cent - 17)/25);
 i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
 i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
 j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
 l = i - j;
 emonth = 3 + parseInt((l + 40)/44);
 edate = l + 28 - 31*parseInt((emonth/4));
 emonth--;
 var dayname = new Array ('Nedeľa', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota');
 var monthname = new Array ('Januára', 'Februára', 'Marca', 'Apríla', 'Mája', 'Júna', 'Júla', 'Augusta', 'Septembra', 'Októbra', 'Novembra', 'Decembra');
 document.write(dayname[day] + ",  ");
 if (date< 10) document.write("0" + date + ". ");
         else document.write(date + ". ");
 document.write(monthname[month] + " ");
 document.write(year + "    <font color=550000>");
 // Easter
 if ((month == emonth) && (date == edate)) document.write("Velkonočná nedeľa");
 // January
 if ((month == 0) && (date == 1)) document.write("Nový rok");
 if ((month == 0) && (date == 4)) document.write("Quadrantidy");
 if ((month == 0) && (date == 6)) document.write("Taja králi");
 if ((month == 0) && (date == 27)) document.write("Narodil sa Amadeus Mozart(1756)");
 if ((month == 0) && (day == 1) && (date > 14) && (date< 22)) document.write("Narodil sa Martin Luther King");
 // February
 if ((month == 1) && (date == 2)) document.write("Hromnice");
 if ((month == 1) && (date == 8)) document.write("Narodil sa Jules Verne(1828)");
 if ((month == 1) && (date == 15)) document.write("Narodil sa Galileo Galilei(1564)");
 // March
 if ((month == 2) && (date == 18)) document.write("A.A.Leonov 1.človek vo volnom priestore(1965)");
// if ((month == 2) && (date == 17)) document.write("St. Patrick's Day");
 if ((month == 4) && (date == 20)) document.write("Jarná rovnodennosť");
 if ((month == 2) && (date == 21)) document.write("Narodil sa J.S. Bach(1685)");
 if ((month == 2) && (date == 28)) document.write("Deň učiteľov");
 // April
 if ((month == 3) && (date == 1)) document.write("Deň bláznov");
 if ((month == 3) && (date == 8)) document.write("Narodil sa Budha");
 if ((month == 3) && (date == 12)) document.write("Virginidy, Vyrocie 1.letu človeka do vesmíru");
// if ((month == 3) && (date == 15) && (day != 0)) document.write("Income Tax Day (USA),   ");
// if ((month == 3) && (date == 16) && (day == 1)) document.write("Income Tax Day (USA) ");
 if ((month == 3) && (date == 15)) document.write("Narodil sa Leonardo da Vinci(1452)");
 if ((month == 3) && (date == 22)) document.write("Deň Zeme, Lyridy");
 if ((month == 3) && (date == 29)) document.write("alpha-Scorpiidy");
 if ((month == 3) && (day == 0) && (date > 0) && (date< 8)) document.write("Prechod na letný čas");
 // May
 if ((month == 4) && (date == 1)) document.write("Sviatok práce");
 if ((month == 4) && (date == 6)) document.write("eta-Aquaridy");
 if ((month == 4) && (date == 8)) document.write("Deň oslobodenia od fašiszmu");
 if ((month == 4) && (date == 13)) document.write("alpha-Scorpiidy");
 if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write("Deň matiek");
// if ((month == 4) && (day == 1) && (date > 24)) document.write("Memorial Day");
 if ((month == 4) && (date == 25)) document.write("Na nebovstúpenie Pána");
 // June
 if ((month == 5) && (date == 1)) document.write("MDD");
 if ((month == 5) && (date == 4)) document.write("Turíce");
 if ((month == 5) && (date == 10)) document.write("Ophiuchidy");
 if ((month == 5) && (date == 15)) document.write("Božie teľo");
 if ((month == 5) && (date == 21)) document.write("Letný Slnovrat, Ophiuchidy");
 if ((month == 5) && (day == 0) && (date > 15) && (date< 24)) document.write("Deň otcov");
 if ((month == 5) && (date == 24)) document.write("Sv.Jánský deň a noc");
 // July
 if ((month == 6) && (date == 5)) document.write("sv. Cyril a sv. Metoda");
 if ((month == 6) && (date == 8)) document.write("Capricornidy");
 if ((month == 6) && (date == 16)) document.write("Capricornidy");
 if ((month == 6) && (date == 21)) document.write("Výročie založenia TAS n.o., alpha-Cygnidy");
 if ((month == 6) && (date == 26)) document.write("Capricornidy");
 if ((month == 6) && (date == 29)) document.write("delta-Aquaridy");
 if ((month == 6) && (date == 31)) document.write("Piscis Australidy");
 // August
 if ((month == 7) && (date == 3)) document.write("alpha-Capricornidy");
 if ((month == 7) && (date == 4)) document.write("Deň Matice Slovenskej");
 if ((month == 7) && (date == 7)) document.write("iota-Aquaridy");
 if ((month == 7) && (date == 13)) document.write("Perseidy");
 if ((month == 7) && (date == 15)) document.write("Nanebovzatie Panny Márie");
 if ((month == 7) && (date == 31)) document.write("alpha-Cygnidy");
 if ((month == 7) && (date == 29)) document.write("SNP");
 // September
 if ((month == 8) && (date == 1)) document.write("Deň Ústavy SR");
 if ((month == 8) && (date == 1)) document.write("Piscidy");
 if ((month == 8) && (date == 15)) document.write("Sedembolestná Panna Mária");
 if ((month == 8) && (date == 21)) document.write("Piscidy");
 if ((month == 8) && (date == 23)) document.write("Jesenná rovnodenosť");
 //if ((month == 8) && (day== 1)&& (date > 0) && (date< 8)) document.write("Labor Day (USA)");
 // October
 if ((month == 9) && (date == 6)) document.write("Deň obetí Dukly");
 if ((month == 9) && (date == 14)) document.write("Piscidy");
 if ((month == 9) && (date == 23)) document.write("Orionidy");
 if ((month == 9) && (date == 28)) document.write("Deň vzniku ČeskoSlovenského štátu(1918)");
 if ((month == 9) && (date == 29)) document.write("Narodil sa Ľudovíta Štúra");
// if ((month == 9) && (day == 0) && (date == 31)) document.write("Daylight Savings Time Ends");
 if ((month == 9) && (date == 30)) document.write("Výročie deklarácie slovenského národa");
 // November
 if ((month == 10) && (date == 1)) document.write("Deň všetkých svätých");
 if ((month == 10) && (date == 4)) document.write("Tauridy");
 if ((month == 10) && (date == 17)) document.write("Deň boja za slobodu");
 if ((month == 10) && (date == 18)) document.write("Leonidy");
 // December
 if ((month == 11) && (date == 9)) document.write("Puppidy-Velidy");
 if ((month == 11) && (date == 14)) document.write("Geminidy");
 if ((month == 11) && (date == 22)) document.write("Zimný Slnovrat");
 if ((month == 11) && (date == 23)) document.write("Ursidy");
 if ((month == 11) && (date == 24)) document.write("Štedrý deň");
 if ((month == 11) && (date == 25)) document.write("1.sviatok vianočný)");
 if ((month == 11) && (date == 26)) document.write("2.sviatok vianočný, Puppidy-Velidy");
 if ((month == 11) && (date == 31)) document.write("Nový rok");
 document.write("<br></font>");
//-->
