// JavaScript Document


	// scroll follow parameters (with animation effect)
	 $(function() {

    var $sidebar   = $("#sidebar"),
        $window    = $(window),
        offset     = $sidebar.offset(),
		topPadding = 15;

    $window.scroll(function() {
        if ($window.scrollTop() > offset.top) {
			delay=0
            $sidebar.stop().animate({
                marginTop: $window.scrollTop() - offset.top + topPadding
            });
        } else {
            $sidebar.stop().animate({
                marginTop: 0
            });
        }
    });

});
