	var myfont_face = "Arial";
	var myfont_size = "10";
	var myfont_color = "#6390A7";
	var myback_color = "#FFFFFF";
	var mywidth = 65;
	var my12_hour = 1;

	var dn = ""; var old = "";

	if (document.all||document.getElementById) { document.write('<span id="LiveClockIE" style="width:'+mywidth+'px; background-color:'+myback_color+'"></span>'); }
	else if (document.layers) { document.write('<ilayer bgColor="'+myback_color+'" id="ClockPosNS"><layer width="'+mywidth+'" id="LiveClockNS"></layer></ilayer>'); }
	else { old = "true"; show_clock(); }

	function show_clock() {
		//show clock in NS 4
		if (document.layers)
                document.ClockPosNS.visibility="show"
		if (old == "die") { return; }

		var Digital = new Date();
		var hours = Digital.getUTCHours() + 2;
		var minutes = Digital.getUTCMinutes();
		var seconds = Digital.getUTCSeconds();
		var jours = '0' + Digital.getUTCDate();		
		jours = jours.substr(jours.length -2, 2);
		var mois = '0' + (Digital.getUTCMonth() + 1);
		mois = mois.substr(mois.length -2, 2);		
		var annees = Digital.getUTCFullYear();
		var ladate = annees+mois+jours;
		
		/* heure d'ete */
		var bModif = false;
		if (ladate < '20021027') {
			hours = hours;
		}
		if (ladate == '20021027' && hours < 3) {
			bModif = true;
			hours = hours;
		}
		/* heure d'hiver */
		if ((ladate >= '20021027') && (ladate < '20030330') && !bModif) {
				hours = hours - 1;
		}
		
		bModif = false;
		
		if (ladate == '20030330' && hours < 2) {
				bModif = true;
				hours = hours - 1;
		}
		
		/* heure d'ete */
		if ((ladate >= '20030330') && (ladate < '20031026') && !bModif) {
				hours = hours;
		}
		
		bModif = false;
		
		if (ladate == '20031026' && hours < 3) {
				bModif = true;
				hours = hours ;
		}
		/* heure d'hiver */
		if ((ladate >= '20031026') && (ladate < '20040328') && !bModif) {
				hours = hours - 1;
		}
		
		bModif = false;
		
		if (ladate == '20040328' && hours < 2) {
				bModif = true;
				hours = hours - 1;
		}	
		/* heure d'ete */
		if ((ladate >= '20040328') && (ladate < '20041031') && !bModif) {
				hours = hours;
		}
		
		bModif = false;
		
		if (ladate == '20041031' && hours < 3) {
				bModif = true;
				hours = hours ;
		}
		/* heure d'hiver */
		if ((ladate >= '20041031') && (ladate < '20050327') && !bModif) {
				hours = hours - 1;
		} 
		
		bModif = false;
		
		if (ladate == '20050327' && hours < 2) {
				bModif = true;
				hours = hours - 1;
		}
		/* heure d'ete */
		if ((ladate >= '20050327') && (ladate < '20041031') && !bModif) {
				hours = hours;
		}
		
		bModif = false;
		
		if (ladate == '20041031' && hours < 3) {
				bModif = true;
				hours = hours ;
		}	
		
		/* heure d'ete 2005 */
		if ((ladate >= '20051031') && (ladate < '20060327') && !bModif) {
				hours = hours - 1;
		}
		
		bModif = false;
		
		if (ladate == '20060327' && hours < 3) {
				bModif = true;
				hours = hours ;
		}	
		
		
		
		
		/* heure d'ete */
		if ((ladate >= '20060328') && (ladate < '20061031') && !bModif) {
				hours = hours;
		}
		
		bModif = false;
		
		if (ladate == '20061031' && hours < 3) {
				bModif = true;
				hours = hours ;
		}
		/* heure d'hiver */
		if ((ladate >= '20061031') && (ladate < '20070327') && !bModif) {
				hours = hours - 1;
		} 
		
		bModif = false;
		
		if (ladate == '20070327' && hours < 2) {
				bModif = true;
				hours = hours - 1;
		}
		
		
		
		
		
		if (my12_hour) {
			dn = "am";
			if (hours == 12) {dn = "pm"; }
			if (hours == 0) { hours = 12; }
			if (hours == 24) { hours = 0; }
			if (hours > 12) { dn = "pm"; hours = hours - 12; }
		} else {
			dn = "";
		}
		if (minutes <= 9) { minutes = "0"+minutes; }
		if (seconds <= 9) { seconds = "0"+seconds; }

		myclock = '';
		myclock += '<font color="'+myfont_color+'" face="'+myfont_face+'" size="0">' + hours+':'+minutes+':'+seconds+'&nbsp;'+dn;
		myclock += '</font>';
		
		if (old == "true") {		
			document.write(myclock);
			old = "die"; return;	
		}
		
		if (document.layers) {
			clockpos = document.ClockPosNS;
			liveclock = clockpos.document.LiveClockNS;
			liveclock.document.write(myclock);
			liveclock.document.close();
		} else if (document.all) {
			LiveClockIE.innerHTML = myclock;
		} else if (document.getElementById) {
			document.getElementById("LiveClockIE").innerHTML = myclock;
		}

		setTimeout("show_clock()",1000);
}

