rem: var offset = $(refElem).offset(); 
add: var offset = jQuery(refElem).offset(); 
context: $.fn.offset = function(refElem) {	if (!this[0]) throw '$.fn.offset requires an element.';		refElem = (refElem) ? $(refElem)[0] : null;	var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0;	do {		if (parent.tagName == 'BODY' || parent.tagName == 'HTML') {			// Safari and IE don't add margin for static and relative			if (($.browser.safari || $.browser.msie) && pos != 'absolute') {				x += parseInt($.css(parent, 'marginLeft')) || 0;				y += parseInt($.css(parent, 'marginTop'))  || 0;			}			break;		}				pos    = $.css(parent, 'position');		border = [parseInt($.css(parent, 'borderLeftWidth')) || 0,							parseInt($.css(parent, 'borderTopWidth'))  || 0];		sl = parent.scrollLeft;		st = parent.scrollTop;				x += (parent.offsetLeft || 0) + border[0] - sl;		y += (parent.offsetTop  || 0) + border[1] - st;				// Safari and Opera include the border already for parents with position = absolute|relative		if (($.browser.safari || $.browser.opera) && !isElm && (pos == 'absolute' || pos == 'relative')) {			x -= border[0];			y -= border[1];		}				parent = parent.offsetParent;		isElm  = false;	} while(parent);		if (refElem) {		var offset = $(refElem).offset();		x  = x  - offset.left;		y  = y  - offset.top;		sl = sl - offset.scrollLeft;		st = st - offset.scrollTop;	}		return {		top:  y,		left: x,		width:  elm.offsetWidth,		height: elm.offsetHeight,		borderTop:  parseInt($.css(elm, 'borderTopWidth'))  || 0,		borderLeft: parseInt($.css(elm, 'borderLeftWidth')) || 0,		marginTop:  parseInt($.css(elm, 'marginTopWidth'))  || 0,		marginLeft: parseInt($.css(elm, 'marginLeftWidth')) || 0,		scrollTop:  st,		scrollLeft: sl,		pageYOffset: window.pageYOffset || document.documentElement.scrollTop  || document.body.scrollTop  || 0,		pageXOffset: window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0	};};
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3217/c26ae24a1be9fda111f2c3fc69a3e865bfc1ec31/dimensions.js/clean/src/dimensions/dimensions.js