docs: function get_type() {
      if (/AppleWebKit.*Mobile/i.test(user_agent) || /MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(user_agent)) {
          try {
              //if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(user_agent)){
              //    return 'wap'
              //    window.location.href="http://xw.qq.com/index.htm";
              if (/iPad/i.test(user_agent)) {
                  return 'pad';
              } else {
                  return 'wap';
              }
          } catch (e) {}
      }
      return 'pc';
  }