Changing Browser Size based on Swf Size?

Hi guys, just curious on how to go about this.

I have a swf file with a link and this link opens another swf file. I want the swf file to open up in a browser,but i want it to be the width and height of the swf?

seems simple enough , just cant figure it out if has something to do with the publish settings or javascript.

thanks, fuzz.