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++; // Entre 1 et 12 ^^
if(month==1) {
january(today.getDate());
document.month="janvier";
}
if(month==2) {
february(today.getDate());
document.month="f&eacute;vrier";
}
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="ao&ucirc;t";
}
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="d&eacute;cembre";
}
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="Meilleurs voeux &agrave; vous et &agrave; votre famille !<BR>";
}
function february(date) {
if(date==14)
date_statement="Pensez &aacute; la St Valentin ! !<BR>";
}
function march(date) {
if(date==21)
date_statement="C'est le printemps !!!";
}
function april(date) {
if(date==1)
date_statement="C'est le moment de pr&eacute;parer vos poissons...";
}
function may(date) {
if(date==1)
date_statement="Voil&agrave; un jour de repos, car...<BR>";
}
function june(date) {
if(date==21)
date_statement="C'est l'&eacute;t&eacute; et la f&ecirc;te de la musique !<BR>";
}
function july(date) {
if(date==14)
date_statement="Bonne f&ecirc;te nationale!<BR>";
}
function august(date) {
if(date==15)
date_statement="Autrefois, &agrave; Paris, les rues &eacute;taient d&eacute;sertes !!!<BR>";
}
function september(date) {
if(date==11)
date_statement="Souvenons-nous des attentats de 2001...<BR>";
if(date==21)
date_statement="Voil&agrave; d&eacute;j&agrave; l'automne...";
}
function october(date) {
if(date==1)
date_statement="";
}
function november(date) {
if(date==1)
date_statement="C'est la Toussaint !<BR>";
if(date==2)
date_statement="Pensons &agrave; nos disparus !<BR>";
}
function december(date) {
if(date==21)
date_statement="Brrr... l'hiver vient d'arriver !!!<BR>";
if(date==25)
date_statement="Joyeux No&euml;l &agrave; vous et &agrave; votre famille !<BR>";
if(date==31)
date_statement="Tr&egrave;s bon r&eacute;veillon !<BR>";
}

function time_of_day() {
var time=today.getHours();
time_statement=""
if(time>=6 && time<8)
time_statement="Vous &ecirc;tes bien matinal !<BR>"
if(time>=8 && time<12)
time_statement="Bonne matin&eacute;e !<BR>"
if(time>=12 && time<13)
time_statement="Bon app&eacute;tit !<BR>"
if(time>=13 && time<17)
time_statement="Bon apr&egrave;s-midi !<BR>"
if(time>=17 && time<18)
time_statement="Bonne fin d'apr&egrave;s-midi !<BR>"
if(time>=18 && time<22)
time_statement="Bonne soir&eacute;e !<BR>"
if(time>=22 || time<6)
time_statement="Heureux de vous trouver sur le Web &agrave; cette heure tardive !<BR>"
}

time_of_day();
todays_date();
document.writeln("  "+time_statement+" "+date_statement+"")

// -- Fin du script
