
   var intCurrentHour = 0;
   var intCurrentMinute = 0
   var intCurrentSecond = 0;
   var num2ShortMonth = new Array('Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun', 'Jui', 'Aou', 'Sep', 'Oct', 'Nov', 'Déc');
   var weekdays = new Array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');
   var today = new Date();
   var intCurrentYear = today.getFullYear();
   var intSwap;
var monthName = new Array(
 new Array(
  'JOUR de l\'AN', ' St Basile', ' St Geneviève', ' St Odilon', ' St Edouard', ' St Mélainie', ' St Raymond', ' St Lucien', ' St Alix', ' St Guillaume', ' St Paulin', ' St Tatiana', ' St Yvette', ' St Nina', ' St Rémi', ' St Marcel', ' St Roseline', ' St Prisca', ' St Marius', ' St Sébastien', ' St Agnès', ' St Vincent', ' St Barnard', ' St Fr. de Sales', ' St Conv. S. Paul', ' St Paul', ' St Angèle', ' St Th. d\'Aquin', ' St Gildas', ' St Martine', ' St Marcelle'
 ),
 new Array(
  ' St Ella', ' St Présentation', ' St Blaise', ' St Véronique', ' St Agathe', ' St Gaston', ' St Eugénie', ' St Jacqueline', ' St Appoline', ' St Arnaud', ' St N.-D. Lourdes', ' St Félix', ' St Béatrice', ' St Valentin', ' St Claude', ' St Julienne', ' St Alexis', ' St Bernadette', ' St Gabin', ' St Aimée', ' St P. Damien', ' St Isabelle', ' St Lazare', ' St Modeste', ' St Roméo', ' St Nestor', ' St Honorine', ' St Romain', ' St Auguste'
 ),
 new Array(
  ' St Aubin', ' St Charles le B.', ' St Guénolé', ' St Casimir', ' St Olive', ' St Colette', ' St Félicité', ' St Jean de Dieu', ' St Françoise', ' St Vivien', ' St Rosine', ' St Justine', ' St Rodrigue', ' St Mathilde', ' St Louise', ' St Bénédicte', ' St Patrice', ' St Cyrille', ' St Joseph', 'PRINTEMPS', ' St Clémence', ' St Léa', ' St Victorien', ' St Cath. de Suè.', ' St Humbert', ' St Larissa', ' St Habib', ' St Gontran', ' St Gwladys', ' St Amédée', ' St Benjamin'
 ),
 
 new Array(
  ' St Hugues', ' St Sandrine', ' St Richard', ' St Isidore', ' St Irène', ' St Marcellin', ' St J.-B. de la S.', ' St Julie', ' St Gauthier', ' St Fulbert', ' St Stanislas', ' St Jules', ' St Ida', ' St Maxime', ' St Paterne', ' St Benoît-J.', ' St Anicet', ' St Parfait', ' St Emma', ' St Odette', ' St Anselme', ' St Alexandre', ' St Georges', ' St Fidèle', ' St Marc', ' St Alida', ' St Zita', ' St Jour du Souv.', ' St Cath. de Si.', ' St Robert'
 ),
 
 new Array(
  'F. du TRAVAIL', ' St Boris', ' St Phil., Jacq.', ' St Sylvain', ' St Judith', ' St Prudence', ' St Gisèle', 'Victoire 45', ' St Pacôme', ' St Solange', ' St Estelle', ' St Jean.-d\'Arc', ' St Rolande', ' St Matthias', ' St Denise', ' St Honoré', ' St Pascal', ' St Eric', ' St Yves', ' St Bernardin', ' St Constantin', ' St Emile', ' St Didier', ' St Donatien', ' St Sophie', ' St Bérenger', ' St Augustin', ' St Germain', ' St Aymar', ' St Ferdinand', 'Visitation'
 ),
 new Array(
  ' St Justin', ' St Blandine', ' St Kévin', ' St Clotilde', ' St Igor', ' St Norbert', ' St Gilbert', ' St Médard', ' St Diane', ' St Landry', ' St Barnabé', ' St Guy', ' St Antoine de P.', ' St Elisée', ' St Germaine', ' St J.-Fr. Régis', ' St Hervé', ' St Léonce', ' St Romuald', ' St Silvère', 'ETE', ' St Alban', ' St Audrey', ' St Jean-Bapt.', ' St Prosper', ' St Anthelme', ' St Fernand', ' St Irénée', ' St Pierre, Paul', ' St Martial'
 ),
 new Array(
  ' St Thierry', ' St Martinien', ' St Thomas', ' St Florent', ' St Antoine', ' St Mariette', ' St Raoul', ' St Thibault', ' St Amandine', ' St Ulrich', ' St Benoît', ' St Olivier', ' St Henri, Joël', ' FETE NATION.', ' St Donald', ' St N-D Mt-Carmel', ' St Charlotte', ' St Frédéric', ' St Arsène', ' St Marina', ' St Victor', ' St Marie-Mad.', ' St Brigitte', ' St Christine', ' St Jacques', ' St Anne, Joach.', ' St Nathalie', ' St Samson', ' St Marthe', ' St Juliette', ' St Ignace de L.'
 ),
 new Array(
  ' St Alphonse', ' St Julien-Eym.', ' St Lydie', ' St J.-M. Vianney', ' St Abel', ' St Transfiguration', ' St Gaétan', ' St Dominique', ' St Amour', ' St Laurent', ' St Claire', ' St Clarisse', ' St Hippolyte', ' St Evrard', 'ASSOMPTION', ' St Armel', ' St Hyacinthe', ' St Hélène', ' St Jean-Eudes', ' St Bernard', ' St Christophe', ' St Fabrice', ' St Rose de L.', ' St Barthélemy', ' St Louis', ' St Natacha', ' St Monique', ' St Augustin', ' St Sabine', ' St Fiacre', ' St Aristide'
 ),
 new Array(
  ' St Gilles', ' St Ingrid', ' St Grégoire', ' St Rosalie', ' St Raïssa', ' St Bertrand', ' St Reine', ' St Nativité N.-D.', ' St Alain', ' St Inès', ' St Adelphe', ' St Apollinaire', ' St Aimé', ' St La Ste Croix', ' St Roland', ' St Edith', ' St Renaud', ' St Nadège', ' St Emilie', ' St Davy', ' St Matthieu', ' St Maurice', 'AUTOMNE', ' St Thècle', ' St Hermann', ' St Côme, Dam.', ' St Vinc. de P.', ' St Venceslas', ' St Michel', ' St Jérôme'
 ),
 new Array(
  ' St Thér. de l\'E.', ' St Léger', ' St Gérard', ' St Fr. d\'Assise', ' St Fleur', ' St Bruno', ' St Serge', ' St Pélagie', ' St Denis', ' St Ghislain', ' St Firmin', ' St Wilfried', ' St Géraud', ' St Juste', ' St Thér. d\'Avila', ' St Edwige', ' St Baudoin', ' St Luc', ' St René', ' St Adeline', ' St Céline', ' St Elodie', ' St Jean de C.', ' St Florentin', ' St Crépin', ' St Dimitri', ' St Emeline', ' St Simon, Jude', ' St Narcisse', ' St Bienvenue', ' St Quentin'
 ),
 new Array(
  'TOUSSAINT', ' St Défunt', ' St Hubert', ' St Charles', ' St Sylvie', ' St Bertille', ' St Carine', ' St Geoffroy', ' St Théodore', ' St Léon', 'ARMISTICE', ' St Christian', ' St Brice', ' St Sidoine', ' St Albert', ' St Marguerite', ' St Elisabeth', ' St Aude', ' St Tanguy', ' St Edmond', ' St Prés. Marie', ' St Cécile', ' St Clément', ' St Flora', ' St Cath. L.', ' St Delphine', ' St Séverin', ' St Jacq. de la M.', ' St Saturnin', ' St André'
 ),
 new Array(
  ' St Florence', ' St Viviane', ' St Xavier', ' St Barbara', ' St Gérald', ' St Nicolas', ' St Ambroise', ' St Im. Concept.', ' St Pierre Fourier', ' St Romaric', ' St Daniel', ' St Jean. Fr.-Ch.', ' St Lucie', ' St Odile', ' St Ninon', ' St Alice', ' St Gaël', ' St Gatien', ' St Urbain', ' St Abraham', ' St Pierre C.', ' St HIVER', ' St Armand', ' St Adèle', 'NOËL', ' St Etienne', ' St Jean', ' St Innocents', ' St David', ' St Roger', ' St Sylvestre'
 )
);
   function refreshTime()
   {
     var strTime = '';
     if (intCurrentHour < 10)
      strTime += '0';
     strTime += intCurrentHour + ':';
     if (intCurrentMinute < 10)
      strTime += '0';
     strTime += intCurrentMinute;
     document.getElementById('panelTime').innerHTML = strTime;   
   }
   function refreshSecond()
   {
    intCurrentSecond = (intCurrentSecond + 1) % 60;
    if (intCurrentSecond == 0)
    {
     intCurrentMinute = (intCurrentMinute + 1) % 60;
     if (intCurrentMinute == 0)
     {
      intCurrentHour = (intCurrentHour + 1) % 24;
     }
     refreshTime();
    }
    var strTime = '';
    var strSecond = intCurrentSecond;
    if (intCurrentSecond < 10)
     strSecond = '0' + strSecond;
    document.getElementById('panelSecond').innerHTML = ':' + strSecond;    
   }
   function SwitchFest(){
   		if (document.getElementById('panelFest').style.display=='block'){
			document.getElementById('panelFest').style.display='none';
			document.getElementById('panelFestTo').style.display='block';
			window.setTimeout("SwitchFest()",4000);
		}else{
			document.getElementById('panelFest').style.display='block';
			document.getElementById('panelFestTo').style.display='none';
			window.setTimeout("SwitchFest()",12000);
		}
   }
   function displayDate()
   {
    var strDay = today.getDate();
    var strDate = num2ShortMonth[today.getMonth()] + ' ' + intCurrentYear;
    intCurrentHour = today.getHours();
    intCurrentMinute = today.getMinutes();
    intCurrentSecond = today.getSeconds();
    document.getElementById('panelWeekday').innerHTML = weekdays[today.getDay()];
    document.getElementById('panelDay').innerHTML = strDay;
    document.getElementById('panelDate').innerHTML = strDate;
    refreshTime();
    refreshSecond();
	 document.getElementById('panelFest').innerHTML=monthName[today.getMonth()][today.getDate()-1];
	 
	 today.setTime(today.getTime()+24*3600*1000);
	 document.getElementById('panelFestTo').innerHTML="Demain : "+monthName[today.getMonth()][today.getDate()-1];
	 
    	window.setInterval("refreshSecond()", 1000);
		window.setTimeout("SwitchFest()",4000);
   }
   		document.write('<span id="panelWeekday" style="font-size:13px; font-weight:bold; color:#ee0000;">xxx xxxx</span> ');
   		document.write('<span id="panelDay" style="font-size:13px; font-weight:bold; color:#ee0000;">xx</span> ');
  		 document.write('<span id="panelDate" style="font-size:13px; font-weight:bold; color:#ee0000;">xxx xxxx</span><br />');
  		 document.write('<span id="panelTime" style="font-size:13px; font-weight:bold; color:#888888;">xx:xx</span><span id="panelSecond" style="font-size:9px; color:#888888;">:xx</span><br />');
  		 document.write('<span id="panelFest" style="display:block;font-size:13px; font-weight:bold; color:#888888;">xxx xxxx</span>');
  		 document.write('<span id="panelFestTo" style="display:none;font-size:12px; font-weight:bold; color:#888888;">xxx xxxx</span>');
   		displayDate();