$(function() {
	
	// Find the time option that is not selected
	$("#emailreminder_time input").not(":checked").parent().parent()
		.css("opacity", .7)
		.find("select").attr("disabled", "disabled");
	
	// When the user changes the selected item, we must fade the other
	$("#emailreminder_time input").change(function() {
		// Fade in the selected one
		$("#emailreminder_time input:checked").parent().parent()
			.css("opacity", 1)
			.find("select").attr("disabled", "");
		
		// Fade the unselected one
		$("#emailreminder_time input").not(":checked").parent().parent()
			.css("opacity", .7)
			.find("select").attr("disabled", "disabled");
	});
	
});