jQuery.extend( jQuery.easing,{
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	}
});
var isIe6 = navigator.userAgent.indexOf('MSIE 6.0');
$(function(){
	$('body').append("<a id='goTop' href='javascript:'></a>");
	$('#goTop').click(function(){//返回顶部
			($.browser.safari? $('body'):$('html')).animate({scrollTop:0},{duration:600,easing:'easeOutExpo'});
		}).focus(function(){
			this.blur();	
		});
	var winH,selfH,initTop,scrollTop;
	function setTopVal(){
		winH = $(window).height();
		selfH = $('#goTop').height();
		initTop = winH -selfH;
		$('#goTop').css('top',initTop+'px');
		if(isIe6>0) $('#goTop').css('top',initTop+scrollTop+'px');
	}
	setTopVal();
	
	$(window).resize(setTopVal).scroll(function(){
		scrollTop = $(document).scrollTop();
		if(scrollTop>200) $('#goTop').show();
		else $('#goTop').hide();
		setTopVal();
	});
});
$(function(){
	$("#index_news3").click(function(){
		$(this).addClass("bg2");
		$("#index_news").addClass("bg1");
		$("#index_news2").removeClass("bg2").addClass('bg1');
		$(".kind11,.kind12").hide()
		$('.kind13').show();
		return false;
	});
	$("#index_news2").click(function(){
		$(this).addClass("bg2");
		$("#index_news").addClass("bg1");
		$("#index_news3").removeClass("bg2").addClass('bg1');
		$(".kind11,.kind13").hide()
$('.kind12').show();
		return false;
	});
	$("#index_news").click(function(){
		$(this).removeClass("bg1");
		$("#index_news2").removeClass("bg2");
		$("#index_news3").removeClass("bg2").addClass('bg1');
		$(".kind12,.kind13").hide()
$('.kind11').show();
		return false;
	});
	$(".kind1 ul li").not(".first").children("p").hide();
});
