i'm using dreamweaver for this stuff..
it has some behaviors about plugin detection
but i can't help ya with the plugin detection
try to make a little swf file (1 on1) and on the fist frame ya put the get url action, put it in the html page
that loads the page when you've got flash