// JavaScript Document
// FAQ Show/Hide
// Requires jquery to be linked to BEFORE the function is called.
//ORIGINAL from wherethehellismatt.com/scripts/faq.js - uses dl/dt/dd and p is invalid inside dd. So, instead use .faqhideshow, .faqquestion and .faqanswer - NOTE: The question must be ONE element (div, p, etc.) and the answer must be ONE element (div, p, etc.). For "Show/Hide all answers." functionality, inside use one element with class="faqhideshowall". All must be inside the element with class="faqhideshow".
//$(document).ready(function(){
//	$(".FAQ dd").css("display", "none");
//	$(".FAQ").addClass("js_enabled");
//	$(".FAQ dt").click().toggle(function() {
//		$(this).next().show("slow");
//	}, function() {
//		$(this).next().hide("slow");
//	});
//});
$(document).ready(function(){
	$(".faqhideshow .faqanswer").css("display", "none");
	$(".faqhideshow .faqquestion").css("font-weight","normal");
	$(".faqhideshow .faqquestion").css("color","#cc6600");
	$(".faqhideshow .faqquestion").css("font-style","italic");
	$(".faqhideshow .faqquestion").css("cursor","pointer");
	$(".faqhideshow").addClass("js_enabled");

  $(".faqhideshow .faqhideshowall").css("display", "block");
	$(".faqhideshow .faqhideshowall").css("color","#cc6600");
	$(".faqhideshow .faqhideshowall").css("text-decoration","underline");
  $(".faqhideshow .faqhideshowall").addClass("smalltext");

  $(".faqhideshow .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow .faqhideshowall").click().toggle(function() {
		$(".faqhideshow .faqanswer").show("slow");
  	$(".faqhideshow .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow .faqanswer").hide("slow");
	});


	$(".faqhideshow2 .faqanswer").css("display", "none");
	$(".faqhideshow2 .faqquestion").css("font-weight","normal");
	$(".faqhideshow2 .faqquestion").css("color","#cc6600");
	$(".faqhideshow2 .faqquestion").css("font-style","italic");
	$(".faqhideshow2 .faqquestion").css("cursor","pointer");

  $(".faqhideshow2 .faqhideshowall2").css("display", "block");
	$(".faqhideshow2 .faqhideshowall2").css("color","#cc6600");
	$(".faqhideshow2 .faqhideshowall2").css("text-decoration","underline");
  $(".faqhideshow2 .faqhideshowall2").addClass("smalltext");

  $(".faqhideshow2 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow2 .faqhideshowall2").click().toggle(function() {
		$(".faqhideshow2 .faqanswer").show("slow");
  	$(".faqhideshow2 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow2 .faqanswer").hide("slow");
	});


	$(".faqhideshow3 .faqanswer").css("display", "none");
	$(".faqhideshow3 .faqquestion").css("font-weight","normal");
	$(".faqhideshow3 .faqquestion").css("color","#cc6600");
	$(".faqhideshow3 .faqquestion").css("font-style","italic");
	$(".faqhideshow3 .faqquestion").css("cursor","pointer");

  $(".faqhideshow3 .faqhideshowall3").css("display", "block");
	$(".faqhideshow3 .faqhideshowall3").css("color","#cc6600");
	$(".faqhideshow3 .faqhideshowall3").css("text-decoration","underline");
  $(".faqhideshow3 .faqhideshowall3").addClass("smalltext");

  $(".faqhideshow3 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow3 .faqhideshowall3").click().toggle(function() {
		$(".faqhideshow3 .faqanswer").show("slow");
  	$(".faqhideshow3 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow3 .faqanswer").hide("slow");
	});


	$(".faqhideshow4 .faqanswer").css("display", "none");
	$(".faqhideshow4 .faqquestion").css("font-weight","normal");
	$(".faqhideshow4 .faqquestion").css("color","#cc6600");
	$(".faqhideshow4 .faqquestion").css("font-style","italic");
	$(".faqhideshow4 .faqquestion").css("cursor","pointer");

  $(".faqhideshow4 .faqhideshowall4").css("display", "block");
	$(".faqhideshow4 .faqhideshowall4").css("color","#cc6600");
	$(".faqhideshow4 .faqhideshowall4").css("text-decoration","underline");
  $(".faqhideshow4 .faqhideshowall4").addClass("smalltext");

  $(".faqhideshow4 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow4 .faqhideshowall4").click().toggle(function() {
		$(".faqhideshow4 .faqanswer").show("slow");
  	$(".faqhideshow4 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow4 .faqanswer").hide("slow");
	});


	$(".faqhideshow5 .faqanswer").css("display", "none");
	$(".faqhideshow5 .faqquestion").css("font-weight","normal");
	$(".faqhideshow5 .faqquestion").css("color","#cc6600");
	$(".faqhideshow5 .faqquestion").css("font-style","italic");
	$(".faqhideshow5 .faqquestion").css("cursor","pointer");

  $(".faqhideshow5 .faqhideshowall5").css("display", "block");
	$(".faqhideshow5 .faqhideshowall5").css("color","#cc6600");
	$(".faqhideshow5 .faqhideshowall5").css("text-decoration","underline");
  $(".faqhideshow5 .faqhideshowall5").addClass("smalltext");

  $(".faqhideshow5 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow5 .faqhideshowall5").click().toggle(function() {
		$(".faqhideshow5 .faqanswer").show("slow");
  	$(".faqhideshow5 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow5 .faqanswer").hide("slow");
	});


	$(".faqhideshow6 .faqanswer").css("display", "none");
	$(".faqhideshow6 .faqquestion").css("font-weight","normal");
	$(".faqhideshow6 .faqquestion").css("color","#cc6600");
	$(".faqhideshow6 .faqquestion").css("font-style","italic");
	$(".faqhideshow6 .faqquestion").css("cursor","pointer");

  $(".faqhideshow6 .faqhideshowall6").css("display", "block");
	$(".faqhideshow6 .faqhideshowall6").css("color","#cc6600");
	$(".faqhideshow6 .faqhideshowall6").css("text-decoration","underline");
  $(".faqhideshow6 .faqhideshowall6").addClass("smalltext");

  $(".faqhideshow6 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow6 .faqhideshowall6").click().toggle(function() {
		$(".faqhideshow6 .faqanswer").show("slow");
  	$(".faqhideshow6 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow6 .faqanswer").hide("slow");
	});


	$(".faqhideshow7 .faqanswer").css("display", "none");
	$(".faqhideshow7 .faqquestion").css("font-weight","normal");
	$(".faqhideshow7 .faqquestion").css("color","#cc6600");
	$(".faqhideshow7 .faqquestion").css("font-style","italic");
	$(".faqhideshow7 .faqquestion").css("cursor","pointer");

  $(".faqhideshow7 .faqhideshowall7").css("display", "block");
	$(".faqhideshow7 .faqhideshowall7").css("color","#cc6600");
	$(".faqhideshow7 .faqhideshowall7").css("text-decoration","underline");
  $(".faqhideshow7 .faqhideshowall7").addClass("smalltext");

  $(".faqhideshow7 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow7 .faqhideshowall7").click().toggle(function() {
		$(".faqhideshow7 .faqanswer").show("slow");
  	$(".faqhideshow7 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow7 .faqanswer").hide("slow");
	});


	$(".faqhideshow8 .faqanswer").css("display", "none");
	$(".faqhideshow8 .faqquestion").css("font-weight","normal");
	$(".faqhideshow8 .faqquestion").css("color","#cc6600");
	$(".faqhideshow8 .faqquestion").css("font-style","italic");
	$(".faqhideshow8 .faqquestion").css("cursor","pointer");

  $(".faqhideshow8 .faqhideshowall8").css("display", "block");
	$(".faqhideshow8 .faqhideshowall8").css("color","#cc6600");
	$(".faqhideshow8 .faqhideshowall8").css("text-decoration","underline");
  $(".faqhideshow8 .faqhideshowall8").addClass("smalltext");

  $(".faqhideshow8 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow8 .faqhideshowall8").click().toggle(function() {
		$(".faqhideshow8 .faqanswer").show("slow");
  	$(".faqhideshow8 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow8 .faqanswer").hide("slow");
	});


	$(".faqhideshow9 .faqanswer").css("display", "none");
	$(".faqhideshow9 .faqquestion").css("font-weight","normal");
	$(".faqhideshow9 .faqquestion").css("color","#cc6600");
	$(".faqhideshow9 .faqquestion").css("font-style","italic");
	$(".faqhideshow9 .faqquestion").css("cursor","pointer");

  $(".faqhideshow9 .faqhideshowall9").css("display", "block");
	$(".faqhideshow9 .faqhideshowall9").css("color","#cc6600");
	$(".faqhideshow9 .faqhideshowall9").css("text-decoration","underline");
  $(".faqhideshow9 .faqhideshowall9").addClass("smalltext");

  $(".faqhideshow9 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow9 .faqhideshowall9").click().toggle(function() {
		$(".faqhideshow9 .faqanswer").show("slow");
  	$(".faqhideshow9 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow9 .faqanswer").hide("slow");
	});


	$(".faqhideshow10 .faqanswer").css("display", "none");
	$(".faqhideshow10 .faqquestion").css("font-weight","normal");
	$(".faqhideshow10 .faqquestion").css("color","#cc6600");
	$(".faqhideshow10 .faqquestion").css("font-style","italic");
	$(".faqhideshow10 .faqquestion").css("cursor","pointer");

  $(".faqhideshow10 .faqhideshowall10").css("display", "block");
	$(".faqhideshow10 .faqhideshowall10").css("color","#cc6600");
	$(".faqhideshow10 .faqhideshowall10").css("text-decoration","underline");
  $(".faqhideshow10 .faqhideshowall10").addClass("smalltext");

  $(".faqhideshow10 .faqquestion").click().toggle(function() {
		$(this).next().show("slow");
		$(this).css("font-weight","bold");
	}, function() {
		$(this).next().hide("slow");
		$(this).css("font-weight","normal");
		$(this).css("color","#663399"); //visited link color
	});
  $(".faqhideshow10 .faqhideshowall10").click().toggle(function() {
		$(".faqhideshow10 .faqanswer").show("slow");
  	$(".faqhideshow10 .faqquestion").css("font-weight","normal");
	}, function() {
		$(".faqhideshow10 .faqanswer").hide("slow");
	});
});
