(function(){var e="whoarewe",t="75team",n={COOKIE:"cookie",LOCALSTORAGE:"localstorage",FLASH:"flash"},r="BSAbility1",i={};i[n.COOKIE]=0,i[n.LOCALSTORAGE]=0,i[n.FLASH]=0;var s={"360se":"360se","360ee":"360ee",TT:"tencenttraveler",Maxthon:"maxthon",GreenBrowser:"greenbrowser",Sogou:"se 1.x / se 2.x",TheWorld:"theworld"},o=function(){var e=navigator.userAgent.toLowerCase();if(window.hao360&&hao360.is360se){if(hao360.is360se())return"360se";if(hao360.is360se6())return"360se6";if(hao360.is360ee())return"360ee"}for(var t in s)if(e.indexOf(s[t])>-1)return t;var n=e.match(/(msie|chrome|safari|firefox|opera)/)[0];return n=="msie"&&(n=e.match(/msie[^;]+/)),n}(),u=function(e){if(!u[e]||typeof i[e]=="undefined")return;u[e]()};u[n.COOKIE]=function(){var r=qboot.cookie.get(e);r?i[n.COOKIE]=1:(qboot.cookie.set(e,t,{expires:2592e6}),i[n.COOKIE]=0)},u[n.LOCALSTORAGE]=function(){var r=(new AppData("api.hao.360.cn")).get(e);r?i[n.LOCALSTORAGE]=1:((new AppData("api.hao.360.cn")).set(e,t),i[n.LOCALSTORAGE]=0)},u[n.FLASH]=function(r){var s="";FlashStorage.get(e,function(r){r?i[n.FLASH]=1:(i[n.FLASH]=0,FlashStorage.set(e,t))})};var a=function(){if(!qboot.cookie.get(r+"_done")){var e=[];e.push(n.COOKIE+i[n.COOKIE]),e.push(n.LOCALSTORAGE+i[n.LOCALSTORAGE]),e.push(n.FLASH+i[n.FLASH]),LogHub.behavior(r,e.join("+"));if(hao360.mid){var t=[];t.push("c="+i[n.COOKIE]),t.push("ls="+i[n.LOCALSTORAGE]),t.push("fc="+i[n.FLASH]),logSender("http://s.360.cn/wzdh/store.gif?dhid="+hao360.mid+"&b="+o+"&"+t.join("&"))}qboot.cookie.set(r+"_done",1)}};u(n.COOKIE),u(n.LOCALSTORAGE),u(n.FLASH),setTimeout(function(){a()},5e3)})();