Can I animate a rigid body object toggling between active and static?

I know I can keyframe the animation checkbox, but whenever I switch back to regular mode, the position always goes back to the place it started. How do I fix this?