I'm not sure how long it has been since your foreclosure but the mortgage guy I work with will consider you after 2 years. He also has a credit repair program that can increase your score by 20 points a month. If you are interested I can get you in contact with him!
I am sorry but you are going to have to wait at least 3 years before being considered for a loan again. In the mean time try to rebuild your credit with on time payments for your credit cards, utility bills and other payments. If you would like more detailed information, I work with a great mortgage guy. Message me or email me and I will get his number to you.