get_broswer with flash

hey guys. Im currently making my new site and I intend to use scrollpanes to load external swf files into my main site swf. Now the trouble ive had before is that the code I use

onClipEvent (data) {
paneMC.refreshPane();
}

seems to only work for netscape/mozilla browsers, and not IE. What I was thinking was making it so that the PHP could detect which browser the user has and then run certain AS depending on which browser.

Like if a user has firefox then the flash movie would be told to run the refreshPane code, otherwise if the user has IE, it will run a getURL script to just simply reload the browser.

Unfortunatly I have no clue about PHP, I know my host can support it so thats no problem, but I would REALY appreciate some help on this.

Thanks in advance =D