if control.offset().top > $(window).outerHeight()

Added functionality if the position of the options menu extends past the visible window, then the position of the options goes above the selectbox. also added CSS classes if above or below the selectbox.

Using the slide transition will look funky if the options position is on top just because of how .slideDown() works

Added top and bottom styles for options and control

See https://github.com/TehCanadian/jquery-selectBox/commit/77d10ca0d200a39d563422af73822c628b3076dc#jquery.selectBox.js for changes and explanation

Update jquery.selectBox.min.js

See https://github.com/TehCanadian/jquery-selectBox/commit/77d10ca0d200a39d563422af73822c628b3076dc#jquery.selectBox.js for Changes and explanation

Fixed class callign and checking

Update jquery.selectBox.min.js

Fix for older versions

Removed overwrite of class and plain added a new lass to element

Update jquery.selectBox.min.js

Replace indents with spaces