code: function(element) {
  			var pnode = element;
  			var x = pnode.offsetLeft;
  			var y = pnode.offsetTop;
  			
  			while ( pnode.offsetParent ) {
  				pnode = pnode.offsetParent;
  				if (pnode != document.body && pnode.currentStyle['position'] != 'static') {
  					break;
  				}
  				if (pnode != document.body && pnode != document.documentElement) {
  					x -= pnode.scrollLeft;
  					y -= pnode.scrollTop;
  				}
  				x += pnode.offsetLeft;
  				y += pnode.offsetTop;
  			}
  			
  			return { x: x, y: y };
  		}
docs: IE & IE<9