function JNews(state, stat){
	if(state){
		var url = '/containers/news/jnews.php';
		
		if(stat){
			setTimeout(function(){
				$("#news_container").fadeOut(500);
				setTimeout(function(){	
					var id = $("em#id_n").attr("rel");
					data = {'id':id};
					$.post(url, data, function(html){
						$("#news_container").html(html);
					});
				}, 500);
				$("#news_container").fadeIn(1000);
				JNews(true, 1);
			}, 3000);
		}
		else{
			$.post(url, '', function(html){
				$("#news_container").html(html);
			});
			JNews(true, 1);
		}
	}	
}

$(document).ready(function(){
	JNews(true, 0);	
});
