Snippet starts a GIF-Animation by swapping a static image for a specified time period. Two pictures are required. The function is activated by a click, but other ways are of course possible
$(id).attr('src', animsrc).removeAttr('onclick').show();//Attribute onclick should be removed, 'cause this function gets fired every time a clickevent gets fired
setTimeout(function(){$(id).attr('src', src).attr('width','666').attr('height','583').attr('onclick', onclick);}, timeout);//sets timeout, so animation 'stops'