function hideAnswers()
{
	var exc = window.location.hash;
	if (exc != "")
		exc = exc.substring(1);

	var anchors = document.getElementsByTagName("a");

	for (var i = 0; i < anchors.length; i++)
	{
		var a = anchors[i];
		if (a.name == "" || a.id != a.name || a.href != "")
			continue;

		var id = a.name.substring(1);
		var div = document.getElementById("a" + id);
		if (!div)
			continue;

		if (a.name != exc)
		{
			div.style.display = "none";
			a.parentNode.className = "faq_question";
		}
		else
		{
			div.className = "faq_answer_on";
			div.style.display = "block";
			a.parentNode.className = "faq_question_on";
		}

		a.parentNode.answerDiv = div;
		a.parentNode.onclick = switchAnswer;

	}
}

function switchAnswer()
{
	if (!this || !this.answerDiv)
		return;

	if (this.answerDiv.style.display == "block")
	{
		this.answerDiv.style.display = "none";
		this.className = "faq_question";
	}
	else
	{
		this.answerDiv.style.display = "block";
		this.className = "faq_question_on";
	}
}

//window.onLoadList.push(hideCategories);
window.onLoadList.push(hideAnswers);
