$(document).ready(function(){
	$("#roi_button_calculate").click(function(e){
		$("#roi_questions").hide();
		$("#roi_calculating").show();
		
		setTimeout(function(){
			$("#form_questions").submit();
		}, 4000);

		e.preventDefault();
		return false;
	});
	$("#button_roi_results").click(function(e){
		$("#form_results").submit();

		e.preventDefault();
		return false;
	});
	
	$('#header_sections').innerfade({
		speed: 'slow',
		timeout: 7000,
		type: 'sequence',
		containerheight: '216px'
	});
	
	$("a.report_signup").fancybox({
		'width'				: 560,
		'height'			: 630,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
});
