// JavaScript Document
jQuery.easing.quart = function(x, t, b, c, d){
  return -c * ((t=t/d-1) * t * t * t -1) + b;
};

$(function(){
		   //set
		   $("#slider_fashion dd").hide();
		   $("#slider_fashion dd").css({"opacity":"0"});
		   $("#slider_fashion dt").css({"cursor":"pointer"});

		   $("#slider_zakka dd").hide();
		   $("#slider_zakka dd").css({"opacity":"0"});
		   $("#slider_zakka dt").css({"cursor":"pointer"});

		   $("#slider_interia dd").hide();
		   $("#slider_interia dd").css({"opacity":"0"});
		   $("#slider_interia dt").css({"cursor":"pointer"});

		   var move_fashion = "show";
		   var move_zakka = "show";
		   var move_interia = "show";
		   
		   //fashion click
		   $("#slider_fashion dt").click(function(){
										  if(move_fashion == "show"){
											  $(this).next().animate({height: "show", opacity: 1.0},
																	 300, "quart", function(){move_fashion = "hide"});
											  $("#slider_zakka dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_zakka = "show"});
											  $("#slider_interia dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_interia = "show"});
										  }else if(move_fashion == "hide"){
											  $("#slider_fashion dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_fashion = "show"});
										  }
										  })

		   //zakka click
		   $("#slider_zakka dt").click(function(){
										  if(move_zakka == "show"){
											  $(this).next().animate({height: "show", opacity: 1.0},
																	 300, "quart", function(){move_zakka = "hide"});
											  $("#slider_fashion dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_fashion = "show"});
											  $("#slider_interia dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_interia = "show"});
										  }else if(move_zakka == "hide"){
											  $("#slider_fashion dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_fashion = "show"});
											  $("#slider_zakka dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_zakka = "show"});
										  }
										  })

		   //interia click
		   $("#slider_interia dt").click(function(){
										  if(move_interia == "show"){
											  $(this).next().animate({height: "show", opacity: 1.0},
																	 300, "quart", function(){move_interia = "hide"});
											  $("#slider_fashion dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_fashion = "show"});
											  $("#slider_zakka dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_zakka = "show"});
										  }else if(move_interia == "hide"){
											  $("#slider_interia dd").animate({height: "hide", opacity: 0}, 300, "quart", function(){move_interia = "show"});
										  }
										  })
		   }
);

