        var anim;
        $(function(){
            $('#first_dot').hover(
                function() { show_first(); },
                function() {  }
            );
            $('#second_dot').hover(
                function() { show_second(); },
                function() {  }
            );
            $('#third_dot').hover(
                function() { show_third(); },
                function() {  }
            );
            $('#bubble2').hide();
            $('#bubble3').hide();
            setTimeout("show_first()", 8000);
        });
        
        function show_first() {
            clearTimeout(anim);
            $('#first_dot').attr('src', '/public/images/animation/dot_active.png');
            $('#second_dot').attr('src', '/public/images/animation/dot.png');
            $('#third_dot').attr('src', '/public/images/animation/dot.png');
            $('#bubble1').show();
            $('#bubble2').hide();
            $('#bubble3').hide();
            $('#animation .buttons').show();
            anim = setTimeout("show_second()", 8000);
        }

        function show_second() {
            clearTimeout(anim);
            $('#first_dot').attr('src', '/public/images/animation/dot.png');
            $('#second_dot').attr('src', '/public/images/animation/dot_active.png');
            $('#third_dot').attr('src', '/public/images/animation/dot.png');
            $('#bubble1').hide();
            $('#bubble2').show();
            $('#bubble3').hide();
            $('#animation .buttons').hide();
            anim = setTimeout("show_third()", 6000);
        }
        
        function show_third() {
            clearTimeout(anim);
            $('#first_dot').attr('src', '/public/images/animation/dot.png');
            $('#second_dot').attr('src', '/public/images/animation/dot.png');
            $('#third_dot').attr('src', '/public/images/animation/dot_active.png');
            $('#bubble1').hide();
            $('#bubble2').hide();
            $('#bubble3').show();
            $('#animation .buttons').hide();
            anim = setTimeout("show_first()", 6000);
        }
        
        