$(document).ready(function() {
	$('input#calculate_quiz').click(function() {
		var score = 0;
		var checked = $('input[type=radio]:checked');
		
		checked.each(function() {
			score = score + parseInt($(this).val());
		});
		
		$('div#your_score h3').text('Your score: ' + score);
		
		
		var s = '';
		
		if ((score > 9) && (score < 16))
		{
			s = '10-15 points: your responses indicate that you would not be happy with the responsibilities of owning a business.';
		}
		
		if ((score > 15) && (score < 26))
		{
			s = '16-25 points: your answers to the questions indicate that you are interested in a business, but you definitely need to do more investigating into your dreams and goals.';
		}
		
		if ((score > 25) && (score < 31))
		{
			s = '26-30 points: Good news! If you have seriously been considering a franchise, you have the basic entrepreneurial skills to succeed!';
		}
		
		$('div#your_score p').text(s);
		$('div#your_score').fadeIn();
		
		
		
	});	
	
	
	/*$('input[type=text]').focus(function() {
		$(this).addClass('focused');
	}).blur(function() {
		$(this).removeClass('focused');
	});*/
});