<!--
// TABLEAU DES MOIS
nomJour = new Array(7) ;
nomJour[0] = "Dimanche" ;
nomJour[1] = "Lundi" ;
nomJour[2] = "Mardi" ;
nomJour[3] = "Mercredi" ;
nomJour[4] = "Jeudi" ;
nomJour[5] = "Vendredi" ;
nomJour[6] = "Samedi" ;

// TABLEAU DES JOURS
nomMois = new Array(12) ;
nomMois[0]  = "janvier" ;
nomMois[1]  = "février" ;
nomMois[2]  = "mars" ;
nomMois[3]  = "avril" ;
nomMois[4]  = "mai" ;
nomMois[5]  = "juin" ;
nomMois[6]  = "juillet" ;
nomMois[7]  = "août" ;
nomMois[8]  = "septembre" ;
nomMois[9]  = "octobre" ;
nomMois[10] = "novembre" ;
nomMois[11] = "décembre" ;

// FORMATAGE DE DATE
function FormateDate(argDate,argFormat)
{
switch (argFormat) {
  case "jj/mm/aaaa":
    jour = argDate.getDate() ;
    if (jour<10)
      jour = "0" + jour ;
    mois = argDate.getMonth() + 1 ;
    if (mois<10)
      mois = "0" + mois ;    
    dateFormatee = " " + jour + "/" + mois + "/" + argDate.getFullYear() ;
    break ;
  case "jj mmm aaaa":
    jour = argDate.getDate() ;
    if (jour==1)
      jour += "er" ;
    dateFormatee = " " + jour + " " + nomMois[argDate.getMonth()] + " " + argDate.getFullYear() ;
    break ;
  case "jjj, jj mmm aaaa":
    jour = argDate.getDate() ;
    if (jour==1)
      jour += "er" ;
    dateFormatee = " " + nomJour[argDate.getDay()] + ", " + jour + " " + nomMois[argDate.getMonth()] + " " + argDate.getFullYear() ;
    break ;
  default:   
    dateFormatee = " " + argDate.getDate() + "/" + (argDate.getMonth()+1) + "/" + argDate.getFullYear() ;
}
return dateFormatee ;
}

// EXTRACTION ET FORMATAGE DE LA DATE DU JOUR
function Aujourdhui(argFormat)
{
dateJour = new Date() ;
return FormateDate(dateJour,argFormat) ;
}

// EXTRACTION ET FORMATAGE DE LA DATE DE DERNIERE MISE A JOUR DE LA PAGE
function DerniereModif(argFormat)
{
dateModif = new Date(document.lastModified) ;
return FormateDate(dateModif,argFormat) ;
}

// AFFICHAGE DYNAMIQUE DE L'HEURE COURANTE
function HeureCheckEJS() {
	krucial = new Date;
	heure = krucial.getHours();
	min = krucial.getMinutes();
	sec = krucial.getSeconds();
	jour = krucial.getDate();
	mois = krucial.getMonth()+1;
	annee = krucial.getFullYear();
	if (sec < 10)
		sec0 = "0";
	else
		sec0 = "";
	if (min < 10)
		min0 = "0";
	else
		min0 = "";
	if (heure < 10)
		heure0 = "0";
	else
		heure0 = "";
	DinaHeure = heure0 + heure + ":" + min0 + min + ":" + sec0 + sec;
	which = DinaHeure
	if (document.all) {
		dynamic3.innerHTML='<center>00:00:00</center>'
		dynamic3.innerHTML=which;
	} else if (document.layers) {
		document.dynamic1.document.dynamic2.document.write(which)
		document.dynamic1.document.dynamic2.document.close()
	}
	tempoEJS = setTimeout("HeureCheckEJS()", 1000)
}

// GESTION DES VIGNETTES PHOTOS
function afficheVignette(cheminVignette,cheminMaxi) {
	document.write('<a href="javascript:afficheMaxi(\''+cheminMaxi+'\')"><img src="'+cheminVignette+'" hspace="0" vspace="0" border="0" alt="cliquez ici pour agrandir"></a>');
}
function afficheMaxi(chemin) {
  i1 = new Image;
  i1.src = chemin;
  html = '<html><head><title>Photo</title></head><body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><center><img src="'+chemin+'" border="0" name="imageTest" onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></center></body></html>';
  popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
  popupImage.document.open();
  popupImage.document.write(html);
  popupImage.document.close();
}

// GESTION DES INFOBULLES
// Copyright Frank Milard - http://www.asaisir.com/a-la-page
IE4 = (document.all) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
VERSION4 = (IE4 | NS4) ? 1 : 0;
if (!VERSION4) event = null;

function helpGetOffset(obj, coord) {
	var val = obj["offset"+coord] ;
	if (coord == "Top") val += obj.offsetHeight;
	while ((obj = obj.offsetParent )!=null) {
		val += obj["offset"+coord];
		if (obj.border && obj.border != 0) val++;
	}
	return val;
}

function helpDown () {
	if (IE4) document.all.helpBox.style.visibility = "hidden";
	if (NS4) document.helpBox.visibility = "hidden";
}

function helpOver (event,texte) {
	if (!VERSION4) return;

	var ptrObj, ptrLayer;
	if (IE4) {
		ptrObj = event.srcElement;
		ptrLayer = document.all.helpBox;
	}
	if (NS4) {
		ptrObj = event.target;
		ptrLayer = document.helpBox;
	}

	if (!ptrObj.onmouseout) ptrObj.onmouseout = helpDown;

	var str = '<div class="helpBoxDiv">'+texte+'</div>';
	if (IE4) {
		ptrLayer.innerHTML = str;
		ptrLayer.style.top  = helpGetOffset (ptrObj,"Top") + 2;
		ptrLayer.style.left = helpGetOffset (ptrObj,"Left");
		ptrLayer.style.visibility = "visible";
	}
	if (NS4) {
		ptrLayer.document.write (str);
		ptrLayer.document.close ();
		ptrLayer.document.bgColor = "yellow";
		ptrLayer.top  = ptrObj.y + 20;
		ptrLayer.left = ptrObj.x;
		ptrLayer.visibility = "show";
	}
}
-->
