(function(){if(navigator.platform.toLowerCase().indexOf("win")==-1)return;(function(e,t,n){"use strict";typeof module!="undefined"&&module.exports?module.exports=n(t,e):typeof define=="function"&&define.amd?define(function(){return n(t,e)}):e[t]=n(t,e)})(window,"DetectZoom",function(){var e=function(){return window.outerWidth<200?1:0},t=function(){return window.devicePixelRatio||1},n=function(){var e="position:absolute;left:-2000px;height:1px;",t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),i,s,o;return t.style.cssText="width:16px;"+e,document.body.appendChild(t),n.style.fontSize="medium",r.style.cssText="width:1em;"+e,n.appendChild(r),document.body.appendChild(n),i=t.offsetWidth,s=r.offsetWidth,o=s/i,document.body.removeChild(t),document.body.removeChild(n),o},r=function(){return{zoom:1,devicePxPerCssPx:1}},i=function(){var e=Math.round(screen.deviceXDPI/screen.logicalXDPI*100)/100;return{zoom:e,devicePxPerCssPx:e*t()}},s=function(){var e=document.body.getBoundingClientRect(),n=(e.right-e.left)/document.body.offsetWidth;return n=Math.round(n*100)/100,{zoom:n,devicePxPerCssPx:n*t()}},o=function(){var e=Math.abs(window.orientation)===90?screen.height:screen.width,n=e/window.innerWidth;return{zoom:n,devicePxPerCssPx:n*t()}},u=function(){var n=window.outerWidth/window.innerWidth;return n=Math.round(n*100)/100,e()&&(n=1),{zoom:n,devicePxPerCssPx:n*t()}},a=function(){var e=c("min--moz-device-pixel-ratio","",0,10,20,1e-4);return e=Math.round(e*100)/100,{zoom:e,devicePxPerCssPx:e}},f=function(){return{zoom:a().zoom,devicePxPerCssPx:t()}},l=function(){var e=window.outerWidth/window.innerWidth;return e=Math.round(e*100)/100,{zoom:e,devicePxPerCssPx:e*t()}},c=function(e,t,n,r,i,s){function c(n,r,i){var u=(n+r)/2;if(i<=0||r-n<s)return u;var a="("+e+":"+u+t+")";return o(a).matches?c(u,r,i-1):c(n,u,i-1)}var o,u,a,f;window.matchMedia?o=window.matchMedia:(u=document.getElementsByTagName("head")[0],a=document.createElement("style"),u.appendChild(a),f=document.createElement("div"),f.className="mediaQueryBinarySearch",f.style.display="none",document.body.appendChild(f),o=function(e){a.sheet.insertRule("@media "+e+"{.mediaQueryBinarySearch "+"{text-decoration: underline} }",0);var t=getComputedStyle(f,null).textDecoration=="underline";return a.sheet.deleteRule(0),{matches:t}});var l=c(n,r,i);return f&&(u.removeChild(a),document.body.removeChild(f)),l},h=function(){var e=r,t=navigator.userAgent.toLowerCase();return!isNaN(screen.deviceXDPI)&&!isNaN(screen.logicalXDPI)?e=i:-1!==t.indexOf("msie 7.")?e=s:"ontouchstart"in window&&typeof document.body.style.webkitTextSizeAdjust=="string"?e=o:-1!==t.indexOf("webkit")?e=u:-1!==t.indexOf("opera")?e=l:-1!==t.indexOf("firefox")&&window.devicePixelRatio?e=f:a().zoom>.001&&(e=a),e}();return{zoom:function(){return h().zoom},device:function(){return h().devicePxPerCssPx},zoomText:function(){return n()}}}),DetectZoom.isZoom=function(){return DetectZoom.zoom()>=.95&&DetectZoom.zoom()<=1.05?0:1};var e=DetectZoom.isZoom(),t=DetectZoom.zoom(),n=!!qboot.cookie.get("zoomTipsHide"),r=.25,i=.9,s=2,o=5,u;if(e&&!n&&(t<=o&&t>=s||t<=i&&t>=r)){var a=W('<div id="zoom-tips"></div>');qboot.load.css("#zoom-tips{border-bottom:.1em solid #cdcdcd;height:2.3em;padding-left:2em;background-color:#fff4d8;position:relative;}.zoom-tips-text{font-size:1em;text-align:center;color:#666;line-height:2.3em}.zoom-tips-text img{width:1.4em;padding-right:.5em;vertical-align:middle}.close-zoom-tips{display:block;position:absolute;top:.4em;right:1em;width:1.4em;height:1.4em;color:#a87138;text-align:center;line-height:1.4em;border-radius:.1em;background:transparent;border:.1em solid #fff4d8}.close-zoom-tips:hover{background:#ede0be;border-color:#e1d2ac;text-decoration:none;}"),a.html('<p class="zoom-tips-text"><img src="http://p1.qhimg.com/t0154637416b268e46c.png" />\u60a8\u7684\u6d4f\u89c8\u5668\u76ee\u524d\u5904\u4e8e\u7f29\u653e\u72b6\u6001\uff0c\u4f1a\u5bfc\u81f4\u7f51\u9875\u6d4f\u89c8\u4e0d\u6b63\u5e38\uff0c\u8bf7\u6309\u201c<strong><key>Ctrl</key>+\u6570\u5b57<key>0</key></strong>\u201d\u7ec4\u5408\u952e\u6216<a style="text-decoration:underline;font-weight:bold;" href="http://hao.360.cn/fqa_zoomtip.html">\u67e5\u770b\u5e2e\u52a9</a>\u6765\u6062\u590d\u6b63\u5e38\u3002<a id="zoom-not-showtips" title="\u4e0d\u518d\u63d0\u793a\u8be5\u6d88\u606f">\u4e0d\u518d\u63d0\u793a</a></p><a class="close-zoom-tips" href="" onclick="return false;" title="\u4e0d\u518d\u63d0\u793a">X</a>'),W("body").prepend(a),a.css("font-size",Math.ceil(12/t)+"px"),LogHub.behavior("zoomTips","show"),W(".close-zoom-tips,#zoom-not-showtips").click(function(e){a.hide(),qboot.cookie.set("zoomTipsHide",1,{expires:1296e6}),LogHub.behavior("zoomTips","close")}),u=setInterval(function(){var e=DetectZoom.isZoom(),n=DetectZoom.zoom();e&&(t<=o&&t>=s||t<=i&&t>=r)?a.css("font-size",Math.ceil(12/n)+"px"):(a.removeNode(),clearInterval(u),LogHub.behavior("zoomTips","adjust"))},500)}})();