<!--
function findObj(n, d)
{
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length)
  {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n);
  return x;
}

function setTextOfLayer(objName,x,newText)
{
  if ((obj=findObj(objName))!=null) with (obj)
  if (document.layers)
  {
    document.write(unescape(newText)); document.close();
  }
  else innerHTML = unescape(newText);
}

            function updateClock()
            {
                var time_str    = new Date();
                time_month      = time_str.getMonth();
                time_date       = time_str.getDate();
                time_day        = time_str.getDay();
                time_year       = time_str.getFullYear();
                time_hours      = time_str.getHours();
                time_min        = time_str.getMinutes();
                time_sec        = time_str.getSeconds();
                time_meridian   = "am";
                time_date_suffix = "th";

                if(time_month == 0) time_month = "Genuary"
                if(time_month == 1) time_month = "February"
                if(time_month == 2) time_month = "March"
                if(time_month == 3) time_month = "April"
                if(time_month == 4) time_month = "May"
                if(time_month == 5) time_month = "June"
                if(time_month == 6) time_month = "July"
                if(time_month == 7) time_month = "Agoust"
                if(time_month == 8) time_month = "Septmber"
                if(time_month == 9) time_month = "October"
                if(time_month == 10) time_month = "November"
                if(time_month == 11) time_month = "December"

                if(time_day == 0) time_day = "Sunday"
                if(time_day == 1) time_day = "Monday"
                if(time_day == 2) time_day = "Tuesday"
                if(time_day == 3) time_day = "Wednesday"
                if(time_day == 4) time_day = "Thursday"
                if(time_day == 5) time_day = "Friday"
                if(time_day == 6) time_day = "Saturday"

                if(time_date == 1) time_date_suffix = "st"
                if(time_date == 2) time_date_suffix ="nd"
                if(time_date == 3) time_date_suffix ="rd"
                if(time_date == 21) time_date_suffix ="st"
                if(time_date == 22) time_date_suffix ="nd"
                if(time_date == 23) time_date_suffix ="rd"
                if(time_date == 31) time_date_suffix ="st"

                if(time_hours == 12) {time_meridian = "pm"}
                if(time_hours == 13) {time_hours = 1;  time_meridian = "pm"}
                if(time_hours == 14) {time_hours = 2;  time_meridian = "pm"}
                if(time_hours == 15) {time_hours = 3;  time_meridian = "pm"}
                if(time_hours == 16) {time_hours = 4;  time_meridian = "pm"}
                if(time_hours == 17) {time_hours = 5;  time_meridian = "pm"}
                if(time_hours == 18) {time_hours = 6;  time_meridian = "pm"}
                if(time_hours == 19) {time_hours = 7;  time_meridian = "pm"}
                if(time_hours == 20) {time_hours = 8;  time_meridian = "pm"}
                if(time_hours == 21) {time_hours = 9;  time_meridian = "pm"}
                if(time_hours == 22) {time_hours = 10; time_meridian = "pm"}
                if(time_hours == 23) {time_hours = 11; time_meridian = "pm"}
                if(time_hours == 00) {time_hours = 12; time_meridian = "am"}

                time_sec = "" + time_sec
                time_min = "" + time_min
                time_hours = "" + time_hours

                //var time_length = time_sec.length
                if(time_sec.length == 1)
                {
                time_sec = "0" + time_sec;
                }

                if(time_min.length == 1)
                {
                time_min = "0" + time_min;
                }
// 12hrClock Ver
                setTextOfLayer('clock','',"&nbsp;" + time_day + ", " + time_date + " " + time_month + " " + time_year + " - " + time_hours + ":" + time_min + ":" + time_sec + " " + time_meridian);
                setTimeout("updateClock()",1000);
            }
updateClock();
//-->