while ((obj.style.position == '' || obj.style.position == 'static') && (obj = obj.offsetParent) != null)