<!--
/*+---------------------------------------------------------------+
|e107 Clock Menu
 French file for clock menu by Juan
|  http://cms-fr.com
|   juanberthot@hotmail.com
|
|    Released under the terms and conditions of the
|    GNU General Public License (http://gnu.org).
+---------------------------------------------------------------+
*/
function tick() {
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;  var today;
  today = new Date();
  intDay = today.getDay();
  intDate = today.getDate();
  intMonth = today.getMonth();
  intYear = today.getYear();
  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  timeString = DayNam[intDay]+" "+intDate;
  if (intDate == 1 ) {
    timeString= timeString + "er";
  } else {
    timeString = timeString + "";
  } 
  
  
  
  
  if (intYear < 2000){
	intYear += 1900;
  }
  timeString = ""+timeString+" "+MnthNam[intMonth]+" "+intYear;
  if (intHours == 0) {
     hours = "0:";
     ap = "du matin.";
  } else if (intHours < 12) { 
     hours = intHours+":";
     ap = "du matin.";
  } else if (intHours == 12) {
     hours = "12:";
     ap = "";
  } else if (intHours < 18) {
     intHours = intHours - 12
     hours = intHours + ":"; 
	 ap = "de l'après midi.";
  } else {
     intHours = intHours - 12
     hours = intHours + ":";
     ap = "du soir.";
  }
  if (intMinutes < 10) {
     minutes = "0"+intMinutes;
  } else {
     minutes = intMinutes;
  }
  if (intSeconds < 10) {
     seconds = ":0"+intSeconds;
  } else {
     seconds = ":"+intSeconds;
  }
  timeString = (document.all)? timeString+".<br\> Il est "+hours+minutes+seconds+" "+ap:timeString+" "+hours+minutes+" "+ap;
  var clock = (document.all) ? document.all("Clock") : document.getElementById("Clock");
  clock.innerHTML = timeString;
  (document.all)?window.setTimeout("tick();", 1000):window.setTimeout("tick();", 6000);
}

tick();

//-->