Redirects to mobile site if particular user agent value is detected. Double check origin of dmRoot - might be proprietary to this implementation.

Lifted from http://static.mobilewebsiteserver.com/DM_redirect.js