$(document).ready(function(){

	if($("input[name='samenwonend']:checked").val() == 1)
	{
		$(".together").show()
	}
	else
	{
		$(".together").hide();
	}
	
	if($("input[name='huisdieren']:checked").val() == 1)
	{
		$(".pet").show()
	}
	else
	{
		$(".pet").hide();
	}
	
    function showTogether() {
      $(".together").show();
    }
	
	function hideTogether() {
      $(".together").hide();
    }
	
    $("input#samenwonend_1").click(showTogether);
	$("input#samenwonend_2").click(hideTogether);
	
	
	function showPet() {
      $(".pet").show();
    }
	
	function hidePet() {
      $(".pet").hide();
    }
	
    $("input#huisdieren_1").click(showPet);
	$("input#huisdieren_2").click(hidePet);
	
	$.fn.delay = function(time, callback){
    // Empty function:
    jQuery.fx.step.delay = function(){};
    // Return meaningless animation, (will be added to queue)
    return this.animate({delay:1}, time, callback);
	}
	
	$('div#noresult').delay(1000, function(){
    $(this).css({
        display: 'block'
    });
});
    
});
