build/helper.js
function smoothScroll() {

	if (window.addEventListener)
		window.addEventListener('DOMMouseScroll', wheel, false);

	window.onmousewheel = document.onmousewheel = wheel;

	var hb = {
		sTop: 0,
		sDelta: 0
	};

	function wheel(event) {

		var distance = jQuery.browser.webkit ? 60 : 120;
		if (event.wheelDelta)
			delta = event.wheelDelta / 120;
		else if (event.detail)
			delta = -event.detail / 3;

		hb.sTop = jQuery(window).scrollTop();
		hb.sDelta = hb.sDelta + delta * distance;

		jQuery(hb).stop().animate({
			sTop: jQuery(window).scrollTop() - hb.sDelta,
			sDelta: 0
		}, {
			duration: 200,
			easing: 'linear',
			step: function(now, ex) {
				if (ex.prop == 'sTop') jQuery('html, body').scrollTop(now)
			},
		});

		if (event.preventDefault)
			event.preventDefault();

		event.returnValue = false
	}

}
function smoothScroll() {

	if (window.addEventListener)
		window.addEventListener('DOMMouseScroll', wheel, false);

	window.onmousewheel = document.onmousewheel = wheel;

	var hb = {
		sTop: 0,
		sDelta: 0
	};

	function wheel(event) {

		var distance = jQuery.browser.webkit ? 60 : 120;
		if (event.wheelDelta)
			delta = event.wheelDelta / 120;
		else if (event.detail)
			delta = -event.detail / 3;

		hb.sTop = jQuery(window).scrollTop();
		hb.sDelta = hb.sDelta + delta * distance;

		jQuery(hb).stop().animate({
			sTop: jQuery(window).scrollTop() - hb.sDelta,
			sDelta: 0
		}, {
			duration: 200,
			easing: 'linear',
			step: function(now, ex) {
				if (ex.prop == 'sTop') jQuery('html, body').scrollTop(now)
			},
		});

		if (event.preventDefault)
			event.preventDefault();

		event.returnValue = false
	}

}
function smoothScroll ( ) { if ( window . addEventListener ) window . addEventListener ( 'DOMMouseScroll' , wheel , false ) ; window . onmousewheel = document . onmousewheel = wheel ; var hb = { sTop : 0 , sDelta : 0 } ; function wheel ( event ) { var distance = jQuery . browser . webkit ? 60 : 120 ; if ( event . wheelDelta ) delta = event . wheelDelta / 120 ; else if ( event . detail ) delta = - event . detail / 3 ; hb . sTop = jQuery ( window ) . scrollTop ( ) ; hb . sDelta = hb . sDelta + delta * distance ; jQuery ( hb ) . stop ( ) . animate ( { sTop : jQuery ( window ) . scrollTop ( ) - hb . sDelta , sDelta : 0 } , { duration : 200 , easing : 'linear' , step : function ( now , ex ) { if ( ex . prop == 'sTop' ) jQuery ( 'html, body' ) . scrollTop ( now ) } , } ) ; if ( event . preventDefault ) event . preventDefault ( ) ; event . returnValue = false } }
Smooth scroll plugin
Smooth scroll plugin