(1) The power of the court under section 9 to make an order as to the custody of an infant and the right of access thereto may be exercised notwithstanding that the mother and the father of the infant are then residing together.
(2) Where the court makes an order giving the custody of the infant to one parent, then, whether or not the mother and the father are residing together, the court may further order that the other parent shall pay to the parent having the custody of the infant such weekly or other periodical sums towards the maintenance of the infant as the court, having regard to the means of both parents, may think reasonable.
(3) No order providing for custody or maintenance of an infant shall be enforceable and no liability thereunder shall accrue while the mother and the father are residing together, and any such order shall cease to have effect if, for a period of 3 months after it is made, the mother and the father continue to reside together.
(4) Any order made under subsection (2) may, on the application either of the father or the mother of the infant, be varied or discharged by a subsequent order.