

$(document).ready(function(){
  $('#illu img').fadeTo(0, 0.3);
  
  var swatch = false;
  
$("#switch").click(function(){
if (swatch == false){
$('#illu img').fadeTo(0, 1);
$('#droite').children().not('#switch').fadeTo(0, 0);
$("#switch").css({'background-position-y': '-20px'});
}

else {
$('#illu img').fadeTo(0, 0.3);
$('#droite').children().not('#switch').fadeTo(0, 1);
$("#switch").css({'background-position-y': '0px'});
}

swatch = !swatch;

});
var homeOk = $('#homeBoxes').size();
if (homeOk != '0')         { $("#homeBoxes").reorder();
        };
          $("#homeBoxes").reorder();
         $(".extrait_de").hide();
         $(".homeBox").mouseenter(function(){
         $(this).children(".extrait_de").slideDown('fast', 'linear');
         });
         
         $(".homeBox").mouseleave(function(){
         $(this).children(".extrait_de").slideUp('fast', 'linear');
         });

         
       
       
  
    
     
         
         
         });
         
         
         
         
         
