var halloweenCountDownTimer;

function showHalloweenCountDown()
{
  today  = new Date();
  todayEpoch  = today.getTime();

  target = new Date("2 November, 2007 20:00"); 
  targetEpoch = target.getTime();

  daysLeft = Math.floor(((targetEpoch - todayEpoch) / (1)) / 1000);
  
  var element = document.getElementById("halloweenCountDown");      
  element.innerHTML = 'Na výrobu masky Ti zbývá ještě celých ' + daysLeft + ' vteřin';
  halloweenCountDownTimer = setTimeout("showHalloweenCountDown()", 1000);
}

function startHalloweenCountDown()
{
   clearTimeout(halloweenCountDownTimer);
   halloweenCountDownTimer = setTimeout("showHalloweenCountDown()", 0);
}

