//Fit Facts
$(function() {
	$('#fit-facts').cycle({
		fx:     'scrollVert',
		timeout: 5000,
		speed: 1000
	});
	
});

//Equal Heights
function equalHeight(group) {
    var tallest = 0;
    group.each(function() {
        var thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

$(document).ready(function() {
    //equalHeight($(".equalize"));
    
    //var mainHeight = $('#main .pad').height();
    //$('#main .pad').height(mainHeight + 265);
    
    $('#payment').click(function() {
    	var paymentType = $('input:radio[name=radio-690]:checked').val();
    	if(paymentType == 'Credit Card') {
    		$('#cc').show('fast');
    		$('#cc input[name="expiration"],#cc input[name="security"]').addClass('wpcf7-validates-as-required');
		$('#invoice').hide('fast');
    	} else if(paymentType == "Invoice Me"){
		$('#invoice').show('fast');
		$('#cc').hide('fast');
    		$('#cc input[name="expiration"],#cc input[name="security"]').removeClass('wpcf7-validates-as-required');
    	} else {
		$('#invoice').hide('fast');
    		$('#cc').hide('fast');
    		$('#cc input[name="expiration"],#cc input[name="security"]').removeClass('wpcf7-validates-as-required');
    	}
    });

    $('#invoice_type').click(function() {
    	var invoiceType = $('input:radio[name=radio-670]:checked').val();
    	if(invoiceType == 'Mail') {
    		$('#invoice_mail_wrap').show('fast');
    	}
    	else {
    		$('#invoice_mail_wrap').hide('fast');
    	}
    });
	
	$("ul.sf-menu").superfish();
    
    $('#seats input[type="radio"]').click(function() {
    	$('#seats input[type="radio"]:checked').attr('checked', false);
    	$(this).attr('checked',true);
    });
});

Cufon.replace('h2', { hover: true });


