// JavaScript Document
jQuery(function($){
	var index = 0;
	//滑动导航改变内容	
	$("#simg div").hover(function(){
		if(MyTime){
			clearInterval(MyTime);
		}
		index  =  $("#simg div").index(this);
		MyTime = setTimeout(function(){
		ShowjQueryFlash(index);
		$('#bimg').stop();
		} , 200);

	}, function(){
		clearInterval(MyTime);
		MyTime = setInterval(function(){
		ShowjQueryFlash(index);
		index++;
		if(index==16){index=0;}
		} , 10000);
	});
	//滑入 停止动画，滑出开始动画.
	 $('#bimg').hover(function(){
			  if(MyTime){
				 clearInterval(MyTime);
			  }
	 },function(){
				MyTime = setInterval(function(){
				ShowjQueryFlash(index);
				index++;
				if(index==16){index=0;}
			  } , 10000);
	 });
	//自动播放
	var MyTime = setInterval(function(){
		ShowjQueryFlash(index);
		index++;
		if(index==16){index=0;}
	} , 10000);
});
function ShowjQueryFlash(i) {
$("#bimg div").eq(i).siblings().css({"display": "none"});
$("#bimg div").eq(i).fadeIn("normal");
//$("#bimg div").eq(i).css({"display": "block"}).siblings().css({"display": "none"});
$("#simg div").eq(i).addClass("current").siblings().removeClass("current");
}