Easy problem but can't fix it!

Hi all,

I’ve been asked to create 2 websites; one made in flash for computer browsers and another one for smartphones…

What I need to do is make the html reconize what type of app is running the website so it redirects to the right home page.

Computer - flash website
Smartphones - little html website

Can anyone please help?

thanks!!