function display_hide_by_id (id){
	$('.news_content').each(function(i) {
		
		if (this.getAttribute('id') == id)
		{
			$(this).css('display', 'block');
		}
		else
		{
			$(this).css('display', 'none');
		}
		//alert(id);
		//alert($(this).text());
	});
	
};


jQuery(document).ready(function($){
	var now = new Date();
	var hour        = now.getHours();
	var minute      = now.getMinutes();
	var second      = now.getSeconds();
	var monthnumber = now.getMonth() + 1;
	if(monthnumber < 10) { monthnumber = '0' + monthnumber; }
	var monthday    = now.getDate();
	if(monthday < 10) { monthday = '0' + monthday; }
	var year        = now.getYear();
	if(year < 2000) { year = year + 1900; }
	
	var date = ''+year+monthnumber+monthday;

	$('.news_headers_list').children().filter('.newsHeader').each(function(i) {
		var div_date = this.getAttribute('name');
		
		//alert('date="'+date+'" div_date="'+div_date+'"');
		
		if (date == div_date)
		{
			/* убрали вывод сегодняшних новостей из-за показа последних 10*/
			/*$(this).css('display', 'block');*/
			$(this).css('display', 'none');
		}
		else
		{
			$(this).css('display', 'none');
		}
		//alert(this.getAttribute('name'));
						
	});
	
	$('.need_hide_at_start').css('display', 'none');
});