/**************
 * Clock Code *
 **************/

// Set up the variables
var Days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var Months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
var Time, Hour, Minutes, Day, DateOfMonth, Month, Year, ClockText;

function UpdateClock() {
  // Get the time
  Time = new Date();
  Hour = Time.getHours();
  Minutes = Time.getMinutes();
  Day = Time.getDay();
  DateOfMonth = Time.getDate();
  Month = Time.getMonth();
  Year = Time.getYear();

  // Format the time
  if (Hour < 10) {
    Hour = '0' + Hour;
  }
  if (Minutes < 10) {
    Minutes = '0' + Minutes;
  }
  Day = Days[Day];
  Month = Months[Month];
  if (Year < 2000) {
    Year = (Year + 1900);
  }
  ClockText = Hour + ':' + Minutes + ' - ' + Day + ', ' + DateOfMonth + ' ' + Month + ' ' + Year;

  // Update the clock
  document.getElementById('Clock').innerHTML = ClockText;
  setTimeout("UpdateClock()", 1000);
}

// Start the Clock
if (document.getElementById) {
  window.onload = UpdateClock;
}