(750 ILCS 5/604) (from Ch. 40, par. 604)
    Sec. 604. Interviews.) (a) The court may interview the child in chambers to ascertain the child's wishes as to his custodian and as to visitation. Counsel shall be present at the interview unless otherwise agreed upon by the parties. The court shall cause a court reporter to be present who shall make a complete record of the interview instantaneously to be part of the record in the case.
    (b) The court may seek the advice of professional personnel, whether or not employed by the court on a regular basis. The advice given shall be in writing and made available by the court to counsel. Counsel may examine, as a witness, any professional personnel consulted by the court, designated as a court's witness.
(Source: P.A. 80‑923.)