$(document).ready(function() { 

$("#subscribe").ajaxForm({
    beforeSubmit: function(formData, jqForm, options){
        if (Spry) { // checks if Spry is used in your page
            var r = Spry.Widget.Form.validate(jqForm[0]); // validates the form
            if (!r)
                return r;
        }
                // target identifies the element(s) to update with the server response 
                // success identifies the function to invoke when the server response 
                // has been received; here we apply a fade-in effect to the new content 
                //$('#thanks').show();
				//$('#send').attr('disabled', 'disabled');
				
				//$('#subscribe').ajaxForm(options);
				//var queryString = $.param(formData); 
				//$('#thanks.inner').replaceWith('Thanks, ' + queryString + ' has been subscribed.');
				//$('#thanks').show();
				//$('#send').attr('disabled', 'disabled');


    },
	target: '#thanks', 
	success: function() { 
            $('#thanks').fadeIn('slow');
			$('#send').attr('disabled', 'disabled');
			$('#send').css("cursor","default");
     } 
	

});


}); 
