$(document).ready(function() {

                        $("#bot_mail").click(function(){
				var data = $("#form1").serialize();

					$.ajax
						({
						type: "POST",
						url: "mail.php",
						data: data,
						cache: false,
						success: function()
							{
								//hide the form
                    			$('.capture').hide();                
                    			//show the success message
                    			$('.done').fadeIn('fast',
								function() {
								$('.done').delay(2000).fadeOut('slow');
								});
							}
						});
					return false;
			});
		});
