// This shows answers for the FAQ page
function showAnswer(objAnchor,intQuestion) {
	// If the current question is hidden, display it.
	if (document.getElementById('answer' + intQuestion).style.display == "none") {
		hideAll();
		// Displays the actual answer
		document.getElementById('answer' + intQuestion).style.display = "block";
		// Changes the background graphic to "on"
		objAnchor.style.background = "white url(/img/bg-faq-h2-a-minus.png) top right no-repeat";
	}
	// If the current question is showing, hide it.
	else if (document.getElementById('answer' + intQuestion).style.display == "block") {
		// Changes the background graphic to "off"
		objAnchor.style.background = "white url(/img/bg-faq-h2-a-plus.png) top right no-repeat";
		hideAll();
	}
}

// Hiding all the answers
function hideAll() {
	for (i=1; i <= intAnswers; i++)
	{
		var objAnswer = document.getElementById('answer' + i)
		objAnswer.style.display = "none";
		// For browsers who believe in text nodes
		if(objAnswer.previousSibling.nodeType==3) {
			objHeadings = objAnswer.previousSibling.previousSibling.previousSibling.previousSibling;
		}
		// For those who doubt their existance
		else {
			objHeadings = objAnswer.previousSibling.previousSibling;
		}
		objHeadLink = objHeadings.firstChild;
		// Change the background graphic
		objHeadLink.style.background = "white url(/img/bg-faq-h2-a-plus.png) top right no-repeat";
	}
}