Changed system to use orientationchange event, when possible.