(1) The general assembly shall appropriate money for the provision of services to juveniles to the department of human services. The department of human services shall allocate such money by each judicial district in the state. Such appropriation and allocation shall be made based upon the formula developed in section 19-2-212 (1)(b). The department of human services shall administer the appropriated money. The money appropriated to the department of human services for allocation by each judicial district must be expended in the judicial district by the department of human services for services to juveniles that are intended to prevent the juvenile from being held in detention prior to adjudication, sentenced to detention, or committed to the department of human services or to reduce the length of time the juvenile is held in preadjudication or postadjudication detention or held in a commitment facility operated under section 19-2-403. If a judicial district has a local juvenile services planning committee, the expenditure of money for juvenile services in the judicial district shall be made in accordance with the plan developed pursuant to section 19-2-211.
(2) For the purposes of this section, a "juvenile" also includes a youth ten years of age or older but less than seventeen years of age who is habitually truant, as defined in section 22-33-102 (3.5), and who the court has ordered to show cause why he or she should not be held in contempt of court pursuant to section 22-33-108 (7), when funds are expended for services that are intended to prevent the youth from being held in detention or sentenced to detention.