// JavaScript Document
$(document).ready(function(){				   
	$(".indexShopClass li").hover(
		function(){
			$(this).addClass('hover');
			},
		function(){
			$(this).removeClass('hover');
			}
	);	
	
	$(".indexShopClass li").click(
		function(){
			$(this).removeClass().addClass('sele').siblings('li').removeClass();
			}
	);	
	
	$(".indexProduct li").each(function(i){
			$(this).mouseover(function(){
					$(this).siblings('li').removeClass().end().addClass('sele');	
					$("#timeLimit").hide();
					$("#hotProduct").hide();	
					$("#discountPro").hide();
					if(i==0){
						$("#timeLimit").show();
					}else if(i==1){
						$("#hotProduct").show();	
					}else if(i==2){
						$("#discountPro").show();
					}
					return false;
					
					});
			});
	
});




function shopSele(obj){
	var temp = obj.className;
	if( temp == 'noSeleShop' ){
		obj.className = 'SeleShop';
		$(obj).siblings('li').removeClass().addClass('noSeleClass'); 
		//$(".shopMore a").eq(1).hide();
		//$(".shopMore a").eq(0).show();
		$("#indexshopC").show();
		$("#indexClassC").hide();
		$("#bbsSearch").show();
	}
	else if( temp == 'noSeleClass' ){
		obj.className = 'SeleClass';
		$(obj).siblings('li').removeClass().addClass('noSeleShop'); 
		//$(".shopMore a").eq(0).hide();
		//$(".shopMore a").eq(1).show();
		$("#indexshopC").hide();
		$("#indexClassC").show();	
;
	}

}

