jQuery(document).ready(function() {

// metto i bordi arrotondati al footer
$("#footer").corner("round 5px");


// metto i bordi arrotondati alla barra di navigazione
$(".navigation").corner("round 5px");


// metto i bordi arrotondati ai box dei commenti
$("#comments").corner("round 5px");
$("#respond").corner("round 5px");

// metto i bordi arrotondati ai box della barra laterale
$("#sidebar h2.widgettitle").corner("round 5px");

// metto i bordi arrotondati ai titoli
$(".post h2").corner("round 5px");
$(".post h3").corner("round 5px");

// faccio sparire le cose che non voglio mostrare subito
$("#sidebar #archives-2 ul").eq(0).addClass("hidden");
$("#sidebar #categories-1 ul").eq(0).addClass("hidden");
$("#sidebar #settolinks ul.link_level_1").eq(0).addClass("hidden");


// gestione degli elementi cliccabili della sidebar
$("#sidebar #archives-2 h2").hover(function() {
     $(this).addClass("active");
   },function(){
     $(this).removeClass("active");
   });
$("#sidebar #categories-1 h2").hover(function() {
     $(this).addClass("active");
   },function(){
     $(this).removeClass("active");
   });
$("#sidebar #settolinks h2.widgettitle").hover(function() {
     $(this).addClass("active");
   },function(){
     $(this).removeClass("active");
   });


// faccio riapparire al click
$("#sidebar #archives-2 h2").click(function() {
      $("#sidebar #archives-2 ul").eq(0).slideToggle("slow");
   });
$("#sidebar #categories-1 h2").click(function() {
      $("#sidebar #categories-1 ul").eq(0).slideToggle("slow");
   });
$("#sidebar #settolinks h2.widgettitle").click(function() {
      $("#sidebar #settolinks ul.link_level_1").eq(0).slideToggle("slow");
   });


});