Is This Possible?

Sorry im useless at html so…

Is it possible that when a url is launched

a) detect that flash plug in is installed and if so…
… 1. the current “browser window” automatically fits to fullscreen
… 2. attach my swf file in this browser window
… 3. and then my flash file will then position itself based on Stage.height etc (i know this bit)

b) if no flash plug in
… launches a new html window

Hope you can help