$(document).ready( function () {

    //
    //    $("div.tabs_group span.tab_label a").click( function() {
    //
    //        $("span.tab_label").removeClass("active");
    //
    //        $(this).parent().addClass("active");
    //
    //        var index = $("div.tabs_group span").index($(this).parent());
    //
    //        $("div.tab_content").hide();
    //
    //        $("div.tab_content").eq(index).show();
    //
    //        return false;
    //
    //    });
    //
    //    $("span.tab_label a").eq(0).click();


    $("div#lingue").hide();


    $("div.blocco_lingue").mouseover(function () {
        $("div#lingue").show();
    });


    $("div.blocco_lingue").mouseout (function () {
        $("div#lingue").hide();
    });

    $("a[rel^='prettyPhoto']").prettyPhoto({
        social_tools: false    
    });

    $("#nav li ul").hide();

    $("#nav li").eq(0).mouseover(function () {
        $(this).find("ul").show();
    });


    $("#nav li").eq(0).mouseout (function () {
        $(this).find("ul").hide();
    });

    $("#search a").click ( function () {
       if ($.trim($("#search input").val()) != "") 
           $("#search form").submit();
    });

});




