You can short sale your home which will minimize the credit impact and make it easier for you to fix your credit over time.
Erik Miles is a lawyer who can give you counsel and he's at 312 854 8092
and I'm a real estate broker that can help you sell your home and avoid foreclosure.
Baird & Warner
773 677 5340