This is not a question for a real estate agent. Contact a professional that is trained to give advise in this field. Most real estate agents have some knowledge, but we cannot and should not give advice of this topic. Contact an attorney or financial advisor .
Good luck. - /s/ Steve
Do check with the resourses offered to you so far and do get an attorney.
There are different schools of thought when it comes to a DIL of Foreclosure - does it affect your credit, does it not. You can scour the web for info and you may never find the same answer.
If you have an FHA loan, I would recommend that you contact the Department of Housing and Urban Development (HUD), National Servicing Center. Their Loss Mitigation group may be able to help you avoid foreclosure. Click here: http://www.hud.gov/offices/hsg/sfh/nsc/nschome.cfm
If you have a VA loan, I would recommend that you visit a VA Regional Loan Center and speak with someone about avoiding foreclosure. Click here: http://www.homeloans.va.gov/paytrbl.htm
If you have a conventional loan, I would recommend the assistance of an attorney skilled in personal finance and real estate issues as Charles did, to advise you on your next steps.
You will need to talk with an attorney and CPA, but the reality is that it will be treated like a foreclosure. It is has the same appearance as someone just not making the payments and walking away from a property. Mortgage company's do not want properties, they want the interest from the payments. Have you thought about attempting to doing a short sale, why not try that before handing the keys to your home over to the mortgage company?
I wish you the best and I could certainly refer you to an agent in the area that could discuss with you your real options at this time.