<!-- User Agent Array - original source captured from http://dtip.tistory.com/40 -->

 var uAgent = navigator.userAgent.toLowerCase();
 var MobilePhones = new Array('iphone','ipod','android','blackberry','windows ce', 'nokia','webos','opera mini','sonyericsson','opera mobi','iemobile');
 for(var i=0;i<MobilePhones.length;i++)
   if(uAgent.indexOf(MobilePhones[i]) != -1)
     document.location = "http://"+ location.host +"/m" + location.pathname;

