var EVENEMENTS = ["2019-07-04","2019-06-25","2019-06-22","2019-06-21","2019-06-19","2019-06-15","2019-06-10","2019-05-31","2019-05-30","2019-05-18","2019-05-15","2019-04-06","2019-04-05","2019-03-18","2019-01-31","2019-01-29","2019-01-12","2018-12-21","2018-12-17","2018-12-07","2018-11-24","2018-11-14","2018-10-19","2018-10-17","2018-10-05","2018-09-25","2018-09-25","2018-09-21","2018-09-20","2018-09-18","2018-09-17","2018-09-13","2018-09-13","2018-09-11","2018-09-11","2018-09-10","2018-09-05","2018-09-04","2018-09-03","2018-07-05","2018-06-29","2018-06-28","2018-06-26","2018-06-22","2018-06-21","2018-06-13","2018-06-09","2018-06-09","2018-06-06","2018-05-28","2018-05-26","2018-04-09","2018-04-06","2018-03-12","2018-02-10","2018-01-13","2017-12-22","2017-12-18","2017-12-08","2017-11-25","2017-10-03","2017-10-02","2017-09-28","2017-09-26","2017-09-19","2017-09-16","2017-09-14","2017-09-12","2017-09-11","2017-09-07","2017-09-04"]; var CATEVENEMENTS = ["1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1"]; var TITLEEVENEMENTS = ["fin des cours pour le 1er degré","fin des cours pour les 6ème/5ème et 4ème ","kermesse du 1er degré","fin des cours pour les élèves de 3ème","Sortie au Mont St Michel (Pastorale)","pré-rentrée des nouveaux élèves de 6ème","Pentecôte (pas de cours, pas de garderie)","Pont de l’Ascension","Pont de l’Ascension","Profession de foi (Pastorale)","Oraux d’EPI – Oral officiel du Brevet","spectacle du 1er degré","spectacle du 1er degré","Semaine d’animations particulières","Réunions parents/professeurs pour le collège","Réunions parents/professeurs pour le collège","oral de stage des élèves de 3e","Journée pédagogique collège et 1er degré (pas de cours, pas de garderie)","stage en entreprise des élèves de 3e","Marche de noël","Portes ouvertes","Confirmation (Pastorale)","Journée pédagogique 1er degré (garderie sur inscription)","Journée pédagogique collège (pas de cours, pas de garderie)","journée pédagogique 1er degré (garderie sur inscription)","Accueil des nouveaux parents","Assemblée générale A.P.E.L","Photos de classes et individuelles maternelles et primaire ","Photos de classes et individuelles maternelles et primaire ","Réunion de parents de la rentrée du cycle 1 (maternelles)","Réunion catéchisme (pour les élèves du CE2 au CM2) ","Réunion de parents de la rentrée 3e et ULIS collège","Réunion de parents de la rentrée du cycle 3 (CM1et CM2)","Réunion de parents de la rentrée 6e","Réunion de parents du cycle 2 (CP, CE1 et CE2) et ULIS école.","Réunion de parents de la rentrée 5e et 4e","photos de classes et individuelles collège","Photos de classes et individuelles collège","RENTREE DES CLASSES","Fin d\'année scolaire pour le primaire.","Brevet des collèges.","Brevet des collèges.","Fin d\'année scolaire pour les 6e, 5e, 4e et ULIS.","Fin d\'année scolaire pour les 3e.","Remise des prix 3e.","Sortie au Mont Saint Michel (Pastorale).","Kermesse du primaire et rentrée des futurs 6ème du collège.","Messe de fin d\'année.","Examen du PET.","Séjour Sportif.","Première communion.","Voyages des 3èmes.","Spectacle du 1er degré.","Semaine d’animations particulières.","Forum des métiers.","Oral de stage 3e","Journées pédagogiques","Stage des 3èmes. ","Marché de Noël.","Portes ouvertes.","Pèlerinage à Lourdes.","Voyages d’intégration des 6ème.","A.P.E.L accueil nouveaux parents.","réunion de rentrée cycle 3","réunion de rentrée cycle1","accueil des correspondants américains.","réunion de rentrée 3e et ulis collège","réunion de rentrée 6e et cycle 2","réunion de rentrée 5e","Photos de toutes les classes","Rentrée scolaire."]; function dateIsADivToOpen(year, month, day) { var retour_cat = new Array(); var retour_title = new Array(); var retour_content = new Array(); var retour_id = new Array(); var retour_date = new Array(); var retour_time = new Array(); var nbre_events = 0; var m = EVENEMENTS; var c = CATEVENEMENTS; var t = TITLEEVENEMENTS; var content = CONTENTEVENEMENTS; var id = IDEVENEMENTS; var df = DATEFORMATTED; var tf = TIMEFORMATTED; var month = month+1; if (month<10) { month12 = "0"+month.toString(); } else { month12 = month.toString(); } if (day<10) { day31 = "0"+day.toString(); } else { day31 = day.toString(); } var date = year+"-"+month12+"-"+day31; for (var i=0;i