How are pilots trained to prepare for crashes? I once read somewhere that pilots can go to some facilities so get trained for crashes.


  I actually went to a facility in New London, CT where they actually
  dunk you in water strapped in the seat of an airplane upside down and
  with your eyes closed in a big pool.


Is there any formal training for the commercial pilots to be prepared for crashes? If yes, how far do they go in training pilots and for what kind of crashes?
From my research to date it seems that most general aviation and commercial fixed wing pilots are instead trained rigorously in crash avoidance rather than crash escape. Flight attendants and other cabin staff drill regularly in crash preparation and cabin evacuation in several situations (gear-down landing, belly landing, water landing, fires blocking escape doors X, Y and Z, etc) but in an emergency, the job of the people behind the yokes is to first make sure the plane gets back on the ground in as close to one piece as possible; nobody's walking away from a nose-down dive into a mountain.