	// background variables
	var today = new Date()
	var weekday = "Воскресенье"
	var dow = today.getDay()
	var tble

	//foreground variables
	var today = new Date()
	var month = today.getMonth()
	var date = today.getDate()
	var year = today.getYear()

	//adjust year for old NS browsers
	if (year<1900) {
	  year = year+1900
	}

	var month_whole = "Января"
	var wholeDate = "Сегодня"

	// background figuring
	if (dow == 0) {weekday = "Воскресенье"}
	if (dow == 1) {weekday = "Понедельник"}
	if (dow == 2) {weekday = "Вторник"}
	if (dow == 3) {weekday = "Среда"}
	if (dow == 4) {weekday = "Четверг"}
	if (dow == 5) {weekday = "Пятница"}
	if (dow == 6) {weekday = "Суббота"}

	// foreground figuring
	if (month == 0) {month_whole = "Января"}
	if (month == 1) {month_whole = "Февраля"}
	if (month == 2) {month_whole = "Марта"}
	if (month == 3) {month_whole = "Апреля"}
	if (month == 4) {month_whole = "Мая"}
	if (month == 5) {month_whole = "Июня"}
	if (month == 6) {month_whole = "Июля"}
	if (month == 7) {month_whole = "Августа"}
	if (month == 8) {month_whole = "Сентября"}
	if (month == 9) {month_whole = "Октября"}
	if (month == 10) {month_whole = "Ноября"}
	if (month == 11) {month_whole = "Декабря"}

	wholeDate = date + " " + month_whole + " " +  year

	// creating HTML
	//add two forward slashes to the line below to make inactive

//	
	tble = "<font color=#ffffff face=Verdana size=1>Сегодня: ";
	tble += weekday;
	tble += ",&nbsp;";
	tble += wholeDate;
        tble += "&nbsp;";
        tble += "года";
	tble += "</font>";
	
	document.write(tble)


