function slideOpen(nr, jump) {
	$('#head' + nr).removeClass('qa_regel').addClass('qa_regel2');
	$('#img' + nr).attr('src', 'images/qa_bullet_go2.png');
	$('#omschrijving' + nr).slideDown('medium', function() {
		if (jump) {
			var offSet = $('#omschrijving' + nr).offset().top;

			$('html,body').animate({ scrollTop: offSet }, 1);
		}
	});

	$('.qa_regel2').not('#head' + nr).removeClass('qa_regel2').addClass('qa_regel');
	$('div.qa_pijl img').not('#img' + nr).attr('src', 'images/qa_bullet_go.png');
	$('div.qa_container').not('#omschrijving' + nr).slideUp('medium');

	
	if (nr != undefined) {
		$.get('qa_updateView.asp', { QAQuestionID: nr }, function(data, textStatus) {
			//alert(data);
		});
	}
}


$(document).ready(function() {
	$('.qa_tekst a').bind('click', function() {
		slideOpen($(this).attr('nr'), false);

	});

	$('.qa_sendBut').bind('click', function() {
		var nr = $(this).attr('nr');
		var ja = $('#qaHelpFullJa' + nr + ":checked").size();
		var nee = $('#qaHelpFullNee' + nr + ":checked").size();

		if (ja > 0) {
			$(this).parent().parent().html(QABedanktMelding);
			$.get('qa_updateView.asp', { qaQuestionID: nr, qaHelpFull: true }, function(data, textStatus) {
				//	alert(data);
			});
		}
		else if (nee > 0) {
			location.href = 'qa_info.asp?qaQuestionID=' + nr + '&qaHelpFull=false';
		}
	});
});
