function hengshuping(){if(window.orientation==180||window.orientation==0){location.reload()}if(window.orientation==90||window.orientation==-90){location.reload()}}window.addEventListener("onorientationchange" in window?"orientationchange":"resize",hengshuping,false);function orient(){if(window.orientation==90||window.orientation==-90){$("body").attr("class","landscape");orientation="landscape";return false}else{if(window.orientation==0||window.orientation==180){$("body").attr("class","portrait");orientation="portrait";return false}}}$(function(){orient()});$(window).bind("orientationchange",function(e){orient()});