http://www.jquery4u.com/ipad/capture-ipad-orientation-change/