var email_input_default = 'Enter your email'; $(document).ready(function() { $('#mm_free_trial_checkbox').change(function() { if($(this).attr('checked')) { $('#full_disclaimer').slideUp(500, function() { $('#infusion_xid').val("5392657ed9fd85d9de1de63624a34d49"); $('#redirect_to').val("http://47.datingdyn.pay.clickbank.net/?cbfid=8833"); $('#free_trial_disclaimer').slideDown(500); }); } else { $('#free_trial_disclaimer').slideUp(500, function() { $('#infusion_xid').val("bda2000a89cab4cdef569dfba115c0c7"); $('#redirect_to').val("http://48.datingdyn.pay.clickbank.net/?cbfid=8833"); $('#full_disclaimer').slideDown(500); }); } }); $('#email_input').focus(function () { $(this).animate({'color':'#000000'}); if($(this).val() == email_input_default) { $(this).val(''); } }); $('#email_input').blur(function () { $(this).animate({'color':'#aaaaaa'}, function() { if($(this).val() == '') { $(this).val(email_input_default); } }); }); });