jquery mobile detection configuration

jquery mobile detection configuration

I have two version of my website, one for normal desktop browsers, and a mobile version.  I'm trying to determine the best way to push users on phones to the mobile version.  But I would like them to be able to go back to the regular site if they want.

I know that some mobile sites have a "View Full Site" button at the bottom.  Right now I could easily add that to my mobile site, and just have it link to the regular one.  But if I have the regular one do some form of detection to push them to the mobile initially, how do I let the system know that they really do want to view the regular site?

The mobile site is a subdomain of the regular site.  And both are written in different languages if that makes a difference.  However jQuery is utilized on both.  Not sure if jQuery can do something like this or not.  Just looking for possible options.

Thanks