Rule number one is if you're applying online, just tailor the resume to the job offer. Use all the keywords and buzzwords they use to describe the position in your previous experiences, that way they'll think you're perfect for the job. Tailoring the resume to the job also means that you have to think what to keep and what to leave, that way all your experience will seem relevant.
As someone else already said, make up jobs or even say you worked as a freelancer, and have someone who's willing to pose as your previous boss/client.
What have you been doing during the two years you were unemployed, if you don't mind saying? You'll have to come up with a way to justify it, so maybe education or self employment could be an easy excuse.