This is copied and modified from http://www.html5rocks.com/en/tutorials/device/orientation/deviceorientationsample.html

Device Orientation

Event Supported
Tilt Left/Right [tiltLR]
Tilt Front/Back [tiltFB]
Direction [direction]
Motion Up/Down
compassneedscalibration
LLLLLL O O GG