Declare bankruptcy before foreclosure

Are you facing tough financial decisions? Trying to decide if you should declare bankruptcy to avoid a foreclosure or whether you should wait for the foreclosure to happen and then declare bankruptcy?...