When the parties cannot reach an agreement regarding the custody of children, the court determines the custodial arrangement that is in the best interests of the children. To make its determination of custody and visitation, the court hears testimony from both parties, any experts they want to present, and any other parties who have direct knowledge of the ability of each spouse to parent the children. Read more.. http://www.divorcemag.com/NJ/faq/ddwildstein6.html