if(obj.offsetParent) {
var copyObj = obj;
while(1) {
- var borderLeft = getComputedStyle(copyObj, null).borderLeft || "0";
+ var borderLeft = window.getComputedStyle(copyObj, null).borderLeft || "0";
curleft += parseInt(borderLeft, 10) ;
curleft += copyObj.offsetLeft;
if(!copyObj.offsetParent) {
if(obj.offsetParent) {
var copyObj = obj;
while(1) {
- var borderTop = getComputedStyle(copyObj, null).borderTop || "0";
+ var borderTop = window.getComputedStyle(copyObj, null).borderTop || "0";
curtop += parseInt(borderTop, 10) ;
curtop += copyObj.offsetTop;
if(!copyObj.offsetParent) {