serial multiplexer

How do I tie in two different serial devices to this serial multiplexer? If I have two devices with vcc,gnd,rx,tx, where to they hook in? And then what goes to GPIO? and what is the truth table for selecting the device?

http://www.sparkfun.com/commerce/produc … ts_id=8970