A occhio dovresti agire sulla proprietà left invece che sulla top
id1.style.top = parseInt(id1.style.top)-1 + 'px';
A occhio dovresti agire sulla proprietà left invece che sulla top
id1.style.top = parseInt(id1.style.top)-1 + 'px';
http://www.anobii.com/isalreadyinuse