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=320,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){}}();