If you haven't set an inline style, style.left will give you the undefined object, which does indeed parseInt to NaN
Anonymous
You seem to have CSS turned off. Please don't fill out this field.