var currentQuestion = null;
var switchVar = true;
function switchAnswer(id)
{
	if (switchVar)
	{
		showAnswer(id);
		switchVar = false;
	}
	else
	{
		if (currentQuestion)
		{
			idNew = currentQuestion.id;
			if (idNew!=id)
			{
				hideAnswer(idNew);
				showAnswer(id);
				switchVar = false;
			}
			else
			{
				hideAnswer(id);
				switchVar = true;
			}
		}
		else
		{
			hideAnswer(id);
			switchVar = true;
		}
	}
}
function showAnswer(id)
{
	if (currentQuestion)
	{
		currentQuestion.style.display = 'none';
		switchVar = false;
	}
	answer = document.getElementById(id);
	answer.style.display = 'block';
	currentQuestion = answer;
}
function hideAnswer(id)
{
	answer = document.getElementById(id);
	answer.style.display = 'none';
}