The wai is the Thai greeting and show of respect, indicated by pressing your palms together near your chest and bowing. Why wai? As a foreigner, you will show and receive respect by following this customary greeting, although many Thais will also (somewhat reluctantly) accept a handshake from you.
More info