function LiveClock () 
  {
  if (!document.layers && !document.all) return;
  var now = new Date();
  var month = now.getMonth() + 1;
  var smonth = month;
  var dow = now.getDay ();
  var sdow = "";
  switch (dow)
    {
    case 0: sdow = "Sunday";    break;
    case 1: sdow = "Monday";    break;
    case 2: sdow = "Tuesday";   break;
    case 3: sdow = "Wednesday"; break;
    case 4: sdow = "Thursday";  break;
    case 5: sdow = "Friday";    break;
    case 6: sdow = "Saturday";  break;
    };
  switch (month)
    {
    case 1:  smonth = "January";   break;
    case 2:  smonth = "February";  break;
    case 3:  smonth = "March";     break;
    case 4:  smonth = "April";     break;
    case 5:  smonth = "May";       break;
    case 6:  smonth = "June";      break;
    case 7:  smonth = "July";      break;
    case 8:  smonth = "August";    break;
    case 9:  smonth = "September"; break;
    case 10: smonth = "October";   break;
    case 11: smonth = "November";  break;
    case 12: smonth = "December";  break;
    };
  var day = now.getDate ();
  var daysup = "th";
  if (day < 10 || day > 19)
    switch (day % 10)
      {
      case 1:  daysup = "st";  break;
      case 2:  daysup = "nd";  break;
      case 3:  daysup = "rd";  break;
      }
  var year = now.getYear();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var dn = "AM";
  if (hours >= 12) 
    {
    dn = "PM";
    hours = hours - 12;
    }
  if (hours == 0) hours = 12;
  if (minutes <= 9) minutes = "0" + minutes;
  if (seconds <= 9) seconds = "0" + seconds;
  todstring =  
    sdow + ", " + smonth + " " + day + "<sup>" + daysup +"</sup>" + 
    " &nbsp;" + year + " at " +
    hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
  if (document.layers) 
    {
    document.layers.timeofday.document.write(todstring);
    document.layers.timeofday.document.close();
    }
  else if (document.all)
    timeofday.innerHTML = todstring;
  now = new Date ();
  var ms = 1000 - now % 1000 + 10;
  if (ms < 100) ms = 100;
  setTimeout("LiveClock()", ms)
  }

window.onload = LiveClock;

