var MobileUtils={getScreenWidth:function(){var a=Math.min(screen.width,screen.height);return this.isAndroidMobileDevice()&&!this.isNewChromeOnAndroid()&&(a/=window.devicePixelRatio),a},isAppleMobileDevice:function(){return/iphone|ipod|ipad|Macintosh/i.test(navigator.userAgent.toLowerCase())},isAndroidMobileDevice:function(){return/android/i.test(navigator.userAgent.toLowerCase())},isNewChromeOnAndroid:function(){var a,b,c,d,e;return this.isAndroidMobileDevice()&&(a=navigator.userAgent.toLowerCase(),/chrome/i.test(a)&&!/micromessenger/i.test(a)&&(b=a.split("chrome/"),c=b[1].split(" ")[0],d=c.split(".")[0],e=parseInt(d),e>=27))?!0:!1},isAndroidOldBrowser:function(){var a=/chrome/i.test(navigator.userAgent.toLowerCase());return this.isAndroidMobileDevice()&&!a?!0:!1},isSafariOnAndroid:function(){if(this.isAndroidMobileDevice()){var a=navigator.userAgent.toLowerCase(),b=/android\s*([\.0-9]+);?/i.exec(a);if(null==b||parseFloat((b||[0,0])[1])>=4)return!1;if(/micromessenger/i.test(a)||!/browser\b[\/\.\s\w]+safari/i.test(a))return!0}return!1}};!function(){MobileUtils.isMSMobileDevice=function(){return/iemobile/i.test(navigator.userAgent.toLowerCase())},MobileUtils._getDevicePixelRatio=function(){return this.isMSMobileDevice()?Math.round(window.screen.availWidth/document.documentElement.clientWidth):window.devicePixelRatio},MobileUtils._getDeviceParamsByUA=function(){var a,b,c,d;if(!navigator||!navigator.userAgent)return!1;switch(a=navigator.userAgent.toLowerCase(),b=this._paramsForSpecificAndroidDevices(a),c=Math.min(screen.width,screen.height),d=Math.max(screen.width,screen.height),b&&(c=b.width,d=b.height),!0){case/ip(hone|od|ad)/i.test(a):break;case/android/i.test(a):c/=this._getDevicePixelRatio(),d/=this._getDevicePixelRatio();break;case/iemobile/i.test(a):c=document.documentElement.clientWidth,d=document.documentElement.clientHeight}return{width:c,height:d}},MobileUtils.getScreenWidth=function(){var a=this._getDeviceParamsByUA();return a&&a.width?a.width:!1},MobileUtils.getScreenHeight=function(){var a=this._getDeviceParamsByUA();return a&&a.height?a.height:!1},MobileUtils._paramsForSpecificAndroidDevices=function(a){switch(!0){case/(GT-S5300B|GT-S5360|GT-S5367|GT-S5570I|GT-S6102B|LG-E400f|LG-E400g|LG-E405f|LG-L38C|LGL35G)/i.test(a):return{width:240,height:320};case/(Ls 670|GT-S5830|GT-S5839i|GT-S6500D|GT-S6802B|GT-S7500L|H866C|Huawei-U8665|LG-C800|LG-MS695|LG-VM696|LGL55C|M865|Prism|SCH-R720|SCH-R820|SCH-S720C|SPH-M820-BST|SPH-M930BST|U8667|X501_USA_Cricket|ZTE-Z990G)/i.test(a):return{width:320,height:480};case/(5860E|ADR6300|ADR6330VW|ADR8995|APA9292KT|C771|GT-I8160|GT-I9070|GT-I9100|HTC-A9192|myTouch4G|N860|PantechP9070|PC36100|pcdadr6350|SAMSUNG-SGH-I727|SAMSUNG-SGH-I777|SAMSUNG-SGH-I997|SC-03D|SCH-I405|SCH-I500|SCH-I510|SCH-R760|SGH-S959G|SGH-T679|SGH-T769|SGH-T959V|SGH-T989|SPH-D700)/i.test(a):return{width:480,height:800};case/(DROIDX|SonyEricssonSO-02C|SonyEricssonST25i)/i.test(a):return{width:480,height:854};case/(DROID3|MB855)/i.test(a):return{width:540,height:960};case/F-05D/i.test(a):return{width:720,height:1280};default:return!1}}}(),function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;if(/firefox/i.test(navigator.userAgent.toLowerCase()))return!1;a="orientation"in window&&"onorientationchange"in window?"orientationchange":"resize";try{c=document.getElementsByTagName("meta")||[];for(d in c)if(e=c[d]||{},f=e.name||"","viewport"==f.toLowerCase()){b=e;break}if(0==(b.content||"").length)return!1;g=MobileUtils.getScreenWidth(),h=MobileUtils.getScreenHeight(),i=321,j=b.content,k=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c},l=function(){var a=window.orientation||null;return a?90==a||-90==a?"landspcape":"portrait":g>h?"landspcape":"portrait"},k(window,a,function(){var f,k,m,n,o,p,q,c="",d=!1;MobileUtils.isAndroidMobileDevice()?(q=0,f="",k="medium-dpi",m=MobileUtils._getDevicePixelRatio(),1==m&&(m=2),m>1.5?(q="portrait"==l()?Math.min(g,h):Math.max(g,h),m=Math.min(2,m),n=Math.round(320*(i/(q*m))),k=Math.max(70,Math.min(400,n))):1==m&&(q=g,k=(4/3*q-i)/(q/120)),f=",target-densitydpi="+k,c=j+",width="+i+f):MobileUtils.isAppleMobileDevice()?c=j+",width="+i:(o=1,d=!0,p=MobileUtils.isAndroidOldBrowser(),q="portrait"==l()?Math.min(g,h):Math.max(g,h),o=q/i,c="width="+(i+(p?0:1))+",initial-scale="+o+",maximum-scale="+o),b.content=c,d&&window.WQuickActions&&window.WQuickActions.delayedFixZoom()},!1),window.dispatchEvent?(m=document.createEvent("Event"),m.initEvent(a,!0,!0),window.dispatchEvent(m)):window.fireEvent("on"+a),window.onload=function(){/mobi/i.test(navigator.userAgent)&&!location.hash&&setTimeout(function(){pageYOffset||window.scrollTo(0,1)},100)}}catch(m){}}();