var noClock = "false";
var texte;
function writeTime() {
if (noClock == 'false'){
var ampm
var d=new Array()
var weekday=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");


var today = new Date(msStartTime);

  var dayname = weekday[today.getUTCDay()];
  var month = monthname[today.getUTCMonth()];
  var numdate = today.getUTCDate();
  var hours = today.getUTCHours();
  var minutes = today.getUTCMinutes();
  var seconds = today.getUTCSeconds();

  minutes = fixTime(minutes);
  seconds = fixTime(seconds);

  if (hours >= 12) {
  ampm = 'p';
  }else{
  ampm = 'a';
  } 
  
  if (hours > 12){
  hours -= 12;
  }
  
  var time = dayname + " " + month + ". " + numdate + ", " + hours + ":" + 
minutes +  ":" + seconds + ampm + " ET";

  if ((navigator.userAgent.indexOf("MSIE 6.") != -1) || (navigator.userAgent.indexOf("MSIE 5.5") != -1)){
  document.getElementById("time_line").innerText = time;
  } else {
  noClock = "true";
  }
  
  msStartTime += 500;
  timeout= setTimeout('writeTime();',500);
}
}
function fixTime(time) {
if (time <10){
time = "0" + time;
}
return time;
}
           
function FindDate(){
// Demonstrates the typical format for date and time info derived form date()
// Create a varible with the current data info

var right_now=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
// Month always comes through as one numeric
// Less than the current month. Jan=0 Feb=1 etc.
	texte = "" + monthname[right_now.getMonth()];
	texte = texte +" ";

	texte = texte + right_now.getDate();
	texte = texte + " ";

// Year can come as the current year
// or the number of years since 1900
// To account for this we check the value 

var right_year=right_now.getYear();
if (right_year < 2000) 
right_year = right_year + 1900; 
	texte = texte +  right_year ;
	texte = texte + " ";

// Begin Ouptut of Time

// Hours come in military time
// To put in civilian time you must check the hours
// To see if they're greater than 12
var right_hours=right_now.getHours()
if (right_hours > 12) 
right_hours = right_hours - 12; 
	texte = texte + right_hours;
	texte = texte + ":";

// To display leading zeros before the minutes
// Check for minutes less then 10
var right_min=right_now.getMinutes();
if (right_min < 10)
	texte = texte + "0";
	texte = texte + right_min;
	texte = texte + ":";

// To display leading zeros before the seconds
// Check for minutes less then 10
var right_sec=right_now.getSeconds();
if (right_sec < 10)
	texte = texte + "0";
	texte = texte + right_sec;

// To display AM or PM assign a varible to A.M. Value
// If the the hours are greater than 12 then switch
// the value to P.M.
	var ampm=" A.M.";
	if (right_now.getHours() > 12)
	ampm=" P.M.";
	texte = texte + ampm;
	
	if (document.getElementById("time_line")){
		if ((navigator.userAgent.indexOf("MSIE 6.") != -1) || (navigator.userAgent.indexOf("MSIE 5.5") != -1)){
		  document.getElementById("time_line").innerText = texte;
		  } else {
		  noClock = "true";
		  }
  		timeout= setTimeout('FindDate();',500);
   }
}
