$("document").ready(function() {
											
	$(".savings-content").hide();
	$("#website-savings").addClass('selected');
	$("#website-savings-content").show();

	$("#savings ul#tabs > li").click(function() {
		var newSection = this;
		
		$("#more-information-content").fadeOut(300, function() {
			$("#thank-you-content").fadeOut(300, function() {
				$("#client-yes-content").fadeOut(300, function() {		
					$("#client-no-content").fadeOut(300, function() {		
						$("#" + $(".selected").attr('id') + "-content").fadeOut(300, function() {
							$('.selected').removeClass('selected');
							$(newSection).addClass('selected');
							$("#" + $(newSection).attr('id') + "-content" ).fadeIn(300);
						});
					});
				});
			});
		});

	});
	
	$(".button-group > button").click(function() {
		var newSection = this;
		
		$("#client-yes-content").fadeOut(300, function() {
			$("#client-no-content").fadeOut(300, function() {
				$("#" + $(".selected").attr('id') + "-content").fadeOut(300, function() {
					$("#" + $(newSection).attr('id') + "-content" ).fadeIn(300);
				});
			});
		});

	});

});

