Added support for using css classes for option list positioning

Using classes dk_open_bottom and dk_open_top to determine position rather than calculating manually the positioning inline