$(document).ready(function(){

$("#vbando").hide();
$("#vtemi").hide();
$("#vspunti").hide();
$("#vstrumenti").hide();
$("#vvincitori").hide();
$("#box-scuola").hide();
$("#box-crescere").hide();
$("#box-bene").hide();

$("a#diversi").hide(); 
$("a#scuola").show();
$("a#crescere").show();
$("div#sel-diversi").show();
$("div#sel-bene").hide();
$("div#sel-scuola").hide();
$("div#sel-crescere").hide();

$("a#bando").mouseover(function(){
$("#vtemi").hide();
$("#vspunti").hide();
$("#vvincitori").hide();
$("#vbando").slideDown('fast');
});
$("#vbando").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vbando").hide();
    });

$("a#premi").mouseover(function(){
$("#vbando").hide();
$("#vtemi").hide(); 
$("#vspunti").hide();
$("#vvincitori").hide();
});

$("a#partecipare").mouseover(function(){    
$("#vbando").hide();
$("#vtemi").hide(); 
$("#vspunti").hide();
$("#vvincitori").hide();
});

$("a#temi").mouseover(function(){
$("#vbando").hide();
$("#vspunti").hide();
$("#vvincitori").hide();
$("#vtemi").slideDown('fast');
});
$("#vtemi").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vtemi").hide();
    });

$("a.sel-temi").mouseover(function(){
$("#vbando").hide();
$("#vspunti").hide();
$("#vvincitori").hide();
$("#vtemi").slideDown('fast');
});
$("#vtemi").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vtemi").hide();
    });

$("a#formato").mouseover(function(){
$("#vbando").hide();
$("#vtemi").hide();  
$("#vspunti").hide();   
$("#vvincitori").hide();
});

$("a#spunti").mouseover(function(){
$("#vbando").hide(); 
$("#vtemi").hide();
$("#vvincitori").hide();
$("#vspunti").slideDown('fast');
});
$("#vspunti").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vspunti").hide();
    }); 

$("a.sel-spunti").mouseover(function(){
$("#vbando").hide(); 
$("#vtemi").hide();  
$("#vvincitori").hide();
$("#vspunti").slideDown('fast');
});
$("#vspunti").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vspunti").hide();
    }); 

$("a#strumenti").mouseover(function(){
$("#vbando").hide(); 
$("#vtemi").hide();
$("#vspunti").hide();
$("#vvincitori").hide();
});

$("a#vincitori").mouseover(function(){
$("#vbando").hide(); 
$("#vtemi").hide();
$("#vspunti").hide();
$("#vvincitori").slideDown('fast');
});
$("#vvincitori").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vvincitori").hide();
    });

$("a.sel-vincitori").mouseover(function(){
$("#vbando").hide();
$("#vtemi").hide();     
$("#vspunti").hide();
$("#vvincitori").slideDown('fast');
});
$("#vvincitori").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
      $("#vvincitori").hide();
    });

$("a#iscrizione").mouseover(function(){
$("#vbando").hide();    
$("#vtemi").hide();     
$("#vspunti").hide();   
$("#vvincitori").hide();
});

$("a#contatti").mouseover(function(){
$("#vbando").hide();    
$("#vtemi").hide();     
$("#vspunti").hide();   
$("#vvincitori").hide();
});

	
$("a#diversi").click(function () {
  $("a#diversi").hide();
  $("a#scuola").show();
  $("a#crescere").show();
  $("a#bene").show();

  $("div#sel-bene").hide();
  $("div#sel-scuola").hide();
  $("div#sel-crescere").hide();
  $("div#sel-diversi").show();

  $("#box-crescere").hide();
  $("#box-bene").fadeOut('fast');    
  $("#box-scuola").fadeOut('fast');
  $("#box-diversi").fadeIn('fast');
});

$("a#scuola").click(function () {
  $("a#scuola").hide();
  $("a#diversi").show();       
  $("a#crescere").show();
  $("a#bene").show(); 

  $("div#sel-diversi").hide();
  $("div#sel-crescere").hide();
  $("div#sel-bene").hide();
  $("div#sel-scuola").show();

  $("#box-diversi").fadeOut('fast');
  $("#box-crescere").hide();
  $("#box-bene").fadeOut('fast');
  $("#box-scuola").fadeIn('fast');
});

$("a#crescere").click(function () {
  $("a#crescere").hide();
  $("a#scuola").show();       
  $("a#diversi").show();
  $("a#bene").show(); 

  $("div#sel-diversi").hide();
  $("div#sel-scuola").hide();
  $("div#sel-bene").hide();
  $("div#sel-crescere").show();

  $("#box-diversi").fadeOut('fast');
  $("#box-bene").fadeOut('fast');
  $("#box-scuola").fadeOut('fast');
  $("#box-crescere").fadeIn('fast');
});

$("a#bene").click(function () {
  $("a#bene").hide();
  $("a#scuola").show();       
  $("a#crescere").show();
  $("a#diversi").show(); 

  $("div#sel-diversi").hide();
  $("div#sel-scuola").hide(); 
  $("div#sel-crescere").hide();
  $("div#sel-bene").show();

  $("#box-diversi").fadeOut('fast');
  $("#box-scuola").fadeOut('fast');
  $("#box-crescere").hide();
  $("#box-bene").fadeIn('fast');
});


$("a#diversi2").click(function (event) {
  $("#box-contenuto-spunti").animate({ marginTop: "0px"}, 500 );
  event.preventDefault();
});

$("#scuola2").click(function (event) {
  $("#box-contenuto-spunti").animate({ marginTop: "-380px"}, 500 );
  event.preventDefault();
});

$("#crescere2").click(function (event) {
  $("#box-contenuto-spunti").animate({ marginTop: "-570px"}, 500 );
  event.preventDefault();
});

$("#bene2").click(function (event) {
  $("#box-contenuto-spunti").animate({ marginTop: "-1300px"}, 500 );
  event.preventDefault();
});

});

function visualizza() {

$("#corpo-home").show('fast');

$("#menu").slideDown('fast');
}
