webroot/pages/assets/js/script.js
function goTo(hash,changehash){
		win.unbind('hashchange', hashchange);
		hash = hash.replace(/!\//,'');
		win.stop().scrollTo(hash,duration,{
			easing:easing,
			axis:'y'			
		});
		if(changehash !== false){
			var l = location;
			location.href = (l.protocol+'//'+l.host+l.pathname+'#!/'+hash.substr(1));
		}
		win.bind('hashchange', hashchange);
	}
function goTo(hash,changehash){
		win.unbind('hashchange', hashchange);
		hash = hash.replace(/!\//,'');
		win.stop().scrollTo(hash,duration,{
			easing:easing,
			axis:'y'			
		});
		if(changehash !== false){
			var l = location;
			location.href = (l.protocol+'//'+l.host+l.pathname+'#!/'+hash.substr(1));
		}
		win.bind('hashchange', hashchange);
	}
function goTo ( hash , changehash ) { win . unbind ( 'hashchange' , hashchange ) ; hash = hash . replace ( / !\/ / , '' ) ; win . stop ( ) . scrollTo ( hash , duration , { easing : easing , axis : 'y' } ) ; if ( changehash !== false ) { var l = location ; location . href = ( l . protocol + '//' + l . host + l . pathname + '#!/' + hash . substr ( 1 ) ) ; } win . bind ( 'hashchange' , hashchange ) ; }
scroll to a section and set the hash
scroll to a section and set the hash