
d.write("<br />")


var now = new Date();
var then = new Date("March 10, 2012");
var left = then.getTime() - now.getTime();
var days = Math.floor(left / (1000 * 60 * 60 * 24));
if (days > 1)
  d.write("<p style='margin-left: 0px; margin-right: 0px; margin-bottom: 0px; text-align: center; font-weight: bold; border: 1px solid #f4f4f4; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #666666 !important; color: #f4f4f4 !important;  -moz-border-radius: 5px; -webkit-border-radius:5px'>There are " + days + " days left 'til John&nbsp;Cale's 70th birthday<\/p>")
else if (days == 1)
  d.write("<div style='margin-left: 0px; margin-right: 0px; text-align: center; font-weight: bold; border: 1px solid #f4f4f4; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #666666 !important; color: #f4f4f4 !important; -moz-border-radius: 5px; -webkit-border-radius:5px'>John Cale will be 70 tomorrow<\/div>")
else if (days == 0)
  d.write("<div style='margin-left: 0px; margin-right: 0px; text-align: center; font-weight: bold; border: 1px solid #f4f4f4; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; background-color: #666666 !important; color: #f4f4f4 !important; -moz-border-radius: 5px; -webkit-border-radius:5px'>Penblwyddyn hapus i chi!<br />Happy Birthday, John!<br />(Same too you, Sturgis!)<\/div>")
else // days < 0
  d.write("");

