Added support for scrolling after opening

Added two options, scrollToOpened and scrollSpeed. These can be used to tell the browser to scroll to the top of the element opened, and the speed at which the scrolling is done. The default behaviour is not changed.