$(document).ready(function(){


    $( '#sommaire' ).scrollFollow( {
        speed: 700,
        offset: 60
     } );

    $('#sommaire a').click(function() {
        var $target2 = $(this.hash);
        $target2 = $target2.length && $target2 || $('[id=' + this.hash.slice(1) +']');
        $('html,body').animate({ scrollTop: $target2.offset().top }, 500);
        return false;
    })

    $('#top').click(function() {
        var $target2 = $(this.hash);
        $target2 = $target2.length && $target2 || $('[id=' + this.hash.slice(1) +']');
        $('html,body').animate({ scrollTop: $target2.offset().top }, 500);
        return false;
    })

    $('#bas').click(function() {
        var $target2 = $(this.hash);
        $target2 = $target2.length && $target2 || $('[id=' + this.hash.slice(1) +']');
        $('html,body').animate({ scrollTop: $target2.offset().top }, 500);
        return false;
    })


    $(".tiptip").tipTip();
    $(".tiptip-top").tipTip({position:'top'});
    $(".tiptip-left").tipTip({position:'left'});
    $(".tiptip-bottom").tipTip({position:'bottom'});
    $(".tiptip-right").tipTip({position:'right'});

});

