You poor thing! How distressing. Don't worry about being embarrassed - heaps of people go through similar things.
If you're really concerned, counsellors or psychologists have great success using cognitive behavioral therapy, where you learn to identify triggers for panic attacks and learn to control them.