$(document).ready(function() {	


  //Get all the LI from the #tabMenu UL
  $('#tabAgenda > li').click(function(){
        
    //remove the selected class from all LI    
    $('#tabAgenda > li').removeClass('selected3');
    
    //Reassign the LI
    $(this).addClass('selected3');
    
    //Hide all the DIV in .boxBody
    $('.boiteBody div').slideUp('1500');
    
    //Look for the right DIV in boxBody according to the Navigation UL index, therefore, the arrangement is very important.
    $('.boiteBody div:eq(' + $('#tabAgenda > li').index(this) + ')').slideDown('1500');
    
  }).mouseover(function() {

    //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest    
    $(this).addClass('mouseover3');
    $(this).removeClass('mouseout3');   
    
  }).mouseout(function() {
    
    //Add and remove class
    $(this).addClass('mouseout3');
    $(this).removeClass('mouseover3');    
    
  });

 
});