Arduino and controling an eight wire stepper

The direction depends on how the coils are wired and what sequence they are switched. See:-
http://www.thebox.myzen.co.uk/Workshop/Motors_3.html

and
http://www.thebox.myzen.co.uk/Workshop/Motors_4.html