$(function(){
//each遍历id是BYqq:9330722以sixone_cont开头的div个数，并存储到zong变量
   $("div[id^='qieone']").each(function(zong){
	var zong;
	zong=zong+1;//zong+1是为了实现最后一个容器的效果
   $("#qieonecont"+zong+" .qienr:not(:first)").hide();
   $("#qieonetitle"+zong+" li:first").addClass("lihover");
   $("#qieonetitle"+zong+" li").each(function(index){
       $(this).mouseover(
	   	  function(){
			  $("#qieonetitle"+zong+" li.lihover").removeClass("lihover");
			  $(this).addClass("lihover");
			  $("#qieonecont"+zong+" > .qienr:visible").hide();
			  $("#qieonecont"+zong+" .qienr:eq(" + index + ")").show();
	  })
   })
   })
//首页BYqq:9330722专家滚动js
//加载imageScroller类库
		$(".zhuanjiascroll").imageScroller({
			next:"pressleft",
			prev:"pressright",
			frame:"zhuanjiascrollul",
			child:"li",
			margleftzhi:"-183",
			auto:true
			
		});

//文章页专家滚动
$("#pagezjfra").imageScroller({
			next:"pagezjleftbut",
			prev:"pagezjrightbut",
			frame:"pagezjscroll",
			child:"li",
			margleftzhi:"-183",
			auto:true
			
		});
		//文章页设备滚动
$("#pageshebei").imageScroller({
			next:"shebeileftbut",
			prev:"shebeirightbut",
			frame:"pageshebeiscroll",
			child:"li",
			margleftzhi:"-110"
			
		});
//底部荣誉板块移动
$("#nryucont").imageScroller({
			next:"ryleftbut",
			prev:"ryrightbut",
			frame:"nryucontimg",
			child:"li",
			margleftzhi:"-216"
			
		});

//调整字体大小的js
$('#time>a').click(function(){
	var ele_fontSize = $("#viewnews").css("font-size");
	var textSize = parseFloat(ele_fontSize , 10); 
	var unit = ele_fontSize.slice(-2);	
	if (this.id == "bigfont"){
		textSize += 2;
	}
	else if (this.id == "smallfont"){
		textSize -= 2;
	}
	else{
		textSize =13;
	}
	$('#viewnews').css("font-size",  textSize + unit );
	$(this).blur(); 
	return false;	
});

//首页焦点图js
    $("#bigfoucs a:not(:first)").hide();
	$("#smallfoucs a:first").addClass("smallfoushover");
   $("#smallfoucs a").each(function(index){
       $(this).click(
	   	  function(){
			  $("#smallfoucs a").removeClass("smallfoushover");
			  $(this).addClass("smallfoushover");
			  $("#bigfoucs > a:visible").hide();
			  $("#bigfoucs a:eq(" + index + ")").show();
			  $("#foucsfont > p:visible").hide();
			  $("#foucsfont p:eq(" + index + ")").show();
	  })
   })

})
