var secs = 0;
var timerID = null;
var timerRunning = false;
var delay = 1000; // intervalle d'une seconde entre chaque action
var firstTime = true;

function InitializeTimer() {
// Set the length of the timer, in seconds
secs = 4;
StopTheClock();
StartTheTimer();
}

function StopTheClock() {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function StartTheTimer() {
if (secs==0) {
StopTheClock();
animerIntro();
}
else {
// self.status = secs;
secs--;
timerRunning = true;
timerID = self.setTimeout("StartTheTimer()", delay);
}
}

function animerIntro() {
 $("#img_intro").hide(4500, function() {
  $(".texte, .illustration").show("fast");
  });
 }