
var output = "";
document.write(output);

// <HitBox Integratie> ===========================================================================================
et_HitBoxTypes = 
{
	AskHeleen: 1,
	AskFaq: 2
}
function et_HandleHitBoxFaqTop(/* et_HitBoxTypes */ hbtype, /*string*/ faq)
{
	try
	{
		if (hbtype == et_HitBoxTypes.AskFaq)
		{// er wordt een faq opgevraagd
            var referenceFolder = "/particulier/faqtop";
            if ($('body:first').hasClass('particulier'))
			{
                referenceFolder = "/particulier/faqtop";
			}
			else if ($('body:first').hasClass('mkb'))
			{
				referenceFolder = "/zakelijk/faqtop";
			}
			_hbPageView(et_HandleHitBox_StripIllegalChars(faq),referenceFolder);
		}
	}
	catch(e)
	{
	}
}
function et_HandleHitBox_StripIllegalChars(txt)
{
	if (txt == undefined) { return ""; }
	txt = txt.replace(/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\(\)\+\,\-\.\=\?\@\[\]\_\`\{\}\ ]/g,'');
	return txt;
}
function et_HandleHitBox_MakeNameString(id,txt)
{
	if (id == undefined || txt == undefined) { return ""; }
	return (id + '_' + txt).substring(0,50);
}
// </HitBox Integratie> ==========================================================================================

(function() {
	$('body').delegate('dl.faq dt', 'click', function(){
		if ($(this).attr('id').indexOf('et_faqtop') > -1)
		{
			// deze delegate komt eerder dan de delegate die ervoor zorgt dat het attribuut class=active wordt gezet, vandaar de negatieve check ipv positieve.
			if (!($(this).hasClass('active')))
			{
				var faqRnId = $(this).attr('id').replace('et_faqtop','');
				$('#klantenservice_faqtop').show();
                if (document.getElementById('et_faqtop_iframe')) 
                {
                    document.getElementById('et_faqtop_iframe').src = 'http://projecten.elitech.nl/essent2/js/faqtopAnswer.asp?qID=' + faqRnId + '&t=' + (new Date).getTime();
                }
                // <HitBox Integratie>
				et_HandleHitBoxFaqTop(et_HitBoxTypes.AskFaq, et_HandleHitBox_MakeNameString(faqRnId,$(this).html()));
				// </HitBox Integratie>
			}
            else
            {
                $('#klantenservice_faqtop').hide();
            }
		}
	}); 
})();

function et_openHeleen()
{
	$('form.heleen').submit();
}

