A occhio dovresti agire sulla proprietà left invece che sulla top

id1.style.top = parseInt(id1.style.top)-1 + 'px';