function showhide(el)
{
   if (document.getElementById(el).style.display=='none' || document.getElementById(el).style.display=='') {
	   document.getElementById(el).style.display='block';
   }
   else {
	   document.getElementById(el).style.display='none'
   }
}

function change_signe(el)
{
	if (document.getElementById(el).className=="signe_plus") { document.getElementById(el).className="signe_moins";}
	else { document.getElementById(el).className="signe_plus";}
}

function menu_open(cat){
	document.getElementById(cat).style.display='block';
	document.getElementById('signe_'+cat).className="signe_moins";
}

function disp_delai(){
	document.getElementById('timer').innerHTML=delai (2011,8,21,16,0);
	setTimeout("disp_delai()",1000);
}
	
function delai(annee,mois,jour,heure,min) {
	var date_fin=new Date(annee,mois-1,jour,heure,min)
	var date_jour=new Date();
	var tps=(date_fin.getTime()-date_jour.getTime())/1000;
	var j=Math.floor(tps/3600/24);    
	tps=tps % (3600*24);
	var h=Math.floor(tps / 3600);	
	tps=tps % 3600;
	var m=Math.floor(tps/60);
	tps=tps % 60
	var s=Math.floor(tps);
	
	var txt="<strong>"+j+"</strong> jours <strong>"+h+"</strong> h <strong>"+m+"</strong> m <strong>"+s+"</strong> s";
	return txt;
}

