So I\'m working on the mobile version of a site I\'m doing, and
so far, I\'m pulling the mobile sites content from its main counterpart, the main site.
Server-side detection is definitely the way to do this, as you have no guarantee of JS being available or even turned on. A great PHP script for mobile detection is found here http://detectmobilebrowsers.mobi/ and it gets a lot of use around the web.