With a good plan in place, leaving the lab for family leave can go fairly smoothly, says this article at The Scientist. One of the first steps is to investigate the policies that your institute, or potential new institute, has for leave, tenure, and child care.