var EVENEMENTS = ["2018-06-09","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"]; var TITLEEVENEMENTS = ["Kermesse du primaire et rentrée des futurs 6ème du collège.","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