var zuobiao = new Array("0","-115","-219","-330","-436","-548","-653","-760","-868");
$(document).ready(function(){
  $("#top div").each(function(i,top){
      $(top).css({"cursor":"hand"})
	        .hover(
			  function(){
				  $(this).css({"background-position":zuobiao[i]+"px -43px"});
			  },
			  function(){
				  $(this).css({"background-position":zuobiao[i]+"px 0px"});
			  }
	         )
			 .click(function(){
			     window.location.href = $(this).attr("url");
			 });
  });
  $("#news_show td").css("background-color","#EDDFD2").each(function(i,td){
						  $(td).hover(
									  function(){
										  $(this).css("background-color","#F5EBE1");
									  },
									  function(){
										  $(this).css("background-color","#EDDFD2");
									  }
									  );						  
								   });
  $("#honor_show div").css("cursor","hand").each(function(i,honor){
									 $(honor).hover(
													function(){
														$(this).css("border","2px solid #ff0000");
													},
													function(){
														$(this).css("border","2px solid #E4B661");
													}
													).click(function(){
											showimg('images/zs'+(i+1)+'-1.jpg');			  
										});
									 });
  $("#product_show div").css("cursor","hand").each(function(i,product_show){
									 $(product_show).hover(
													function(){
														$(this).css("border","2px solid #ff0000");
													},
													function(){
														$(this).css("border","2px solid #FBE6B7");
													}
													).click(function(){
											//var url = $(this).children().attr("src");
											//url = url.replace(".jpg",);
											//alert(url);
											showimg($(this).children().attr("src").replace(".jpg","")+'-1.jpg',$(this).attr("title"));			  
										});
									 });
});
