Support the orientationchange event

Call the appropriate resizeNow() / resizenow() function when the device's orientation changes, just like when the window is resized.