I'm making a flash website that requires a mobile version in html to run in tandem.

What is the best kind of script to do this with, PHP or javascript?

Any links welcome.

Rat