$(document).ready(function () {
   // $("#blockSoluzioni h3").click(function () {
   //     $(this).next(".panelSoluzioni").slideToggle(400).siblings(".panelSoluzioni").slideUp("slow");
   //     //$(this).siblings().css({backgroundImage:"url(images/more.png)"});
   // });


    //effetto label sulle textbox

    $('.fastsearch-input').focus(function () {

        $('.fastsearch-label').animate({ opacity: "0" }, "fast");

        if ($(this).val() == "fastsearch") {
            $(this).val() == "";
        }
    }).blur(function () {

        if ($(this).val() == "") {
            $(this).val() == "fastsearch";
            $('.fastsearch-label').animate({ opacity: "0.7" }, "fast");
        }
    });


    $('.nome-label, .telefono-label, .fastsearch-label').animate({ opacity: "0.7" })
      .click(function () {
          var thisFor = $(this).attr('for');
          $('.' + thisFor).focus();
      });

    $('.nome-input').focus(function () {

        $('.nome-label').animate({ opacity: "0" }, "fast");

        if ($(this).val() == "nome")
            $(this).val() == "";

    }).blur(function () {

        if ($(this).val() == "") {
            $(this).val() == "nome";
            $('.nome-label').animate({ opacity: "0.7" }, "fast");
        }
    });

    $('.telefono-input').focus(function () {

        $('.telefono-label').animate({ opacity: "0" }, "fast");

        if ($(this).val() == "telefono") {
            $(this).val() == "";
        }
    }).blur(function () {

        if ($(this).val() == "") {
            $(this).val() == "telefono";
            $('.telefono-label').animate({ opacity: "0.7" }, "fast");
        }
    });


});
