//
// Javascript code for Christmas.com's countdown
//
function showCountdown () {
  var globalTimezone = -5;
  christmas = new Date("December 25, 2000 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 = 'Only <strong>' + daystil + '</strong> days \'til Christmas..';
  } else if (daystil == 1) {
    countdown = 'Only <strong>' + daystil + '</strong> day \'til Christmas!';
  } else if (daystil == 0) {
    countdown = '<strong>It\'s Christmas!</strong>';
  } else if (daystil < 0) {
    countdown = 'Get ready for <strong>Christmas 2000!</strong>';
  }
  return countdown;
}






