
 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--;
 // Easter
 if ((month == emonth) && (date == edate)) document.write('<a href="http://fr.wikipedia.org/wiki/Pâques">Pâques</a>');
 // January
 if ((month == 0) && (date == 1)) document.write('<a href="http://fr.wikipedia.org/wiki/Nouvel_an">Jour de l\'an</a>');
 // February
 if ((month == 1) && (date == 2)) document.write('<a href="http://fr.wikipedia.org/wiki/Jour_de_la_marmotte">Jour de la marmotte</a>');
 if((month == 1) && (date == 14)) document.write('<a href="http://fr.wikipedia.org/wiki/Saint-Valentin">Saint-Valentin</a>');
 // March
 if ((month == 2) && (date == 17)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_de_la_Saint-Patrick">Saint-Patrick</a>');
 if ((month == 2) && (day == 4) && (date > 15) && (date< 24)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_des_Pères">Fête des pères</a>');
 // April
 if ((month == 3) && (date == 1)) document.write('<a href="http://www.youtube.com/watch?v=dQw4w9WgXcQ">Poisson d\'avril</a>');
 if ((month == 3) && (date == 22)) document.write('<a href="http://www.jourdelaterre.org/">Jour de la Terre</a>');
 if ((month == 3) && (day == 0) && (date > 0) && (date< 8)) document.write('<a href="http://fr.wikipedia.org/wiki/Heure_d\'été">Début de l\'heure d\'été</a>');
 // May
 if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_des_Mères">Fête des mères</a>');
 // June
 if ((month == 5) && (date == 21)) document.write('<a href="http://fr.wikipedia.org/wiki/Solstice">Solstice d\'été</a>');
 if((month == 5) && (date == 24)) document.write('<a href="http://www.fetenationale.qc.ca/">Saint-Jean-Baptiste</a>');
 // July
 if ((month == 6) && (date == 1)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_du_Canada">Fête du Canada</a>');
 if ((month == 6) && (date == 14)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_nationale_française">Fête nationale française</a>');
 // August
 if ((month == 7) && (date == 11)) document.write('<a href="http://fr.wikipedia.org/wiki/Perséides">Perséïdes</a>');
 if ((month == 7) && (date == 12)) document.write('<a href="http://fr.wikipedia.org/wiki/Perséides">Perséïdes</a>');
 if ((month == 7) && (date == 13)) document.write('<a href="http://fr.wikipedia.org/wiki/Perséides">Perséïdes</a>');
 // September
 if ((month == 8) && (day== 1)&& (date > 0) && (date< 8)) document.write('<a href="http://fr.wikipedia.org/wiki/Fête_du_Travail">Fête du travail</a>');
 // October
 if ((month == 9) && (day == 0) && (date > 24) && (date< 31)) document.write('<a href="http://fr.wikipedia.org/wiki/Heure_d\'été">Fin de l\'heure d\'été</a>');
 if ((month == 9) && (date == 31)) document.write('<a href="http://fr.wikipedia.org/wiki/Halloween">Halloween</a>');
 // November
 if ((month == 10) && (date == 1)) document.write('<a href="http://fr.wikipedia.org/wiki/Toussaint">Toussaint</a>');
 if ((month == 10) && (date == 11)) document.write('<a href="http://fr.wikipedia.org/wiki/Jour_du_Souvenir">Jour du souvenir</a>');
 if ((month == 10) && (day == 4) && (date > 23) && (date< 30)) document.write('<a href="http://fr.wikipedia.org/wiki/Action_de_grâce_(Thanksgiving)">Action de grâce</a>');
 if ((month == 10) && (date == 30) && (day == 4)) document.write('<a href="http://fr.wikipedia.org/wiki/Action_de_grâce_(Thanksgiving)">Action de grâce</a>');
 // December
 if ((month == 11) && (date == 21)) document.write('<a href="http://fr.wikipedia.org/wiki/Solstice">Solstice d\'hiver</a>');
 if ((month == 11) && (date == 24)) document.write('<a href="http://fr.wikipedia.org/wiki/Noël">Veille de Noël</a>');
 if ((month == 11) && (date == 25)) document.write('<a href="http://fr.wikipedia.org/wiki/Noël">Noël</a>');
 if ((month == 11) && (date == 26)) document.write('<a href="http://fr.wikipedia.org/wiki/Boxing_Day">Boxing day</a>');
 if ((month == 11) && (date == 31)) document.write('<a href="http://fr.wikipedia.org/wiki/Réveillon_de_la_Saint-Sylvestre">Réveillon du jour de l\'an</a>');

loaded('calendrier',myTime);;// JavaScript Document
