function formularioContactos(){
    try {
        $("form.signupformCont").validate({
            rules: {
                name: {
                    required: true,
                   minlength: 5
                },
                email: {
                    required: true,
                    email: true,
                   minlength: 5
                },
                message:  {
                    required: true,
                   minlength: 8
                }
            },
            errorPlacement: function(error, element) {
            //                if ( element.is(":radio") )
            //                    error.appendTo( element.parent().next().next() );
            //                else if ( element.is(":checkbox") )
            //                    error.appendTo ( element.next() );
            //                else
            //                    error.appendTo( element.parent().next() );

            //                if(!element.is(":checkbox") && !element.is(":radio"))
            //                    element.parent().attr('class')
            },
            // specifying a submitHandler prevents the default submit, good for the demo
            submitHandler: function() {
                var data ={
                    name:$('#name').val(),
                    email:$('#email').val(),
                    mensagem:$('#message').val()
                };
                $.post("paginas/enviaContact.php",data,function(data){
                    alert(data);
                    $("form.signupformCont")[0].reset();
                });
            },
            // set this class to error-labels to indicate valid fields
            success: function(label) {
                // set &nbsp; as text for IE
                label.html("&nbsp;").addClass("checked");

            }
        });

    } catch (exception) {
        alert('erro grave!')
    }

}
function mapa_google(){
    var beachMarker = []
    var mystyle = [
    {
        featureType: "all",
        elementType: "all",
        stylers: [
        {
            hue: "#f9faab"
            
        },
        {
            saturation: 70
        },
        {
            lightness:0
        }
        ]
    }
    ];


    var meuEstilo = new google.maps.StyledMapType(mystyle);
    var latlng = new google.maps.LatLng(40.204521,-8.417343);
    var myOptions = {
        zoom: 16,
        disableDefaultUI: true,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.HYBRID
    };
    var map = new google.maps.Map(document.getElementById("mapa_google"), myOptions);
    var image = 'imagens/profi_aqui.png';
    /*            var image = new google.maps.MarkerImage(
                //url
                'http://punchline.pt/site2011/imagens/punch-aqui.gif',
                // size:
                new google.maps.Size(50, 50),
                // origin:
                new google.maps.Point(0, 0),
                // anchor:
                latlng,
                // set scaledSize:
                new google.maps.Size(50, 50)
            );*/
    beachMarker[0] = new google.maps.Marker({
        position: latlng,
        map: map,
        icon: image,
        scaledSize:10
    });
    // map.MapImage.setIcon(beachMarker)
    //beachMarker.width(10)
  
    var styledMapType = new google.maps.StyledMapType(mystyle, {
        name: 'meuEstilo'
    });
    map.mapTypes.set('meuEstilo', styledMapType);
}
