$(document).ready(function(){  
     $("#contactform").validate();
	//$("#dia-24, #dia-25").hide();
	//$("#d-23").addClass('d-act');
});

$(document).ready(function() {
		$("a.iframe").fancybox({
			'hideOnContentClick': true
			});
		//$.cookie("inscricao", "1", { expires: 7 });
});



//formulario inscricao
$(function(){
	$("#numcaap").hide();	
	$('input:radio[id="caapCheck"]').click(function() {
		$("#numcaap").show();
		$("#numapf").hide();
		$(".h-pagamento").show();
		$("#recibo").show();
		$('input:radio[id="pagamento-1"]').attr('checked', true); 
		});
});

$(function(){
	$("#numapf").hide();	
	$('input:radio[id="apfCheck"]').click(function() {
		$("#numcaap").hide();
		$("#numapf").show();
		$(".h-pagamento").show();
		$("#recibo").show();
		$('input:radio[id="pagamento-1"]').attr('checked', true); 
		});
});

$(function(){
	$('input:radio[id="normal"]').click(function() {
		$("#numcaap").hide();
		$("#numapf").hide();
		$(".h-pagamento").show();
		$("#recibo").show();
		$('input:radio[id="pagamento-1"]').attr('checked', true); 
		});
});

$(function(){
	$('input:radio[id="profCheck"]').click(function() {
		$("#numcaap").hide();
		$("#numapf").hide();
		$(".h-pagamento").show();
		$("#recibo").show();
		$('input:radio[id="pagamento-1"]').attr('checked', true); 
		});
});

$(function(){
	$('input:radio[id="comCheck"]').click(function() {
		$("#numcaap").hide();
		$("#numapf").hide();
		$(".h-pagamento").hide();
		$("#recibo").hide();
		$('#nif').removeClass("required");
		$('input:radio[id="pagamento-1"]').attr('checked', false); 
		});
});


$(function(){
	$('input:radio[id="estudante"]').click(function() {
		$("#numcaap").hide();
		$("#numapf").hide();
		$(".h-pagamento").show();
		$("#recibo").show();
		$('input:radio[id="pagamento-1"]').attr('checked', true); 
		});
});

// $("input[name=addType]:checked").val(); 

// menu programa
/*
$(function(){
	$("#d-24").click(function() {
	$("#dia-23, #dia-25").hide();
	$("#dia-24").show();
	$("#d-23").removeClass('d-act');
	$("#d-24").addClass('d-act');
	return false;
	});
});
*/