// JavaScript Document
var currentlyOpen = -1;
function closeQuestions(){
	for (var i = 0 ; i < questionCount ; i ++){
		$('#question_'+i).css("cursor","pointer");
		$('#answer_'+i).slideUp(0);
		$('#question_'+i).click(function() { 
			var id = $(this).attr("id").substring($(this).attr("id").indexOf("_")+1);
			if (id == currentlyOpen)return;
    		openFaqQuestion(id);
   	 	});
	}
	openFaqQuestion(0);
}
function openFaqQuestion( id ){
	$('#answer_'+id).slideDown("fast");
	if(currentlyOpen != -1){
		$($('#answer_'+currentlyOpen)).slideUp("fast");
	}
	currentlyOpen = id;
}
