//
// Javascript code for Christmas.com's countdown
//
function showCountdown () {
  var globalTimezone = +1;
  christmas = new Date("December 25, 2002 00:00:00");
  now = new Date();
  var countdown;
  var secstil = Math.round((christmas.getTime() - now.getTime())/1000);
  secstil = secstil + (globalTimezone * 60 * 60 * -1);
  var daystil = Math.ceil(((secstil/60)/60)/24);
  
  // Generate display text
  if (daystil > 1) {
    countdown = 'Solo <strong>' + daystil + '</strong> giorni a Natale..';
  } else if (daystil == 1) {
    countdown = 'Solo <strong>' + daystil + '</strong> giorni a Natale!';
  } else if (daystil == 0) {
    countdown = '<strong>Buon Natale!</strong>';
  } else if (daystil < 0) {
    countdown = '<strong>Auguri di Buone Feste da UrbinoinRete!</strong>';
  }
  return countdown;
}
