What Does It Mean?

shanghai
--Listen to the pronunciation: WAV format or AU format
At an inn near the harbor, the first mate of a merchant ship and his cohorts spend a night filling up the tankards of the inn's guests with ale. Later, they shanghai some sailors. Where do the sailors find themselves in the morning?