Possible Duplicate:
best way to detect handheld device in jQuery
I currently have a website standard HTML/CSS, I have done a mobile version of the site using jQuery Mobile.
I now want to detect only "smart phone" Win7, iPhone, Andriod, I do not wish to target tablets, just phones!
So if a user comes to my website on a mobile phone (smart phone) they will then be directed to the mobile version of my site located in a subfolder /mobile.
How is this possible? Can it be done using css or jQuery? What is the best method of doing this?