Swf position inside HTML

Hi,
Is there a way to check _X and _Y of .swf, where it is placed within an HTML page?
My banner will be placed in different places (around the page) and it should know where it is (the banner will be within <div class=‘banner’><src=‘http://…’></div> section) to play proper animation (either animate from left ro right, or from bottom to top).