in javascript

Code:
var iPhone = (window.orientation != undefined);
add in GXT