      $(document).ready(function(){
		   			   $(".highlight_panel").hide();
			   $(".highlight_panel").eq(0).show();
			   $(".forget_passworld").hide();
			   $(".wenhao").hover(function(){$(".forget_passworld").show();},function(){$(".forget_passworld").hide();})
			   
		   
		   $(".highlight_tag").click(function(){
			   
			   
			   
			   index=$(".highlight_tag").index($(this));
			   
			   $(".highlight_panel").hide();
			   $(".highlight_panel").eq(index).show();
			   
			   var state=$(this).find("img").attr('state');
			   var onImg= $(this).find("img").attr('onImg');
			   var offImg= $(this).find("img").attr('offImg');
			   if(state=='off'){
				   $(this).find("img").attr('src',onImg);
				   $(this).find("img").attr('state','on');
				   $(".highlight_tag").each(function(i,item){
					   //alert($(this).html());
					   var offImgE= $(this).find("img").attr('offImg');
					   
					   if(offImg!=offImgE){
						   $(this).find("img").attr('src',offImgE);
					   	   $(this).find("img").attr('state','off');
					   }
				   });
			   }
			   /*
			   if(index==0)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all_on.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics.gif";
						}
				if(index==1)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo_on.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics.gif";
						}
				if(index==2)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it_on.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics.gif";
						}
				if(index==3)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home_on.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics.gif";
						}
				if(index==4)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags_on.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics.gif";
						}
				if(index==5)
			        {
						$(".highlight_tag").eq(0)[0].childNodes[0].src="../img/home/images/tag_all.gif";
						$(".highlight_tag").eq(1)[0].childNodes[0].src="../img/home/images/tag_photo.gif";
						$(".highlight_tag").eq(2)[0].childNodes[0].src="../img/home/images/tag_it.gif";
						$(".highlight_tag").eq(3)[0].childNodes[0].src="../img/home/images/tag_home.gif";
						$(".highlight_tag").eq(4)[0].childNodes[0].src="../img/home/images/tag_bags.gif";
						$(".highlight_tag").eq(5)[0].childNodes[0].src="../img/home/images/tag_optics_on.gif";
						}*/
			   })
			
			
		   })
		
		
$(document).ready(function(){
	
	 $(".highlight_panel_tag_left").click(kkk=function(){
		     index=$(".highlight_panel_tag_left").index($(this));
		     value_1=parseInt($(".highlight_panel_o").eq(index).css('left'));
			 if(value_1<0)
		      {$(".highlight_panel_tag_left").unbind("click",kkk);
			  $(".highlight_panel_tag_right").unbind("click",yyy);
			  $(".highlight_panel_o").eq(index).animate({left:parseInt($(".highlight_panel_o").eq(index).css('left'))+597},1000,function(){$(".highlight_panel_tag_left").bind("click",kkk);  $(".highlight_panel_tag_right").bind("click",yyy);}); }
			   })
			   
			   
	 $(".highlight_panel_tag_right").click(yyy=function(){
		      index=$(".highlight_panel_tag_right").index($(this));
			  number=parseInt($(".highlight_panel_o").eq(index).find(".product_box").size());
			  number_1=parseInt(number/3);
			  if(number%3==0)
			  {
				  number_1-=1;
				  }
		     value_1=parseInt($(".highlight_panel_o").eq(index).css('left'));
			 value_1=value_1+597*number_1;
			 if(value_1>0)
		 	  {$(".highlight_panel_tag_left").unbind("click",kkk);
			  $(".highlight_panel_tag_right").unbind("click",yyy);
			  index=$(".highlight_panel_tag_right").index($(this));
			   $(".highlight_panel_o").eq(index).animate({left:parseInt($(".highlight_panel_o").eq(index).css('left'))-597},1000,function(){$(".highlight_panel_tag_left").bind("click",kkk);  $(".highlight_panel_tag_right").bind("click",yyy);}); }
			   });
	})

$(document).ready(function(){
	$("#jeb_logoutpanel").hide();
	$("#jeb_loginpanel .login").click(
		function() {
			$("#jeb_logoutpanel").show();
			$("#jeb_loginpanel").hide();
		}
	)
	$("#jeb_logoutpanel .logout").click(
		function() {
			$("#jeb_logoutpanel").hide();
			$("#jeb_loginpanel").show();
		}
	)
})
