+1  A: 

SWFobject simply targets a tag by it's ID and writes the appropriate code. First step would be to use Javascript to call SWFobject using the ID of the appropriate div from your example. Say your ID is overlayFLASH...

swfobject.embedSWF("myContent.swf", "overlayFLASH", "300", "120", "9.0.0",'', '', '', '');

See the documentation for the other parameters and features (I've pared some stuff out for simplicity)... http://code.google.com/p/swfobject/wiki/documentation

liquidleaf