Making animations work on Mozilla and IE.