navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
	navok = true;
else
	navok = false;

today = new Date;
jour = today.getDay();

numero = today.getDate();

if ( numero == 1 ) {
     numero = "1er"
}
else {
  if ( numero<10 ) numero = ""+numero;
}

mois = today.getMonth();
if (navok)
	annee = today.getFullYear();
else
	annee = today.getYear();
TabJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
TabMois = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
messageDate = numero + "." + TabMois[mois] + "." + annee;
/*--- --*/
function getElementsByClass(searchClass, node, tag)
{
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}

function tailleFonte(classe, modif)
{ cibles = getElementsByClass(classe);
  if(cibles!='')
  { 
    var taille=cibles[0].style.fontSize;
    if(cibles[0].style.fontSize=='')
    { taille='13';
    }
    pos=taille.indexOf('px', 0);
    if(pos>0)
    { taille=taille.substr(0, pos);
    }
    else
    { taille=taille;
    }
    for (i=0; i < cibles.length; i++) {
      cibles[i].style.fontSize = parseInt(taille)+parseInt(modif);
    }
  }
}



