/* raccourci du doc ready */
$(function(){    
    var $menuBar   = $(".move") ;
    var $window    = $(window) ; 
    var offset     = $menuBar.offset() ;
    $window._scrollable();
    if(window.location.pathname == "http://www.djmacmanus.com/") {
      $menuBar.hide();
      
      $window.scroll(function() {
        if ($window.scrollTop() > offset.top + 600) {
            $(".move").show("fast") ;

        } else {
            $(".move").hide("slow");
        }
     });
    }
    
    
    $('.homeNav').click(function() {
        var $this = $(this);
        var link=$this.attr('href');       
        var targetYpos = $("#"+link).offset().top - 20; 
        $.scrollTo(targetYpos, 1500, 'bounce', showMenu);
        
        return false ;
      });
      
    $('.contact').click(function() {
        var $this = $(this);
        var link=$this.attr('href');       
        var targetYpos = $("#"+link).offset().top - 20; 
        $.scrollTo(targetYpos, 1500, 'bounce', showMenu);
        
        return false ;
      });
    
    function showMenu(){
        $(".move").show("fast") ;
    }
    
    // implémentation des stickers 
    $('#MASTERMIX dl:first > dd.artwork img').before("<span class=\"sticker\"></span>");
});

    

