<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

function leadingZero(nr)
{
	if (nr < 10) nr = "0" + nr;
	return nr;
}


var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();
   
  var seconds = tDate.getSeconds() < 10 ? "0" + tDate.getSeconds() : tDate.getSeconds();
  var minutes = tDate.getMinutes() < 10 ? "0" + tDate.getMinutes() : tDate.getMinutes();
  // Format the hours with a 12-hour clock and AM/PM
  var hours = tDate.getHours();
  //var am_pm = hours > 12 ? " PM" : " AM";
  //hours = hours > 12 ? hours-12 : hours;
  am_pm=""


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 DayName = Days[tDate.getDay()];

var Month = leadingZero(tDate.getMonth()+1);

var Month = Months[tDate.getMonth()];

var Day = leadingZero(tDate.getDate());

function takeYear(theDate)
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}


var Year = takeYear(tDate);


   document.getElementById('theTime').innerHTML = "" 
                                   + DayName + " " 
                                   + Day + " " 
                                   + Month + " "
								   + Year + " "
								   + hours + ":" 
                                   + minutes + ":" 
                                   + seconds +am_pm
								   + " | <a href='/more_info.asp?current_id=2'>Site Map</a>";
								   
		
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 0);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}

//-->
