<!--

var DayNam = new Array(
"воскресенье,","понедельник,","вторник,","среда,","четверг,","пятница,","суббота,");
var MnthNam = new Array(
"января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря");


function tick(datepref,dateformat,datesuff1,datesuff2,datesuff3,datesuff4) {
  if(datepref=='undefined'){datepref = '';}
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;  var today;
  today = new Date();
  intDay = today.getDay();
  intDate = today.getDate();
  intMonth = today.getMonth();
  intYear = today.getYear();
  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  timeString = DayNam[intDay]+" "+datepref+" "+intDate;
  if (intDate == 1 || intDate == 21 || intDate == 31) {
    timeString= timeString + datesuff1 + " ";
  } else if (intDate == 2 || intDate == 22) {
    timeString= timeString  + datesuff2 + " ";
  } else if (intDate == 3 || intDate == 23) {
    timeString= timeString  + datesuff3 + " ";
  } else {
    timeString = timeString  + datesuff4 + " ";
  } 
  if (intYear < 2000){
	intYear += 1900;
  }
  timeString = "<span>сегодня: " +timeString+" "+MnthNam[intMonth]+" "+intYear+" | </span><em>";
  if (intHours < 10) {
     hours = "0" + intHours + ":";
  } else {
     hours = intHours + ":";
  }
  ap = '';
  
  if (intMinutes < 10) {
     minutes = "0"+intMinutes;
  } else {
     minutes = intMinutes;
  }
  if (intSeconds < 10) {
     seconds = ":0"+intSeconds;
  } else {
     seconds = ":"+intSeconds;
  }
  timeString = (document.all)? timeString+" "+hours+minutes+seconds+" "+ap:timeString+" "+hours+minutes+" "+ap+"</em>";
  var clock = (document.all) ? document.all("clock") : document.getElementById("clock");
  clock.innerHTML = timeString;
  (document.all)?window.setTimeout("tick('"+datepref+"','"+dateformat+"','"+datesuff1+"','"+datesuff2+"','"+datesuff3+"','"+datesuff4+"');", 1000):window.setTimeout("tick('"+datepref+"','"+dateformat+"','"+datesuff1+"','"+datesuff2+"','"+datesuff3+"','"+datesuff4+"');", 6000);
}

window.setTimeout("tick('', '0', '', '', '', '')",150);

-->