//Copyright je ne sais ki mais refais 2002 Twister ;-P

///////////////////////////////////////////////////////////
/////////////// CONFIGURATION /////////////////////////////

	// Set the clock's font face:
	var LC_Font_Face = "Helvetica";

	// Set the clock's font size (in point):
	var LC_Font_Size = "8";

	// Set the clock's font color:
	var LC_Font_Color = "#000000";
	
	// Set the clock's background color:
	var LC_Back_Color = "#000000";

	// Set any extra HTML to go either side the clock here:
	var LC_OpenTags = "";
	var LC_CloseTags = "";

	// Set the width of the clock (in pixels):
	var LC_Width = 300;

	// Display the time in 24 or 12 hour time?
	// 0 = 24, 1 = 12
	var LC_12_Hour = 0;

	// Date Options:
	// 0 = No Date, 1 = dd/mm/yy, 2 = mm/dd/yy, 3 = DDDD MMMM, 4 = DDDD MMMM YYYY
	var LC_DisplayDate = 3;

	// Abbreviate Day/Month names?
	// 0 = No, 1 = Yes;
	var LC_Abbrev = 0;

	// Your GMT Offset:
	// This will allow the clock to always be set to your local
	// time, rather than that of the visitor's system clock.
	// Set to "" to disable this feature.
	var LC_GMT = "";
	// Note that this does not take into account daylight savings.
	// You should add 1 to your GMT offset if daylight savings is
	// currently active in your area.

/////////////// END CONFIGURATION /////////////////////////
///////////////////////////////////////////////////////////

// Globals:
	var LC_HTML; var LC_AMPM;

// The following arrays contain data which is used in the
// clock's date function.
	var LC_DaysOfWeek = new Array(7);
		LC_DaysOfWeek[0] = (LC_Abbrev) ? "Dim" : "Dimanche";
		LC_DaysOfWeek[1] = (LC_Abbrev) ? "Lun" : "Lundi";
		LC_DaysOfWeek[2] = (LC_Abbrev) ? "Mar" : "Mardi";
		LC_DaysOfWeek[3] = (LC_Abbrev) ? "Mer" : "Mecredi";
		LC_DaysOfWeek[4] = (LC_Abbrev) ? "Jeu" : "Jeudi";
		LC_DaysOfWeek[5] = (LC_Abbrev) ? "Ven" : "Vendredi";
		LC_DaysOfWeek[6] = (LC_Abbrev) ? "Sam" : "Samedi";

	var LC_MonthsOfYear = new Array(12);
		LC_MonthsOfYear[0] = (LC_Abbrev) ? "Jan" : "Janvier";
		LC_MonthsOfYear[1] = (LC_Abbrev) ? "Fev" : "Fevrier";
		LC_MonthsOfYear[2] = (LC_Abbrev) ? "Mar" : "Mars";
		LC_MonthsOfYear[3] = (LC_Abbrev) ? "Avr" : "Avril";
		LC_MonthsOfYear[4] = (LC_Abbrev) ? "Mai" : "Mai";
		LC_MonthsOfYear[5] = (LC_Abbrev) ? "Jun" : "Juin";
		LC_MonthsOfYear[6] = (LC_Abbrev) ? "Jul" : "Juillet";
		LC_MonthsOfYear[7] = (LC_Abbrev) ? "Aou" : "Aout";
		LC_MonthsOfYear[8] = (LC_Abbrev) ? "Sep" : "Septembre";
		LC_MonthsOfYear[9] = (LC_Abbrev) ? "Oct" : "Octobre";
		LC_MonthsOfYear[10] = (LC_Abbrev) ? "Nov" : "Novembre";
		LC_MonthsOfYear[11] = (LC_Abbrev) ? "Dec" : "Decembre";

// Basic browser detection:
	var LC_IE = (document.all) ? 1 : 0;
	var LC_NS = (document.layers) ? 1 : 0;
	var LC_N6 = (window.sidebar) ? 1 : 0;
	var LC_Old = (!LC_IE && !LC_NS && !LC_N6) ? 1 : 0;


var time = new Date();
if (LC_GMT) {
	var offset = time.getTimezoneOffset();

	if (parseInt(navigator.appVersion) == 4 && LC_NS) { offset += 60; }
	if (navigator.appVersion.indexOf('MSIE 3') != -1) { offset = offset * (-1); }
	time.setTime(time.getTime() + offset*60000);
	time.setTime(time.getTime() + LC_GMT*3600000);
}
var day = time.getDay();
var mday = time.getDate();
var month = time.getMonth();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
var year = time.getYear();

// Fix the "year" variable for Y2K:
if (year < 1900) { year += 1900; }

// Set up the hours for either 24 or 12 hour display:
if (LC_12_Hour) {
	LC_AMPM = "AM";
	if (hours >= 12) { LC_AMPM = "PM"; hours -= 12; }
	if (hours == 0) { hours = 12; }
}
if (minutes <= 9) { minutes = "0"+minutes; }
if (seconds <= 9) { seconds = "0"+seconds; }

// This is the actual HTML of the clock. If you're going to play around
// with this, be careful to keep all your quotations in tact.
LC_HTML = '<font style="color:'+LC_Font_Color+'; font-family:'+LC_Font_Face+'; font-size:'+LC_Font_Size+'pt;">';
LC_HTML += LC_OpenTags;
if (LC_12_Hour) { LC_HTML += ' '+LC_AMPM; }
if (LC_DisplayDate == 1) { LC_HTML += ' '+mday+'/'+(month+1)+'/'+year; }
if (LC_DisplayDate == 2) { LC_HTML += ' '+(month+1)+'/'+mday+'/'+year; }
if (LC_DisplayDate >= 3) { LC_HTML += ' '+LC_DaysOfWeek[day]+' '+mday+' '+LC_MonthsOfYear[month]; }
if (LC_DisplayDate >= 4) { LC_HTML += ' '+year; }
LC_HTML += ' '+hours+':'+minutes;
LC_HTML += LC_CloseTags;
LC_HTML += '</font>';

document.write(LC_HTML);