Tell a movieclip where to start from url

How can I tell a movieclip, such as a menu at what frame it should start from a URL with variables in it.

For example:

if the url is http://www.mysite.com/index.php?id=contact
my menu movie should have the contact button highlighted being frame 10 of the menumovieclip
and if the url is http://www.mysite.com/index.php?id=company
my movieclip should start at frame 12

ALso i would like to load some fotos in it at the specific url
being company.swf and contact.swf

Is this possible? And if it is, how can I do it?
I’m a total actionscript newbie, so full code please…

Thanks in advance