$(function() {
	$('.print_button').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Print Report');
		window.print();
	});
	$('.save_pdf').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Save as PDF');
	});
	$('#bs1 a').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Download Advice', 'Buy Smarter');
	});
	$('#fs1 a').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Download Advice', 'Forecast Sharper');
	});
	$('#ce1 a').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Download Advice', 'Control Expenses');
	});
	$('#cf1 a').click(function() {
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Download Advice', 'Collect Faster');
	});
	$('.financial_question_kit').click(function(){
		pageTracker._trackEvent('Cash-Flow-Recommendations', 'Financial Fitness Kit');
	});
});

function sect_1_passed() {
	var class_name;
	var id_name;
	$('#collectFaster input:radio').each(function() {
		if($(this).is(':checked')) {
			class_name = $(this).attr('class');
			id_name = $(this).attr('id');
			pageTracker._trackEvent('Cash Flow Quiz', class_name, id_name);
		}
	});
	pageTracker._trackPageview('/evaluator/?step_2');
}
function sect_2_passed() {
	var class_name;
	var id_name;
	$('#forecastSharper input:radio').each(function() {
		if($(this).is(':checked')) {
			class_name = $(this).attr('class');
			id_name = $(this).attr('id');
			pageTracker._trackEvent('Cash Flow Quiz', class_name, id_name);
		}
	});
	pageTracker._trackPageview('/evaluator/?step_3');
}
function sect_3_passed() {
	var class_name;
	var id_name;
	$('#controlExpenses input:radio').each(function() {
		if($(this).is(':checked')) {
			class_name = $(this).attr('class');
			id_name = $(this).attr('id');
			pageTracker._trackEvent('Cash Flow Quiz', class_name, id_name);
		}
	});
	pageTracker._trackPageview('/evaluator/?step_4');
}
function sect_4_passed() {
	var class_name;
	var id_name;
	$('#buySmarter input:radio').each(function() {
		if($(this).is(':checked')) {
			class_name = $(this).attr('class');
			id_name = $(this).attr('id');
			pageTracker._trackEvent('Cash Flow Quiz', class_name, id_name);
		}
	});
	switch_pages();
}
function switch_pages() {
	document.form1.submit();
}
