var date_statement="";
var time_statement="";
var today=new Date();
var month="";
var day="";
function todays_date() {
var month=today.getMonth();
var day_of_week=today.getDay();
date_statement=""


document.month=""
month++;
if(month==1) {
january(today.getDate());
document.month="janvier";
}
if(month==2) {
february(today.getDate());
document.month="fevrier";
}
if(month==3) {
march(today.getDate());
document.month="mars";
}
if(month==4) {
april(today.getDate());
document.month="avril";
}
if(month==5) {
may(today.getDate());
document.month="mai";
}
if(month==6) {
june(today.getDate());
document.month="juin";
}
if(month==7) {
july(today.getDate());
document.month="juillet";
}
if(month==8) {
august(today.getDate());
document.month="aout";
}
if(month==9) {
september(today.getDate());
document.month="septembre";
}
if(month==10) {
october(today.getDate());
document.month="octobre";
}
if(month==11) {
november(today.getDate());
document.month="novembre";
}
if(month==12) {
december(today.getDate());
document.month="decembre";
}


document.day=""
if(day_of_week==0)
document.day="dimanche";
if(day_of_week==1)
document.day="lundi";
if(day_of_week==2)
document.day="mardi";
if(day_of_week==3)
document.day="mercredi";
if(day_of_week==4)
document.day="jeudi";
if(day_of_week==5)
document.day="vendredi";
if(day_of_week==6)
document.day="samedi";
}

function january(date) {
if(date==1)
date_statement="Bonne Annee !";
}
function february(date) {
if(date==14)
date_statement="Pensez a la St Valentin !";
}
function march(date) {
if(date==21)
date_statement="C'est le printemps !";
}
function march(date) {
if(date==28)
date_statement="Penser à avancer d'une heure votre montre !";
}
function april(date) {
if(date==1)
date_statement="Mefiez-vous des poissonniers !";
}
function may(date) {
if(date==1)
date_statement="Travailleurs, Travailleuses, bon repos !";
}
function june(date) {
if(date==21)
date_statement="C'est l'ete !";
}
function july(date) {
if(date==21)
date_statement="Bonne Fete Nationale !";
}
function august(date) {
}
function september(date) {
if(date==21)
date_statement="C'est l'automne !";
}
function october(date) {
if(date==31)
date_statement="Happy Halloween !";
}
function november(date) {
}
function december(date) {
if(date==21)
date_statement+="Couvrez-vous c'est l'hiver !";
if(date==25)
date_statement="Joyeux Noel !";
if(date==31)
date_statement="Bon reveillon !";
}

function time_of_day() {
var time=today.getHours();
time_statement=""
if(time>=6 && time<8)
time_statement="Déja dans la cave !"
if(time>=8 && time<12)
time_statement="Bonne matinée"
if(time>=12 && time<13)
time_statement="Bon appétit"
if(time>=13 && time<19)
time_statement="Bon après-midi"
if(time>=19 && time<20)
time_statement="Tu viens pour l'apéro"
if(time>=20 && time<22)
time_statement="Bonne soirée"
if(time>=22 || time<6)
time_statement="Tu n'es pas encore couché"
}
