switched to jQuery and added scrolling behavior