$(document).ready(function() {
    if($("body#index.home")) {
        $("#home_heroes").cycle({});
        
        $("#submit_email_signup").click(function(){
            $.post('/subscribe/', {email : $("#email_input_field").val(), csrfmiddlewaretoken: $("input[name='csrfmiddlewaretoken']").val()}, function(json){
            }, 'json');
            $("#email_signup").html("<h4>Thanks!</h4>");
        });
    
    }
    
    
});

