onMouseMove and Setinterval

Hi,

If i want an animation to play after 20 seconds where there are no mouse movement, how should i write the codes? If within this 20 secs, there is movement, then it should restart counting from 0 seconds again …

Anybody please help!

Thanks
chaq