// JavaScript Document
$(document).ready(function() {
		$(".sel dt a").click(function() {
			$(".sel dd ul").toggle();
		});		
		$(".sel dd ul li a").click(function() {
			var text = $(this).html();
			$(".sel dd ul").hide();
			$("#result").html("Selected value is: " + getSelectedValue("sample"));
		});		
		function getSelectedValue(id) {
			return $("#" + id).find("dt a span.value").html();
		}
		$(document).bind('click', function(e) {
			var $clicked = $(e.target);
			if (! $clicked.parents().hasClass("sel"))
				$(".sel dd ul").hide();
		});
	});//下拉

$.fn.focusImg=function(){
    var obj=$(this); //id=focusImg的DIV
    var objName=obj.attr("id");//取得focusImg
    obj.children("ul").attr("id",objName+"-fragment");//将id=focusImg的div 下的所有的ul的id=focusImg-fragment;
    var num=obj.children("ul").children("li").length;//得到id=focusImg的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment-"+i);
    }
    
    obj.append("<span id='"+objName+"-button'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button","fragment");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
			
		//焦点图联动广告
		if (document.getElementById("swf_adv")){
				if(j==liandongNum){
					document.getElementById("swf_adv").style.display="block";
					document.getElementById("swf_adv").innerHTML=jdtliandongcon;
				}
				else{
					document.getElementById("swf_adv").style.display="none";
					document.getElementById("swf_adv").innerHTML="";
				}
		}
		
		
		
		
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图1
$.fn.focusImg2=function(){
    var obj=$(this); //id=focusImg的DIV
    var objName=obj.attr("id");//取得focusImg2
    obj.children("ul").attr("id",objName+"-fragment2");//将id=focusImg2的div 下的所有的ul的id=focusImg2-fragment;
    var num=obj.children("ul").children("li").length;//得到id=focusImg2的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button2-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment2-"+i);
    }
    
    obj.append("<span id='"+objName+"-button2'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button2","fragment2");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button2-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment2-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图2
$.fn.focusImg3=function(){
    var obj=$(this); //id=focusImg3的DIV
    var objName=obj.attr("id");//取得focusImg3
    obj.children("ul").attr("id",objName+"-fragment3");//将id=focusImg3的div 下的所有的ul的id=focusImg3-fragment;
    var num=obj.children("ul").children("li").length;//得到id=focusImg3的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button3-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment3-"+i);
    }
    
    obj.append("<span id='"+objName+"-button3'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button3","fragment3");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button3-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment3-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment3-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图3
$.fn.focusImg4=function(){
    var obj=$(this); //id=focusImg4的DIV
    var objName=obj.attr("id");//取得focusImg4
    obj.children("ul").attr("id",objName+"-fragment4");//将id=focusImg4的div 下的所有的ul的id=focusImg4-fragment4;
    var num=obj.children("ul").children("li").length;//得到id=focusImg4的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button4-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment4-"+i);
    }
    
    obj.append("<span id='"+objName+"-button4'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button4","fragment4");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button4-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment4-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment4-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图4
$.fn.focusImg5=function(){
    var obj=$(this); //id=focusImg5的DIV
    var objName=obj.attr("id");//取得focusImg5
    obj.children("ul").attr("id",objName+"-fragment5");//将id=focusImg5的div 下的所有的ul的id=focusImg5-fragment5;
    var num=obj.children("ul").children("li").length;//得到id=focusImg5的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button5-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment5-"+i);
    }
    
    obj.append("<span id='"+objName+"-button5'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button5","fragment5");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button5-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment5-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment5-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图5
$.fn.focusImg6=function(){
    var obj=$(this); //id=focusImg6的DIV
    var objName=obj.attr("id");//取得focusImg6
    obj.children("ul").attr("id",objName+"-fragment6");//将id=focusImg6的div 下的所有的ul的id=focusImg6-fragment6;
    var num=obj.children("ul").children("li").length;//得到id=focusImg6的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button6-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment6-"+i);
    }
    
    obj.append("<span id='"+objName+"-button6'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button6","fragment6");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button6-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment6-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment6-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图6
$.fn.focusImg7=function(){
    var obj=$(this); //id=focusImg7的DIV
    var objName=obj.attr("id");//取得focusImg7
    obj.children("ul").attr("id",objName+"-fragment7");//将id=focusImg7的div 下的所有的ul的id=focusImg7-fragment7;
    var num=obj.children("ul").children("li").length;//得到id=focusImg7的div下的所有的ul下的li的数量.
    var j=0;
    var str=new String();
    for(var i=0;i<num;i++)
    {
        str+="<a id='"+objName+"-button7-"+i+"' href='javascript:void(0);'>"+(i+1)+"</a>";
        obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment7-"+i);
    }
    
    obj.append("<span id='"+objName+"-button7'>"+str+"</span>");
    obj.children("span").children("a").eq(0).addClass("a2");
    
    obj.children("span").children("a").click(function(){
          obj.children("span").children("a").removeClass("a2");
          obj.children("ul").children("li").css("display","none");
          var id=$(this).attr("id").replace("button7","fragment7");
          $("#"+id).css("display","block");
          $(this).addClass("a2");
          j=$(this).text();
          j=j-1;
    });
    
     var n=0;
    topBoxRun=function(){
        if(j >= num-1)
            j=0;
        else
            j++;            
        if(j==0)
            n=num-1;
        else
            n=j-1;
        obj.children("span").children("a").removeClass("a2");
        $("#"+objName+"-button7-"+j).addClass("a2");
        obj.children("ul").children("li").css("display","none");
        if(j==0)
            obj.children("ul").children("li").eq(n).hide("normal");
        else
            obj.children("ul").children("li").eq(n).css("display","block");
        //obj.children("ul").children("li").eq(j).css("display","block"); 
        //$("#"+objName+"-fragment7-"+n).slideUp("slow",function(){
            //obj.children("ul").children("li").eq(j).show("slow");
        //});
        $("#"+objName+"-fragment7-"+j).show("normal");
    }
    
  var t=setInterval(topBoxRun,5000);  
}//焦点图7





//jQuery.fn.focusImg2=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment2");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button2-"+i+"\" href=\"#"+objName+"-fragment2-"+i+"\">"+(i+1)+"</a>";
//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment2-"+i)
// }
// obj.append("<span id='"+objName+"-button2'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button2","fragment2");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment2","button2");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图2
//
//jQuery.fn.focusImg3=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment3");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button3-"+i+"\" href=\"#"+objName+"-fragment3-"+i+"\">"+(i+1)+"</a>";

//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment3-"+i)
// }
// obj.append("<span id='"+objName+"-button3'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button3","fragment3");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment3","button3");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图3
//jQuery.fn.focusImg4=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment4");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button4-"+i+"\" href=\"#"+objName+"-fragment4-"+i+"\">"+(i+1)+"</a>";
//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment4-"+i)
// }
// obj.append("<span id='"+objName+"-button4'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button4","fragment4");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment4","button4");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图4
//
//jQuery.fn.focusImg5=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment5");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button5-"+i+"\" href=\"#"+objName+"-fragment5-"+i+"\">"+(i+1)+"</a>";
//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment5-"+i)
// }
// obj.append("<span id='"+objName+"-button5'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button5","fragment5");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment5","button5");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图5
//jQuery.fn.focusImg6=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment6");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button6-"+i+"\" href=\"#"+objName+"-fragment6-"+i+"\">"+(i+1)+"</a>";
//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment6-"+i)
// }
// obj.append("<span id='"+objName+"-button6'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button6","fragment6");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment6","button6");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图6
//jQuery.fn.focusImg7=function(){
// var obj=$(this);
// objName=obj.attr("id");
// obj.children("ul").attr("id",objName+"-fragment7");
// var num=(obj.children("ul").children("li").length)-1;
// var temp_b=new String();
// for(var i=0;i<=num;i++){
//  temp_b+="<a id=\""+objName+"-button7-"+i+"\" href=\"#"+objName+"-fragment7-"+i+"\">"+(i+1)+"</a>";
//  obj.children("ul").children("li").eq(i).attr("id",objName+"-fragment7-"+i)
// }
// obj.append("<span id='"+objName+"-button7'>"+temp_b+"</span>");
// obj.children("span").children("a").eq(num).addClass("a2");
//
// obj.children("span").children("a").click(function(){
//   obj.children("span").children("a").removeClass("a2");
//   $(this).addClass("a2");
//   var id=($(this).attr("id")).replace("button7","fragment7");
//   $("#"+id).appendTo(obj.children("ul"));
//   return false;
// });
//
// topBoxRun=function(){
//  obj.children("ul").children("li").eq(num).slideUp("slow",function(){
//   obj.children("span").children("a").removeClass("a2");
//   var id=($(this).prev().attr("id")).replace("fragment7","button7");
//   $("#"+id).addClass("a2");
//   $(this).prependTo(obj.children("ul"));
//   $(this).show();
//  }); 
// }
//
// var t=setInterval(topBoxRun,5000);
//}//焦点图7

$(function(){
	var tab_li1 = $('.tab_menu li');
//	$('.tab_box2 dl:gt(0)').hide();
	tab_li1.mouseover(function(){
		$(this).addClass('selected')
			   .siblings().removeClass('selected');
		var index1 = tab_li1.index(this);
		$('.tab_box dl').eq(index1).show()
						 .siblings().hide();
	});
});//tab
//$(document).ready(function(){
//						   $('.tab_menu li:first').addClass('selected');
//						   $('.tab_box dl:first').css('display','block');
//						   autoroll();
//						   hookThumb();
//						   });//准备
//var i=-1; //第i+1个tab开始
//var offset = 5000; //轮换时间
//var timer = null;
//function autoroll(){
//	n = $('.tab_menu li').length-1;
//	i++;
//	if(i > n){
//		i = 0;
//	}
//	slide(i);
//	timer = window.setTimeout(autoroll, offset);
//}
//function slide(i){
//	$('.tab_menu li').eq(i).addClass('selected').siblings().removeClass('selected');
//	$('.tab_box dl').eq(i).css('display','block').siblings().css('display','none');
//	
//}
//function hookThumb(){
//	$('.tab_menu li').hover(
//				  function () {
//					  if (timer) {
//						  clearTimeout(timer);
//						  i = $(this).prevAll().length;
//						  slide(i);
//					  }
//				  },
//				  function () {
//					  timer = window.setTimeout(autoroll, offset);
//					  this.blur();
//					  return false;
//				  }
//	);
//}//top

function AutoScroll(obj){   
        $(obj).find("ul:first").animate({   
                marginTop:"-27px"  
        },500,function(){   
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);   
        });   
}   
/*$(document).ready(function(){   
setInterval('AutoScroll("#scrollDiv")',2000) 
}); //文字滚动*/

$(function(){
	var tab_li = $('.tab_menu2 li');
//	$('.tab_box2 dl:gt(0)').hide();
	tab_li.mouseover(function(){
		$(this).addClass('selected')
			   .siblings().removeClass('selected');
		var index = tab_li.index(this);
		$('.tab_box2 dl').eq(index).show()
						 .siblings().hide();
	});
});//tab

//$(function(){
//	$('.marquee').kxbdMarquee({
//		direction:'left',
//		controlBtn:{left:'.goleft',right:'.goright'},
//		newAmount:1,
//		eventA:'mousedown',
//		eventB:'mouseup'
//	});
//});//图片滚动
$(function(){
	$('#marquee1').kxbdMarquee({
		direction:'left',
		controlBtn:{left:'#gol1',right:'#gor1'},
		newAmount:1,
		eventA:'mousedown',
		eventB:'mouseup'
	});
});//图片滚动
$(function(){
	$('#marquee2').kxbdMarquee({
		direction:'left',
		controlBtn:{left:'#gol2',right:'#gor2'},
		newAmount:1,
		eventA:'mousedown',
		eventB:'mouseup'
	});
});//图片滚动
$(function(){
	$('#marquee3').kxbdMarquee({
		direction:'left',
		controlBtn:{left:'#gol3',right:'#gor3'},
		newAmount:1,
		eventA:'mousedown',
		eventB:'mouseup'
	});
});//图片滚动
$(function(){
	var tab_li4 = $('.tab_menu4 li');
	$('.tab_box4 div').hide();
	tab_li4.mouseover(function(){
		$(this).addClass('selected')
			   .siblings().removeClass('selected');
		var index4 = tab_li4.index(this);
		$('.tab_box4 div').eq(index4).show();
	});
	tab_li4.mouseout(function(){
	$('.tab_box4 div').hide();
	});
});//tab

function settab(m,n){
	var tli=document.getElementById("menu"+m).getElementsByTagName("li");
	var mli=document.getElementById("main"+m).getElementsByTagName("div");
	for(i=0;i<tli.length;i++){
		tli[i].className=i==n?"f14":"";
		mli[i].style.display=i==n?"block":"none";
	}
}




function aff_top(value)
{
	if(value=='no1'){
		document.getElementById("no1_").className="f14";
		document.getElementById("no2_").className="";
		document.getElementById("no3_").className="";
		document.getElementById("no1").style.display="";
		document.getElementById("no2").style.display="none";
		document.getElementById("no3").style.display="none";
	}else if(value=='no2'){
		document.getElementById("no1_").className="";
		document.getElementById("no2_").className="f14";
		document.getElementById("no3_").className="";
		document.getElementById("no1").style.display="none";
		document.getElementById("no2").style.display="";
		document.getElementById("no3").style.display="none";
	}else{
		document.getElementById("no1_").className="";
		document.getElementById("no2_").className="";
		document.getElementById("no3_").className="f14";
		document.getElementById("no1").style.display="none";
		document.getElementById("no2").style.display="none";
		document.getElementById("no3").style.display="";
	}
}
function affiche(value)
{
	if(value=='yyol'){
		document.getElementById("tab_menu").className="tab_menu3_bg01";
		document.getElementById("yyol_").style.display="";
		document.getElementById("cldr_").style.display="none";
		document.getElementById("clxxz_").style.display="none";
	}else if(value=='cldr'){
		document.getElementById("tab_menu").className="tab_menu3_bg02";
		document.getElementById("yyol_").style.display="none";
		document.getElementById("cldr_").style.display="";
		document.getElementById("clxxz_").style.display="none";
	}else{
		document.getElementById("tab_menu").className="tab_menu3_bg03";
		document.getElementById("yyol_").style.display="none";
		document.getElementById("cldr_").style.display="none";
		document.getElementById("clxxz_").style.display="";
	}
}

$(function(){
	var tab_li0 = $('.tab_menu0 a');
//	$('.tab_box0 dl:gt(0)').hide();
	tab_li0.click(function(){
		$(this).addClass('a2')
			   .siblings().removeClass('a2');
		var index0 = tab_li0.index(this);
		$('.tab_box0 li').eq(index0).show()
						 .siblings().hide();
	});
});//tab



//切换

function onlic(){
	document.getElementById("chang2").style.display="none";
	document.getElementById("onet").className="change_ms";
	document.getElementById("teot").className="change_msgray";
	document.getElementById("chang1").style.display="block";
	document.getElementById("qha").style.display="block";
	
	}
	
function onlica(){
	document.getElementById("chang1").style.display="none";
	document.getElementById("chang2").style.display="block";
	document.getElementById("onet").className="change_msgray";
	document.getElementById("teot").className="change_ms";
	document.getElementById("qha").style.display="none";
	}
