Orientationchange.js is a project mainly written in ..., it's free.
Adds orientationchange support to browsers that don't have it.
orientationchange.js
invoke using the jquery bind method:
$(window).bind('orientationchange', someFunction)