Click jpg/SWF on HTML page to load new SWF in its place?

I have several swfs I cannot edit which I would like to place in a table on an HTML page. I do not want all of them to autoplay, so ideally I would like to put jpg stills in their place and upon user clicking each jpg the corresponding swf would load in place of the jpg and play (if not jpgs, then swfs that act as stills.)

Does anyone know how I could go about this?