$(document).ready(function(){
$(".newstab .a").hover(function(){
	$(".lt .newslist").hide().eq($(".newstab .a").removeClass("select").index($(this).addClass("select"))).show();
	
	$("#newsmore").attr("href","newslist.php?cid="+$(this).attr("id"))
},function(){});

$("#key").bind('focus',function(){
    $("#key").val('');
  });
$("#sub").bind('click',function(){
　var key=$("#key").val();
 
 //alert(key);　
   if(key){
	     window.location='search.php?keywords='+key;   
	   }else{
		alert('关键字不能为空'); 
		$("#key").focus();
	  }
   
　});

})

