/**
 * this function hides all first divs after an 'openanswer' class,
 * and toggles that state after a click on the link with the 'openanswer' class.
 */
$(function() {
	// hide the first div of each openanswer class
	$(".openanswer").parent().next("div").hide(); 
	
	// on click toggle the hidden/shown state of the div
	$("a.openanswer").toggle(function() {
		$(this).parent().next("div").show();
		}, function() {
		$(this).parent().next("div").hide();
	});
});
