Press start and watch the planets move. You can drag them to any point and they will eventually find their orbits.
I hope to eventually do this with physics-based math, but for now, I use some simple motion tricks to create the orbits. Mars was done differently from the others, using a really cheap and nasty way. See if you can understand how it works.