$(document).ready(function() {

	$("div.needsanalysis div.ifyes").hide();
	
	$("div.needsanalysis div.ifyes").each(function() {
		var container = $(this).parent();
		
		$('input[type=radio]', container).click(function() {
			var container = $(this).parent();
			if ( $(this).attr('value') == 'Ja' ) {
				$(container).find("div.ifyes").slideDown(300);
			} else {
				$(container).find("div.ifyes").slideUp(300, function(){
					$('input', this).val("");
				});
			}
		});

	});
	
});
