Factor the  sliding transition demo in index.htm

Add the main sliding navigation functionality into the
main application. This still lacks full scrolling functionality
on some devices from the main frame.