rem: alert("unable to get position of "+elem+" (id:"+elem.id+")"); 
add: alert("unable to get position of " + elem + " (id:" + elem.id + ")"); 
context: function getElementPosition(elem) {    // returns a Position with the position of the element    var x = 0;    var y = 0;    if (defined(elem.offsetLeft)) {        var e = elem;        while (e) {            if (defined(e.clientLeft)) {                // special for IE                if (browserType.isMac) {                    if (e.offsetParent.tagName == "BODY") {                        // IE for Mac extraspecial                        x += e.clientLeft;                        y += e.clientTop;                        break;                    }                } else {                    if ((e.tagName != "TABLE") && (e.tagName != "BODY")) {                        x += e.clientLeft;                        y += e.clientTop;                    }                }            }            x += e.offsetLeft;            y += e.offsetTop;            e = e.offsetParent;        }    } else if (defined(elem.x)) {        x = elem.x;        y = elem.y;    } else if (defined(elem.pageX)) {        x = elem.pageX;        y = elem.pageY;    } else {        alert("unable to get position of "+elem+" (id:"+elem.id+")");    }    return new Position(getInt(x), getInt(y));}
meta: 7747	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7747/1c490c62f51789385722c76e807d3ccba09c6543/baselib.js/buggy/client/digitallibrary/greyskin/baselib.js