$(document).ready(function() {

// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='Show';
var hideText='Hide';

// initialise the visibility check
var is_visible = false;


// hide all of the elements with a class of 'toggle'
$('.answer').hide();

// capture clicks on the toggle links
$('a.question_toggle').click(function() {

// switch visibility
is_visible = !is_visible;

// toggle the display - uncomment the next line for a basic "accordion" style
$(this).parent().next('.answer').toggle('fast');

// return false so any link destination is not followed
return false;

});
});

