What is the best way for a seamless animation?

In the website I am developing I am trying to create a seamless cog effect. I am having difficulty getting the chain to animate seamlessly in reverse. I am also having difficulty with the synchronization of the cogs. Any suggestions on these matters or anything else you notice would be greatly appreciated.

http://www.graphxco.com

Thanks,
Scott:-/