function favoris() {
       if ( navigator.appName != 'Microsoft Internet Explorer' ) {
           window.sidebar.addPanel("PROTEC-CHUTE Le 1er site europeen d'information et de conseil specialiste des chutes des personnes agees", "http://www.protec-chute.com", "");
       }
       else {
           window.external.AddFavorite("http://www.protec-chute.com", "PROTEC-CHUTE Le 1er site europeen d'information et de conseil specialiste des chutes des personnes agees");
       }
}
function zoom(){
	if(document.getElementById('right').style.fontSize == "16px"){
		document.getElementById('right').style.fontSize = "13px";
		document.images["img_zoom"].src="http://www.protec-chute.com/images/bt_agrandir.gif";
	}else{
		document.getElementById('right').style.fontSize = "16px";
		document.images["img_zoom"].src="http://www.protec-chute.com/images/bt_reduire.gif";
	}
}
function format(valeur,decimal,separateur) {
	var deci=Math.round( Math.pow(10,decimal)*(Math.abs(valeur)-Math.floor(Math.abs(valeur)))) ;
	var val=Math.floor(Math.abs(valeur));
	if ((decimal==0)||(deci==Math.pow(10,decimal))) {val=Math.floor(Math.abs(valeur)); deci=0;}
	var val_format=val+"";
	var nb=val_format.length;
	for (var i=1;i<4;i++) {
		if (val>=Math.pow(10,(3*i))) {
			val_format=val_format.substring(0,nb-(3*i))+separateur+val_format.substring(nb-(3*i));
		}
	}
	if (decimal>0) {
		var decim=""; 
		for (var j=0;j<(decimal-deci.toString().length);j++) {decim+="0";}
		deci=decim+deci.toString();
		val_format=val_format+"."+deci;
	}
	if (parseFloat(valeur)<0) {val_format="-"+val_format;}
	return val_format;
}//fin function
function nb_chutes(){
     aujourdhui = new Date();
     debut_annee = new Date(2008,00,01,00,00,00,001); // d&#233finit le jour et le mois
     total = Math.round(0.666*(aujourdhui.getTime()-debut_annee.getTime())/1000);
     total = format(total,0,' ');
     document.getElementById('nb_chutes').innerHTML = total;
     temporebour = setTimeout("nb_chutes()", 1000);
}//fin function
window.onload=nb_chutes;