in reply to advice about animated gif.

Hi, could you please provide a correctly formatted (well indented) version of your code? It is quite long and very difficult to read with no indentation.