Complex sentence: In the United States, the main form of greeting is shaking hands, though when greeting friends it is not uncommon for them to hug.
Split into simpler sentences: In the United States, the main form of greeting is shaking hands. When greeting friends, however, it is not uncommon for them to hug.