function setBg(){

	num = Math.floor( Math.random() * 3) + 1;
	
	/*document.getElementById('toptable').className = 'top_area'+num;*/
	toptable.className = 'top_area'+num;

}

function setCurDate(){

	var curDate = new Date();
	dayNum = curDate.getDate();
	day = curDate.getDay();
	if(day==0){
		day = 'воскресение';
	}else if(day==1){
		day = 'понедельник';
	}else if(day==2){
		day = 'вторник';
	}else if(day==3){
		day = 'среда';
	}else if(day==4){
		day = 'четверг';
	}else if(day==5){
		day = 'пятница';
	}else if(day==6){
		day = 'суббота';
	}
	year = curDate.getFullYear();
	month = curDate.getMonth();
	if(month==0){
		month = 'января';
	}else if(month==1){
		month = 'февраля';
	}else if(month==2){
		month = 'марта';
	}else if(month==3){
		month = 'апреля';
	}else if(month==4){
		month = 'мая';
	}else if(month==5){
		month = 'июня';
	}else if(month==6){
		month = 'июля';
	}else if(month==7){
		month = 'августа';
	}else if(month==8){
		month = 'сентября';
	}else if(month==9){
		month = 'октбря';
	}else if(month==10){
		month = 'ноября';
	}else if(month==11){
		month = 'декабря';
	}

	document.write("<strong>"+day+"</strong>, <strong>"+dayNum+"</strong> "+month+" "+year+" г.");


}
