$(document).ready(function(){
	$(".category_list .category_body").hide();
	$(".qa_list .qa_a").hide();

	$(".category_title").click(function(){
	$(this).next(".category_body").slideToggle(300);
	if($(this).hasClass("titleOff")){
	$(this).removeClass("titleOff").addClass("titleOn");}
	else
	{$(this).removeClass("titleOn").addClass("titleOff");}
	$(this).next(".qa_list").children(".qa_a").hide(300);
	$(this).removeClass("titleOver");
	return false;});

	$(".category_title").hover(function(){
	$(this).addClass("titleOver");
	;},function(){
	$(this).removeClass("titleOver")
	;})
	
	$(".qa_q").hover(function(){$(this).css({backgroundColor:"#eeffff"});},function(){$(this).css({backgroundColor:""});});

	$(".collpase_all_category").click(function(){
	$(".qa_list .qa_a").hide()
	$(".category_body").hide(300)
	if($(".category_title").hasClass("titleOn")){$(".category_title").removeClass("titleOn").addClass("titleOff");}
	if($(".qa_list .qa_q").hasClass("q_On")){$(".qa_list .qa_q").removeClass("q_On").addClass("q_Off");}
	return false;});

	$(".show_all_category").click(function(){
	$(".category_list .category_body").show(300)
	if($(".category_title").hasClass("titleOff")){$(".category_title").removeClass("titleOff").addClass("titleOn");}
	return false;});
	
	$(".qa_q").click(function(){
	$(this).next(".qa_a").slideToggle(300)
	if($(this).hasClass("q_Off")){$(this).removeClass("q_Off").addClass("q_On");} else {$(this).removeClass("q_On").addClass("q_Off");}
	return false;});

	$(".collpase_all_qa1").click(function(){$(".qa_list:eq(0) .qa_a").slideUp();
	if($(".qa_list:eq(0) .qa_q").hasClass("q_On")){$(".qa_list:eq(0) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa2").click(function(){$(".qa_list:eq(1) .qa_a").slideUp();
	if($(".qa_list:eq(1) .qa_q").hasClass("q_On")){$(".qa_list:eq(1) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa3").click(function(){$(".qa_list:eq(2) .qa_a").slideUp();
	if($(".qa_list:eq(2) .qa_q").hasClass("q_On")){$(".qa_list:eq(2) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa4").click(function(){$(".qa_list:eq(3) .qa_a").slideUp();
	if($(".qa_list:eq(3) .qa_q").hasClass("q_On")){$(".qa_list:eq(3) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa5").click(function(){$(".qa_list:eq(4) .qa_a").slideUp();
	if($(".qa_list:eq(4) .qa_q").hasClass("q_On")){$(".qa_list:eq(4) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa6").click(function(){$(".qa_list:eq(5) .qa_a").slideUp();
	if($(".qa_list:eq(5) .qa_q").hasClass("q_On")){$(".qa_list:eq(5) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});
	$(".collpase_all_qa7").click(function(){$(".qa_list:eq(6) .qa_a").slideUp();
	if($(".qa_list:eq(6) .qa_q").hasClass("q_On")){$(".qa_list:eq(6) .qa_q").removeClass("q_On").addClass("q_Off");}return false;});


	$(".show_all_a1").click(function(){$(".qa_list:eq(0) .qa_a").slideDown();
	if($(".qa_list:eq(0) .qa_q").hasClass("q_Off")){$(".qa_list:eq(0) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a2").click(function(){$(".qa_list:eq(1) .qa_a").slideDown();
	if($(".qa_list:eq(1) .qa_q").hasClass("q_Off")){$(".qa_list:eq(1) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a3").click(function(){$(".qa_list:eq(2) .qa_a").slideDown();
	if($(".qa_list:eq(2) .qa_q").hasClass("q_Off")){$(".qa_list:eq(2) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a4").click(function(){$(".qa_list:eq(3) .qa_a").slideDown();
	if($(".qa_list:eq(3) .qa_q").hasClass("q_Off")){$(".qa_list:eq(3) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a5").click(function(){$(".qa_list:eq(4) .qa_a").slideDown();
	if($(".qa_list:eq(4) .qa_q").hasClass("q_Off")){$(".qa_list:eq(4) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a6").click(function(){$(".qa_list:eq(5) .qa_a").slideDown();
	if($(".qa_list:eq(5) .qa_q").hasClass("q_Off")){$(".qa_list:eq(5) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	$(".show_all_a7").click(function(){$(".qa_list:eq(6) .qa_a").slideDown();
	if($(".qa_list:eq(6) .qa_q").hasClass("q_Off")){$(".qa_list:eq(6) .qa_q").removeClass("q_Off").addClass("q_On");}return false;});
	
});