Adjusting position

My attempt to fix issue #8.

Detecting if there is enough space to render the datepicker and if not - changing its position.
Additionaly added setPosition function to prototype - may be quite useful as noted in comments.

Trying once again as previous version wasn't supporting IE correctly. I've checked this one in IE 8, 9 and 10 - all is good.