(function(){var e=qboot.cookie.get("guid")||qboot.cookie.get("__guid")||"",t={},n=function(e,t){setTimeout(function(){var t=+(new Date)+Math.random(),n="slog"+t,r=window[n]=new Image;r.src=e+"&refer=tiyan&_t="+t,r.onload=r.onerror=function(){window[n]=null}},t||0)};t.suggest=function(t,r){r=r||{};if(!r.inputKw)return!1;var i="";switch(t){case"directShow":i="show";break;case"directClk":i="directclk";break;case"commonClk":i="sugclk";break;case"nosuggestClk":i="noclk"}var s=["http://s.360.cn/wzdh/search_direct.html?type="+i+"&inputkw="+encodeURIComponent(r.inputKw)];r.subApp&&s.push("class="+r.subApp),r.directKw&&s.push("directkw="+encodeURIComponent(r.directKw)),r.suggestKw&&s.push("sugkw="+encodeURIComponent(r.suggestKw)),s.push("guid="+e),n(s.join("&"))},t.search=function(e,t){t=t||{};if(e=="query"){var r=search.get()||[],i=r[0],s=r[1];n("http://s.360.cn/wzdh/searcheng.html?eng="+s+"&type=query&guid="+qboot.cookie.get("sessionID")),n("http://haostat.qihoo.com/haokw.gif?tab="+i+"&radio="+s+"&content="+encodeURIComponent(t.query||""))}e=="toggle"&&n("http://s.360.cn/wzdh/searcheng.html?eng="+t.eng+"&type=toggle&guid="+qboot.cookie.get("sessionID")),e=="custom"&&n("http://s.360.cn/wzdh/searcheng.html?eng="+t.eng+"&type=custom&guid="+qboot.cookie.get("sessionID"))},t.iguess=function(t,r){r=r||{},t=="click"&&(n("http://tf.360.cn/guess/clk.js?asin="+(r.asin||"")+"&mid="+e+"&sumid="+(hao360.mid||"")+"&channel="+(r.channel||"")+"&tagid="+(r.tagid||"")+"&source=favor"),n("http://s.360.cn/wzdh/guess_visit.html?type=iguessclk&version=v7&mid="+(hao360.mid||"")+"&guid="+e+"&text="+encodeURIComponent(r.text||"")+"&mtype="+(r.res||"")+"&siteid="+(r.siteid||0)+"&link="+encodeURIComponent(r.link||""),400)),(t=="refresh"||t=="tap")&&n("http://s.360.cn/wzdh/guess_visit.html?type=iguess"+t+"&version=v7&guid="+e)},t.channeldata=function(t,r){r=r||{},t=="click"&&n("http://s.360.cn/wzdh/stat.html?p=channeldata&action=click&cate="+(r.cate||"")+"&pm="+(r.p||"")+"&text="+encodeURIComponent(r.text||"")+"&link="+encodeURIComponent(r.link||"")+"&guid="+e),t=="pv"&&n("http://s.360.cn/wzdh/stat.html?p=channeldata&action=pv&pm="+(r.pm||"")+"&guid="+e)},t.theme=function(t,r){r=r||{},t=="used"&&n("http://s.360.cn/wzdh/skin.html?skin="+(r.theme||"unknown")+"&guid="+e);var i=r.theme?"tiyan_theme_"+t+"_"+r.theme:"tiyan_theme_"+t;n("http://s.360.cn/wzdh/diy.html?act="+i+"&guid="+e)},t.reci=function(t,r){r=r||{},t=="show"&&n("http://s.360.cn/wzdh/stat.html?p=hotword&action=show&cate="+(r.cate||"")+"&guid="+e),t=="click"&&n("http://s.360.cn/wzdh/stat.html?p=hotword&action=click&cate="+(r.cate||"")+"&text="+encodeURIComponent(r.text||"")+"&link="+encodeURIComponent(r.link||"")+"&guid="+e)},t.diy=function(t){n("http://s.360.cn/wzdh/diy.html?act="+t+"&guid="+e)},window.LogHub=t,window.logSender=n})();