
if(!window.kola)kola={};if(!kola.Cookie){kola.Cookie={get:function(name){var tmp,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)","gi");if(tmp=reg.exec(unescape(document.cookie)))
return(tmp[2]);return null;},set:function(name,value,expires,path,domain){var str=name+"="+escape(value);if(expires){if(expires=='never'){expires=100*365*24*60;}
var exp=new Date();exp.setTime(exp.getTime()+expires*60*1000);str+="; expires="+exp.toGMTString();}
if(path){str+="; path="+path;}
if(domain){str+="; domain="+domain;}
document.cookie=str;},remove:function(name,path,domain){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}};}
(function(){var me=(!window.sohu||!sohu.user||!sohu.user.id)?'':sohu.user.id;var other='';var dateNow=new Date();var suv=kola.Cookie.get('SUV');if(!suv){var year=dateNow.getFullYear(),month=dateNow.getMonth()+1,date=dateNow.getDate(),hour=dateNow.getHours(),minute=dateNow.getMinutes(),second=dateNow.getSeconds();var str=year.toString().substr(2)+
(month>=10?month:('0'+month))+
(date>=10?date:('0'+date))+
(hour>=10?hour:('0'+hour))+
(minute>=10?minute:('0'+minute))+
(second>=10?second:('0'+second))+
Math.floor((Math.random()*10000));kola.Cookie.set('SUV',str,'never','/','sohu.com');other+='&SUV='+str;}
if(!me){var arr=['b_pd','b_pr'];for(var i=0,il=arr.length;i<il;i++){it=arr[i];var v=kola.Cookie.get(it);if(typeof(v)!='string'||v.length==0){if(it=='b_pd'){var seas=location.search.substr(1).split('&');for(var j=0,jl=seas.length;j<jl;j++){var query=seas[j],str='pid=';if(query.toLowerCase().indexOf(str)==0&&query.length>str.length){kola.Cookie.set(it,query.substr(str.length),null,'/',document.domain);}}}else{if(document.referrer){var a=document.createElement('a');a.href=document.referrer;kola.Cookie.set(it,a.hostname,null,'/',document.domain);}}}}
if(window.apid){kola.Cookie.set('b_pa',window.apid,null,'/',document.domain);other+='&b_pa='+window.apid;}}
var params='me='+me+'&url='+encodeURIComponent(location.href)+'&referrer='+encodeURIComponent(document.referrer)+'&t='+dateNow.getTime()+
other;var img=document.createElement('img');img.src='http://sa.bai.sohu.com/pv.gif?'+params;})();