$(document).ready(function(){
      
        $('a[title="Facebook"]').attr('href','http://www.facebook.com/sharer.php?u='+escape(document.url));
        $('a[title="Twitter"]').attr('href','http://twitter.com/home?status= Estou navegando no site do Ballet Paula Castro! '+escape(document.url));
        

        $(function() {$(".menu").lavaLamp({fx: "backout", speed: 700})});

        $('input[name="nome"]').click(function(){
                $(this).val('');
        });

        $('input[name="enviar"]').click(function(){
             if($('input[name="nome"]').val().length < 3 || $('textarea').val().length < 3){
                    alert('Há campos que não foram satisfatoriamente preenchidos e o formulário não será enviado.');
                    $('input[name="nome"]').val("");
                    $('textarea').val("");
                    return false;
        }else{
           $.ajax({
                url: 'envios/recados.php',
                data: {
                       nome : $('input[name="nome"]').val(),
                       mensagem : $('textarea').val()
                },
                type:'POST',
                complete: function(){
                    alert("Mensagem enviada com sucesso!");
                }
            });
        }
    });
});


       


    
