There's no way you can play this preflop. You are so behind against a preflop raiser and caller. There is a SHC, and you really should stick to it.
You get real lucky on the flop, top pair, and nut flush draw. Even then, you are still behind AK or AQ, and get real, real lucky with 2 pair on the turn. If you won this pot with this bad play, don't let it go to your head. Keep this up, and you will be broke before you know what has hit you.
EDIT: Again, accept my apologies, you are playing SH, and I just noticed. I don't know if what I said has any application under these circumstances.