function RunningDate(language) {

	var dateNode = document.getElementById('dateNode') || false;

	var lang = language;

	this.getTime = function(){
		var now = new Date();

		var timeStr = "";

		timeStr +=  this.getWeekDayName(now.getDay()) + " : ";
		timeStr += ((now.getDate() < 10) ? "0" : "") + now.getDate();
		timeStr += "." + (((now.getMonth() + 1) < 10) ? "0" : "") + (now.getMonth() + 1);
		timeStr += "." + ((now.getYear() > 1900) ? now.getYear() : (1900 + now.getYear())) + " : ";

		timeStr += now.getHours();
		timeStr += ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
		timeStr += ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

		return timeStr;
	}

	this.updateTimeNode = function(){
		dateNode.innerHTML = this.getTime();
	}

	this.getWeekDayName = function(num) {
		if ('rus' == lang) {
			if (0 == num) return "ÂÑ";
			if (1 == num) return "ÏÍ";
			if (2 == num) return "ÂÒ";
			if (3 == num) return "ÑÐ";
			if (4 == num) return "×Ò";
			if (5 == num) return "ÏÒ";
			if (6 == num) return "ÑÁ";
		} else {
			if (0 == num) return "SN";
			if (1 == num) return "MO";
			if (2 == num) return "TU";
			if (3 == num) return "WE";
			if (4 == num) return "TH";
			if (5 == num) return "FR";
			if (6 == num) return "ST";
		}

	}
}


