var date = new Date();
function takeYear(theDate)
{
x = theDate.getYear();
var y = x % 100;
y += (y < 38) ? 2000 : 1900;
return y;
}
function leadingZero(nr)
{
if (nr < 10) nr = "0" + nr;
return nr;
}
function display_date() {
   var day_of_week_number = date.getDay();
   var day_of_month = leadingZero(date.getDate());
   var month_number = leadingZero(1+date.getMonth());
   var year = takeYear(date);
   var day_of_week = '';
   if(day_of_week_number == 0){day_of_week = 'ÍÅÄ²Ëß';}
   if(day_of_week_number == 1){day_of_week = 'ÏÎÍÅÄ²ËÎÊ';}
   if(day_of_week_number == 2){day_of_week = 'Â²ÂÒÎÐÎÊ';}
   if(day_of_week_number == 3){day_of_week = 'ÑÅÐÅÄÀ';}
   if(day_of_week_number == 4){day_of_week = '×ÅÒÂÅÐ';}
   if(day_of_week_number == 5){day_of_week = 'Ï&#039;ßÒÍÈÖß';}
   if(day_of_week_number == 6){day_of_week = 'ÑÓÁÎÒÀ';}
   
   var month_num = date.getMonth() + 1;
   if(month_num == 1){month = 'Ñ²×Íß';}
   if(month_num == 2){month = 'ËÞÒÎÃÎ';}
   if(month_num == 3){month = 'ÁÅÐÅÇÍß';}
   if(month_num == 4){month = 'ÊÂ²ÒÍß';}
   if(month_num == 5){month = 'ÒÐÀÂÍß';}
   if(month_num == 6){month = '×ÅÐÂÍß';}
   if(month_num == 7){month = 'ËÈÏÍß';}
   if(month_num == 8){month = 'ÑÅÐÏÍß';}
   if(month_num == 9){month = 'ÂÅÐÅÑÍß';}
   if(month_num == 10){month = 'ÆÎÂÒÍß';}
   if(month_num == 11){month = 'ËÈÑÒÎÏÀÄÀ';}
   if(month_num == 12){month = 'ÃÐÓÄÍß';}
   
  // var date_to_show = day_of_month + ' ' + month +  ' ' + year + ' ' + day_of_week;
  var date_to_show = day_of_month + ' ' + month +  ' ' + year;
   return (date_to_show);
}
function sayHello () {
var hours = date.getHours(); 
 if ((hours >= 6) && (hours < 10)) { return('ÄÎÁÐÎÃÎ ÐÀÍÊÓ')}
 if ((hours >= 10) && (hours < 18)) { return('ÄÎÁÐÎÃÎ ÄÍß')}
 if ((hours >= 18) && (hours < 22)) { return('ÄÎÁÐÎÃÎ ÂÅ×ÎÐÀ')}
 else { return('ÄÎÁÐÎ¯ ÍÎ×²')}
}