(function(){function J(a){if(a.indexOf("http")!=0)return"";if(/javascript:/.test(a))return"";a=a.replace(".com//",".com/");a=a.replace(".com:80",".com");a=a.replace(".com:",".com");var b="http://"+document.location.host;if(a.indexOf("?")>0)a=a.substring(0,a.indexOf("?"));b=a.replace(b,"");if(/[<|>]/.test(b))return"";if(/^\/$/.test(b))return"/z/home.htm";if(!/^\/[z|t|m]\//.test(b))return"";if(/^\/z\/c\d+.htm/.test(b))return"/z/cxxx.htm";if(/^\/z\/q\d+.htm/.test(b)||/^\/z\/\d+.htm/.test(b)){if(sp_config.param&& sp_config.param!="")return"/z/qxxx-"+sp_config.param+".htm";return"/z/qxxx.htm"}if(/^\/t\/z\d+.htm/.test(b))return"/t/zxxx.htm";if(/^\/t\/t\d+.htm/.test(b))return"/t/txxx.htm";if(/^\/z\/s\d+.htm/.test(b))return"/z/sxxx.htm";var d=b.indexOf(",");if(d>0)b=b.substring(0,d)+".htm";a.replace("//","/");if(b.indexOf("wenwen.soso.com")>-1)return"";return b.toLowerCase()}function v(a){if(a.indexOf("http")!=0)return"";if(/javascript:/.test(a))return"";if(a.indexOf("?")>0)a=a.substring(0,a.indexOf("?"));var b= a.indexOf(",");if(b>0)a=a.substring(0,b)+".htm";return a.toLowerCase()}function w(a){if(a==null||a=="")return"";if(a.indexOf("http://")==0)a=a.replace("http://","");if(a.indexOf("https://")==0)a=a.replace("https://","");a=a.indexOf("/")>-1?a.substring(0,a.indexOf("/")):a;return a=a.indexOf(":")>-1?a.substring(0,a.indexOf(":")):a}function K(){var a=["Win 9x"," Windows 4.0"," Windows 98"," Windows NT 5.0"," Windows NT 5.1"," Windows NT 5.2"," Windows NT 6.0"," Windows NT 6.1"],b=navigator.userAgent.split(";"), d=navigator.platform;if(d=="Win32"||d=="Windows")for(d=0;d<a.length;d++){if(b[2]==a[d])return d}else if(d=="Mac68K"||d=="MacPPC"||d=="Macintosh")return 7;else if(d=="X11")return 8;else if(j("Linux",String(d)))return 9;return-1}function x(a){if(a.indexOf(".soso.com")>0||a.indexOf(".qq.com")>0)return true;return false}function L(){var a=y(z),b=y(A);if(b==null){l=M=true;c.p_cguid=B();C=c.p_cguid}if(a==null){r=true;c.s_eid=""}if(a&&a!=""){a=a.split(",");c.s_pageName=a[0];c.s_stayTime=a[1];c.s_mode=a[2]; c.s_eid=a[3]}if(b&&b!=""){a=b.split(",");c.p_cguid=a[0];C=c.p_cguid;c.p_deep=a[1];if((b=a[2])&&b.length>2)b=-1;c.p_ciReportDate=b;if(b!=""&&(new Date).getDate()!=b)l=true}}function D(a){c.s_mode=a;c.s_pageName=m;c.s_stayTime=(new Date).getTime()-sp_config.enterTime;E(z,[c.s_pageName,c.s_stayTime,c.s_mode,c.s_eid].join(","))}function N(){if(c.p_cguid==null)c.p_cguid=B();if(l)c.p_ciReportDate=(new Date).getDate();var a=parseInt(c.p_deep)||0;if(r)a=0;a++;E(A,[c.p_cguid,a,c.p_ciReportDate].join(","), 87600)}function F(a,b,d){var f="p="+m;if(a){f+="&v=2&cguid="+c.p_cguid;if(s)f+="&uid="+s;if(t)f+="&tid="+t;if(G){f+="&pfrom="+(k!=""?k:c.s_pageName)+"&st="+parseInt(c.s_stayTime)/1E3;parseInt(c.s_stayTime)}else f+="&pfrom="+n;if(c.s_eid&&c.s_eid!="")f+="&eid="+c.s_eid;if(r&&c.p_deep!="")f+="&deep="+c.p_deep;(new Image).src=H+"report.gif?"+f}else{a=false;f+="&v=6";if(sp_config.ser)f+="&serid="+sp_config.ser;if(l){a=[];var i="",h=navigator.userAgent,e=-1,g=/(?:MSIE.\d+\.\d+)|(?:Firefox.\d+\.\d+)|(?:Opera.\d+\.\d+)|(?:Chrome.\d+.\d+.\d+)|(?:Version.\d+.\d+.\d+ Safari.\d+.\d+.\d+)/, O=/(?: SE.\d+.)|(?:TencentTraveler.\d+.\d+)|(?:Maxthon.\d+.\d+)|(?:TheWorld.\d+.)|(?:360SE)/;if(/(?:Nokia.\d+)|(?:Opera Mini.\d+)|(?:Windows CE)|(?:UCWEB\d+)|(?:Android.\d+)|(?:BlackBerry.\d+)|(?:iPhone)|(?:Configuration.CLDC)/.exec(h)!=null)e=13;else if(O.exec(h)==null){h=g.exec(h);g=h[0];if(h!=null)if(j("Firefox",g))e=6;else if(j("Opera",g))e=8;else if(j("Chrome",g))e=7;else if(j("Safari",g))e=9;else if(j("MSIE 6",g)||j("MSIE 5",g))e=1;else if(j("MSIE 7",g))e=2;else if(j("MSIE 8",g))e=3;else if(j("MSIE 9", g))e=15}else if(/ SE/.test(h))e=12;else if(/Maxthon/.test(h))e=11;else if(/TheWorld/.test(h))e=10;else if(/360SE/.test(h))e=4;else if(/TencentTraveler.\d+.\d+/.test(h))e=5;a[0]=e;a[1]="1";e="-1";h=navigator;if(h.plugins&&h.plugins.length)for(g=0;g<h.plugins.length;g++){if(h.plugins[g].name.indexOf("Shockwave Flash")!=-1){e=h.plugins[g].description.split("Shockwave Flash ")[1];break}}else if(window.ActiveXObject)for(g=10;g>=2;g--)try{if(eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+g+"');")){e= g+".0";break}}catch(T){}if(e!="-1")e=e.substring(0,e.indexOf(".")+2);a[2]=e;a[3]=K();if(self.screen)i=screen.width+"x"+screen.height;else if(self.java){i=java.awt.Toolkit.getDefaultToolkit().getScreenSize();i=i.width+"x"+i.height}a[4]=i;i="-1";try{i=(new ActiveXObject("SosoBaike.ScreenCapture")).Version}catch(U){}a[5]=i;f+="&ci="+a.join(" ");a=true}if(P>=Math.random()&&d&&b){f+="&spi="+d+" "+b;f+="&spt=1 2";a=true}if(o!="")f+="&eurl="+o;if(p!="")f+="&furl="+p;if(a)(new Image).src=H+"report2.gif?"+ f}}function Q(){for(var a=document.getElementsByTagName("a"),b=0;b<a.length;b++)a[b].target&&a[b].target.toLowerCase()=="_blank"&&a[b]._sp_bind_click==null&&u(a[b],"click",function(){I=true;D("")})}function B(){return(new Date).getTime()+"-"+Math.round(Math.random()*2147483647)}function E(a,b,d){if(d){var f=new Date,i=new Date;i.setTime(f.getTime()+36E5*d)}document.cookie=a+"="+b+"; "+(d?"expires="+i.toGMTString()+"; ":"")+"path="+R+"; domain="+q+";";return true}function y(a){a=RegExp("(?:^|;+|\\s+)"+ a+"=([^;]*)");a=document.cookie.match(a);return!a?null:a[1]}function u(a,b,d){if(a.attachEvent)a.attachEvent("on"+b,d);else a.addEventListener&&a.addEventListener(b,d,false)}function j(a,b){return b&&a?b.indexOf(a)>-1?true:false:false}var z="ww_wa_session",A="ww_wa_data",R="/",H="http://wenwen.soso.com/",m="",S="",q="",k="",n="",C="",s="",t="",o="",p="",G=true,r=false,M=false,l=false,P=0.4,I=null,c={s_pageName:"",s_stayTime:-1,s_mode:"",s_eid:"",p_cguid:null,p_deep:"",p_ciReportDate:""};return{init:function(){var a= document.location.href;if(sp_config==null)sp_config={enterTime:0,readyTime:0};else{s=sp_config.uin;t=sp_config.tid}q=document.location.host;x(q)||(o=a);if(window.parent!=window){var b=document.referrer,d=w(b);x(d)||(p=b)}m=J(a);S=v(a);if(!(m==""&&o==""&&p=="")){k=v(document.referrer);n=w(k);L();if(k&&n!=q){G=false;c.s_eid=n}F(true);N();Q();u(window,"load",function(){var f=(new Date).getTime()-sp_config.enterTime,i=sp_config.readyTime-sp_config.enterTime;f&&f>0&&i&&i>0&&F(false,f,i)});u(window,"beforeunload", function(){I||D("")})}}}})().init();
