(function($) {
	$().ready(function() {

		// Display/hide FAQ body
		$('.view-id-faq_taxonomy_term ul li .views-field-title a').click(function(event) {
			event.preventDefault();
			var thisContent = $(this).parent().parent().next();
			
			if ($(this).hasClass('expanded')) {
				$(this).removeClass('expanded');
				thisContent.slideUp();
			} else {
				$('.expanded').removeClass('expanded');
				$('.view-id-faq_taxonomy_term .views-field-body:visible').slideUp();
				$(this).addClass('expanded');
				thisContent.slideDown();
			}
		});


		// Here we immediately call the function with jQuery as the parameter.
	});
})(jQuery);;

