Servo (PAN) and Parallax Ping)))

Code re-use is a wonderful thing:
http://arduino.cc/forum/index.php/topic,106043.0.html