Child Custody -How does a court decide who gets the children?