Juvenile with developmental disability, mental illness, or alcohol or drug dependency. If a juvenile alleged to be delinquent or in need of protection or services is before the court and appears to have a developmental disability or mental illness or to be drug dependent or suffering from alcoholism, the court may proceed under ch. 51 or 55.