$(function(){
tab('.news_tab li','.news_content');
tab('.link_top li','.link_bottom');		
});
function tab(_li,_c){
	$(_li).mouseover(function(){
		var _index = $(this).index();
		$(this).addClass('on').siblings('li').removeClass('on');
		$(_c).eq(_index).show().siblings(_c).hide();
	});
}

$(document).ready(function () {
			$('.slider').g_slide({ListElement:'num'});
            $(".term_two:not('.term_two:first')").hide();
            $('.term_one').click(function () {
                if ($(this).next().is(':hidden')) {
                    $('.term_one').removeClass('term_one1').next().slideUp();
                    $(this).toggleClass('term_one1').next().slideDown();
                } else {
                    $(this).toggleClass('term_one1');
                    $(this).next().slideUp();
                }
                return false;
            });
        }); 

$(window).load(function() {
			$('.flexslider').flexslider();
		});
