hmm, i was looking at swffit, but didn't know it's so powerful. it's hand in hand with swfobject and works perfectly. the others are not, somehow the id of the flash is not available from where i call it.
one thing, if you want to use it into a block of text you have to modify from 'absolute' to 'relative', otherwise the swf will stay on top of the text.
in fact, i removed almost entire code because analyzes the window size and i don't want this: