Improved findElementPos method.

Included code for using jQuery's own .offset() function if present, as
well as falling back on the browser's own getBoundingClientRect function
(if supported). Original code is used as a last resort.