// HTML should include "question" and "answer" class names
$(document).ready( function () {
	$(".answer").hide("slow");
	$("#search").click( function() {
		$(".answer").hide("slow");
	});
	$(".question").click(function () {
		// if answer is shown then hide
		if($(this).next(".answer").css("height") != "auto") {
			$(this).next(".answer").hide("slow");
		} else {
			$(".answer").hide("slow");
			$(this).next(".answer").show("slow");
		}
	});
});