$(document).ready(function(){
	$('#news_navi li').click(function(){
		$('#news_navi li').removeClass('active');
		$('.menu_tab').hide();
		var site = $(this).attr('id');
		$('#'+site+'c').show();
		$(this).addClass('active');
	});
});

function show_news(panel, id, m){
	if(id == 0){
		$('#tab_news #page'+panel+'_right_panel tr').css('background-color', '#FFF');
	} else {
		$('#tab_news #page'+panel+'_right_panel tr').css('background-color', '#FFF');
		$(m).css('background-color', '#F2F2F2');
	}
	
	$('#tab_news #page'+panel+'_left_panel [id^=news'+panel+'_]').hide();
	$('#tab_news #page'+panel+'_left_panel #news'+panel+'_'+id).show();
}