function menu(){
	$('#menu_ul li').hover(
		function(){ 
			$(this).siblings().removeClass("on");
			$(this).addClass("on").find('ul').show();
		},
		function(){ 
			$(this).find('ul').hide();	
			$(this).removeClass("on");
		}
	);
}	

function show(obj,id){		 
	 $('#'+obj).find('.'+obj+'_box').hide();
	 $('#'+obj+'_nav_'+id).siblings().removeClass("on");
	 $('#'+obj+'_nav_'+id).addClass("on");
	  $('#'+obj+' .title ul').removeClass();
	 $('#'+obj+' .title ul').addClass("title titleon_"+id);
	 $('#'+obj+'_box_'+id).show();
}
 
function oneHeight(){
		  var maxHeight=0;
		  var a=[];
		  for(var i=0,n=arguments.length;i<n;i++){
			a[i]=document.getElementById(arguments[i]);
			if(a[i].scrollHeight>maxHeight)
			  maxHeight=a[i].scrollHeight;
		  }
		  for(i=0;i<n;i++)
			a[i].style.height=maxHeight+'px';
}

function textdh(obj){
			$(obj+" li:not(:first)").css("display","none");
			var B=$(obj+"  li:last");
			var C=$(obj+"  li:first");
			setInterval(function(){
			if(B.is(":visible")){
			C.fadeIn(500).addClass("in");B.hide()
			}else{
			$(obj+"  li:visible").addClass("in");
			$(obj+"  li.in").next().fadeIn(500);
			$("li.in").hide().removeClass("in")}
			},3000) //每3秒钟切换一条，你可以根据需要更改
}
