/**
 *  FAQ
 *  Show hide answer
 */

var activeFAQAnswer;
function showFAQ(answer)
{
	if(activeFAQAnswer)
	{
		$('answer' + activeFAQAnswer).addClassName('hidden');
		$('question' + activeFAQAnswer).removeClassName('active');
	}
	if(answer != 'none')
	{
		activeFAQAnswer = answer;
		
		$('answer' + answer).removeClassName('hidden');
		$('question' + answer).addClassName('active');
	}
	else
		activeFAQAnswer = null;
	return false;
}


/**
 * ClickThis
 * Click INPUT button with a HREF link
 */
function clickThis(Id)
{
	document.getElementById(Id).click()
}


/**
 * Show Howto enlarge text in popup
 */
function enlargeInfo()
{
	var oInfo =
	{
			content: '<img src="/images/popupEnlargeInfo.png" alt="Uitleg over lettervergroting" />',
			showConfirmSuccess: true
	}
	Popup.open(oInfo);
}

/**
 * Function to fix the :hover css property for not-IE6 :hover supported items (all items behalfe <a>)
 *  
 * @param string sAction Executed mouse action: 'over' or 'out'
 * @param string sID html item ID
 */
function fixHoverIE6(sAction, iID)
{
	if($('pageNavDropdown_'+iID))
	{
		if(sAction == 'over')
		{
			$('pageNavDropdown_'+iID).style.display = 'block';
		}
		else
		{
			$('pageNavDropdown_'+iID).style.display = 'none';
		}
	}
}
