(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = Math.ceil((ph-ah) / 2);
	$(this).css('margin-top', mh);
	});
};
})(jQuery);

function inx() {
	var dH = $(document).height();
	/*var bH = $('body').height();
	var dif = dH - bH;*/
	$('.shadow').height(dH);
	
		/*var H = $("#footer").height();
		return $("#footer").height((H+dif)-1);*/

/*	return $("#footer").css('border','1px solid #000');*/
}
function formZin() {
	var q = $("input[name='qual']");
	if($("input[name='dificul']:checked").val() == 'nao' ) q.removeAttr('disabled');
	$("input[name='dificul']").click(function() {
		
		if($(this).val() == "sim") return q.removeAttr('disabled');
		return q.attr('disabled','disabled').val('');
		
	});	
}

$(window).resize(function(){inx()});
$(document).ready(function(){
	inx();
	formZin();
});
$(document).change(function(){inx()});


