The board of supervisors may by ordinance provide for the establishment, support, and maintenance of one or more agencies or departments to cooperate with and assist in coordinating on a countywide basis the work of those community agencies engaged in activities designed to prevent juvenile and adult delinquency; and such agencies or departments may cooperate with any such public or community committees, agencies, or councils at their invitation.