termday = 'jour';
termhour = 'heure';
termmin = 'minute';
termsec = 'seconde';

function countdown(year, month, day, hour, minute)
{
    Today = new Date();
    Todays_Year = Today.getFullYear();
    Todays_Month = Today.getMonth();
    Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(), Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
    Target_Date = (new Date(year, month - 1, day, hour, minute, 00)).getTime();
    Time_Left = Math.round((Target_Date - Todays_Date) / 1000);

    if(Time_Left < 0) {Time_Left = 0;}
    days = Math.floor(Time_Left / (60 * 60 * 24));
    Time_Left %= (60 * 60 * 24);
    hours = Math.floor(Time_Left / (60 * 60));
    Time_Left %= (60 * 60);
    minutes = Math.floor(Time_Left / 60);
    Time_Left %= 60;
    seconds = Time_Left;

	if(days <= 1) {dps ='';} else {dps ='s';}
    if(hours <= 1) {hps ='';} else {hps ='s';}
    if(minutes <= 1) {mps ='';} else {mps ='s';}
    if(seconds <= 1) {sps ='';} else {sps ='s';}
   
    document.getElementById('count_days').innerHTML = days + ' '+ termday + dps + '&nbsp;';
    document.getElementById('count_hours').innerHTML = hours + ' '+ termhour + hps + '&nbsp;';
    document.getElementById('count_minutes').innerHTML = minutes + ' '+termmin + mps + '&nbsp;';
    document.getElementById('count_seconds').innerHTML = seconds + ' '+termsec + sps + '&nbsp;';
    
    setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute  + ');', 1000);
}
var timeout=500;
var closetimer=0;
var ddmenuitem=0;
