$(document).ready(function(){
	
	$('a.q_expand').click(function(event){
		event.preventDefault();
		toggleFAQ($(this).attr("data-id"))
	})
	
});

// very simple accordian effect without loading all the ui crap 
function toggleFAQ(el_id){
	// close them all first
	$('div.answer_c').slideUp("fast");
	$('a.q_expand').removeClass("selected");
	// now only open if it isn;t already the open one 
	if(!$('#q_div_'+el_id+':visible').length){
		$('#q_div_'+el_id).slideDown("fast");
		$('#q_a_'+el_id).addClass("selected");
	}
}
