jQuery(function($){
	var index = 0;
	$(".banner li").mouseover(function(){
		index  =  $(".banner li").index(this);
		showImg(index);	
	});	
	//滑入 停止动画，滑出开始动画.
	$('.banner').hover(function(){
		if(MyTime){
			clearInterval(MyTime);
		}
		},function(){
			MyTime = setInterval(function(){
			showImg(index)
			index++;
			if(index==3){index=0;}
		} , 6000);
	});
	//自动开始
	var MyTime = setInterval(function(){
		showImg(index)
		index++;
		if(index==3){index=0;}
	} , 6000);
	//标签切换
	$(".news h2 a").mouseover(function(){
		var nav=$(".news h2 a").index(this);
		$(".news h2 a").eq(nav).addClass("hover").siblings("a").removeClass("hover");
		$(".showhiden").eq(nav).show().siblings(".showhiden").hide();
	});
	//客户轮播
	$("#clients-con").jCarouselLite({
		btnNext: "#arr_left",
		btnPrev: "#arr_right",
		visible: 7,
		auto: 800,
		speed: 1000,
		pDiv: ".clients"
	});
});﻿
function showImg(i){
	$(".images a").eq(i).fadeIn(800).siblings("a").hide();
	$("#flow").animate({ top: (i*59+37) +"px"}, 200, "easeInOutExpo");
	$(".banner li").eq(i).addClass("curr").siblings().removeClass("curr");
}
