/* Functions to control FAQ showing and hiding divs
*/


//Function to show answer and hide remaining questions
//Requires question number
//Returns nothing

function showanswer(n){
	if (!DHTML) return;
	var a = new getObj('answer' + n);
	var q = new getObj('questions');
	
	q.style.display = "none";
	a.style.display = "block";
}

//Function to hide answer and show questions again
//Requires question number (to know which div to close)
//Returns nothing
function restorefaq(n){
	if (!DHTML) return;
	var a = new getObj('answer' + n);
	var q = new getObj('questions');
	
	a.style.display = "none";
	q.style.display = "block";
}