//----- script2.js 
//----- Improved from other scripts by Mark A. Foster, Ph.D. 
now = new Date();
t = now.getHours();

if (t<5) document.write("Good morning. ");

else if (t<12) document.write("Good morning. ");

else if (t<18) document.write("Good afternoon. ");

else document.write("Good evening. ");
document.write("<span style='font-size:17px;color:#6633cc;font-weight:bold;font-family:arial,helvetica,sans-serif'>According to the Bad&iacute;, or Bah&aacute;'&iacute;, calendar, today is ");
var d = new BahaiDate() 
document.write(d.dayName() + ' of ' + d.monthName() + ', ' + 
d.year + ' B.E.,  ' + d.year + '/' + d.month + '/' + d.day) 
document.write(". There are ");
var now = new Date();
// set this value to the countdown date.
var then = new Date("March 21, 2011");
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write(gap);
document.write(" days till Naw-R&uacute;z, the Bah&aacute;'&iacute; new year's day and vernal equinox.</span> ");

