New tutorial - http://www.html5rocks.com/en/tutorials/device/orientation/