Loose logic board connections. If it is fine when still but not when moved, you need to open it up and push in all the connections.

Take a look at the iBook guides