$(function() {
	//jQuery for .faq-questions AND .faq-answers
	$(".open-content #main .contentRR .faq-questions li a").mousedown(function () {
		$(".open-content #main .contentRR .faq-answers .faq-answer").slideUp(300).delay(300);
		var $anchor = $(this).attr("anchor");
		$found = false;
		var $questions = $(this).parent("li").parent("ul").children("li").length;
		var $count = 0;
		var $anchor2 = $(".open-content #main .contentRR .faq-answers .faq-answer").first();
				
		while(!$found && ($count <= $questions)) {			
			if($anchor2.children("a").attr("name") == $anchor) {
				$found = true;
				var $answer = $anchor2;
			} else {
				$anchor2 = $anchor2.next(".faq-answer");
			}
			$count++;
		}
		
		$answer.slideDown(300);
	});
	
	$(".open-content #main .contentRR .faq-answers .faq-answer").hide(0);
	$(".open-content #main .contentRR .faq-answers .faq-answer").first().show(0);
});
