http://homepages.which.net/~paul.hil...ingTravel.html

If you can get some double pole double throw relays (aka double pole change over) and some microswitches that will do the trick.

Technobots and Maplin both do some that should be suitable.