How Does the Court Determine Who Gets the Children in Divorce?

Any time a couple is considering divorce or separation, [...]