(10) If, prior to August 12, 2005 (the effective date of Public Act 94-574), a minor is charged with a violation of Section 401 of the Illinois Controlled Substances Act under the criminal laws of this State, other than a minor charged with a Class X felony violation of the Illinois Controlled Substances Act or the Methamphetamine Control and Community Protection Act, any party including the minor or the court sua sponte may, before trial, move for a hearing for the purpose of trying and sentencing the minor as a delinquent minor. To request a hearing, the party must file a motion prior to trial. Reasonable notice of the motion shall be given to all parties. On its own motion or upon the filing of a motion by one of the parties including the minor, the court shall conduct a hearing to determine whether the minor should be tried and sentenced as a delinquent minor under this Article. In making its determination, the court shall consider among other matters:
(a) The age of the minor;
(b) Any previous delinquent or criminal history of the minor;
(c) Any previous abuse or neglect history of the minor;
(d) Any mental health or educational history of the minor, or both; and
(e) Whether there is probable cause to support the charge, whether the minor is charged through accountability, and whether there is evidence the minor possessed a deadly weapon or caused serious bodily harm during the offense.
Any material that is relevant and reliable shall be admissible at the hearing. In all cases, the judge shall enter an order permitting prosecution under the criminal laws of Illinois unless the judge makes a finding based on a preponderance of the evidence that the minor would be amenable to the care, treatment, and training programs available through the facilities of the juvenile court based on an evaluation of the factors listed in this subsection (10).