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++; // So it's now between 1 - 12.

	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 à la St Valentin !";
}
function march(date)
{
	if(date==21)
		date_statement="C'est le printemps !";
}
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'été !";
}
function july(date)
{
	if(date==14)
		date_statement="Bonne Fête 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="Deja sur le Net !,";
	if(time>=8 && time<12)
		time_statement="Bonne matinee,";
	if(time>=12 && time<13)
		time_statement="Bon appetit,";
	if(time>=13 && time<17)
		time_statement="Bon apres-midi,";
	if(time>=17 && time<22)
		time_statement="Bonsoir,";
	if(time>=22 || time<6)
		time_statement="Salut les couche-tard,";
}
time_of_day();
todays_date();
document.writeln("<u><font size='2' color='#6699FF'>"+time_statement+" nous sommes le "+document.day+" "+today.getDate()+" "+document.month+". "+date_statement+"</u>");