added jquery to use offset, height and width. added methods for finding overlapping elements and overlapping portions of an element