What does the court consider in deciding whether to detain or release a juvenile?