def detect_mobile_long()
      if (detect_mobile_quick() || detect_game_console())
        return true
      end

      if (detect_danger_hiptop() || detect_maemo_tablet() || detect_sony_mylo() || detect_archos())
        return true
      end

      if ((user_agent.include?(DEVICE_PDA)) &&
          (!user_agent.include?(DIS_UPDATE)))
        return true
      end


      if ((user_agent.include?(UPLINK)) || (user_agent.include?(ENGINE_OPEN_WEB)) || (user_agent.include?(MANU_SAMSUNG1)) || (user_agent.include?(MANU_SONY_ERICSSON)) || (user_agent.include?(MANUERICSSON)) || (user_agent.include?(SVC_DOCOMO)) || (user_agent.include?(SVC_KDDI)) || (user_agent.include?(SVC_VODAFONE)))
        return true
      end

      return false
    end
def detect_mobile_long()
      if (detect_mobile_quick() || detect_game_console())
        return true
      end

      if (detect_danger_hiptop() || detect_maemo_tablet() || detect_sony_mylo() || detect_archos())
        return true
      end

      if ((user_agent.include?(DEVICE_PDA)) &&
          (!user_agent.include?(DIS_UPDATE)))
        return true
      end


      if ((user_agent.include?(UPLINK)) || (user_agent.include?(ENGINE_OPEN_WEB)) || (user_agent.include?(MANU_SAMSUNG1)) || (user_agent.include?(MANU_SONY_ERICSSON)) || (user_agent.include?(MANUERICSSON)) || (user_agent.include?(SVC_DOCOMO)) || (user_agent.include?(SVC_KDDI)) || (user_agent.include?(SVC_VODAFONE)))
        return true
      end

      return false
    end
=begin
*
     * The longer and more thorough way to detect for a mobile device.
     *   Will probably detect most feature phones,
     *   smartphone-class devices, Internet Tablets,
     *   Internet-enabled game consoles, etc.
     *   This ought to catch a lot of the more obscure and older devices, also --
     *   but no promises on thoroughness!
     * @return detection of any mobile device using the more thorough method

=end