Thanks :-)
Edit: If you want a more detailed explanation, the Wikipedia entry on Quaternions might be helpful (specifically the multiplication table at the top).
Thanks :-)