



$(document).ready(function(){
    $('#xtxt').html($('#txt0').html());
        $('td.nav2').click(function(){
            
            var x = $('td.nav2').index(this);

            $('#ximg').fadeOut(function(){
                $('#ximg').attr('src', $('#img'+x).attr('src'));
                $('#ximg').fadeIn(1000);
            });
            
            $('#xtxt').fadeOut(500, function(){
//                alert($('#txt'+x).html());
                
                $('#xtxt').html($('#txt'+x).html());
                $('#xtxt').fadeIn(function(){
                    $("a[rel^='lightbox']").prettyPhoto({animationSpeed:'slow',slideshow:2000});
                });
            });

            

            $('td.nav2').css("background-color","");
            $('td.nav2').removeClass("nav2_actif");

            $(this).css("background-color","#606060");
            $(this).addClass("nav2_actif");
        });
    });
