if(typeof(sogou_ad_date)=='undefined'){var sogou_ad_date=new Date();var sogou_ad_time=sogou_ad_date.getTime();if(window.parent.location==window.parent.parent.location){if(typeof(sogou_ad_limit)=='undefined')sogou_ad_limit="10";
var sogou_ad_query=false;if(typeof(parent.PushValue00)=='undefined'){if(window.self.location!=window.parent.location){o=parent.document.createElement("script");o.text="var PushValue00=true;";parent.document.documentElement.childNodes[0].appendChild(o);
o.text="var PushValue01='';";parent.document.documentElement.childNodes[0].appendChild(o);o.text="var PushValue02=false;";parent.document.documentElement.childNodes[0].appendChild(o);}
var sogou_ad_htb=false;var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,timecounter=0;var bLoaded=false;var bLocked=false;var sTarget;function PushFunc00(){if(!bLoaded && !bLocked)window.setTimeout("PushFunc09()",1000);}
function PushFunc02(){try{divTop=parseInt(document.getElementById("SogouTSepop").style.top,10);divLeft=parseInt(document.getElementById("SogouTSepop").style.left, 10);divHeight=parseInt(document.getElementById("SogouTSepop").offsetHeight,10);
divWidth=parseInt(document.getElementById("SogouTSepop").offsetWidth,10);docWidth = document.body.clientWidth;docHeight=document.body.clientHeight;document.getElementById("SogouTSepop").style.top=parseInt(document.body.scrollTop,10)+docHeight+10;
document.getElementById("SogouTSepop").style.left=parseInt(document.body.scrollLeft,10)+docWidth-divWidth;document.getElementById("SogouTSepop").style.visibility = "visible";objTimer=window.setInterval("PushFunc05('self')",1);}catch(e){}}
function PushFunc01(){try{divTop=parseInt(parent.document.getElementById("SogouTSepop").style.top,10);divLeft=parseInt(parent.document.getElementById("SogouTSepop").style.left,10);
divHeight=parseInt(parent.document.getElementById("SogouTSepop").offsetHeight,10);divWidth=parseInt(parent.document.getElementById("SogouTSepop").offsetWidth,10);docWidth=parent.document.body.clientWidth;docHeight=parent.document.body.clientHeight;
parent.document.getElementById("SogouTSepop").style.top=parseInt(parent.document.body.scrollTop,10)+docHeight+10;parent.document.getElementById("SogouTSepop").style.left=parseInt(parent.document.body.scrollLeft,10)+docWidth-divWidth;
parent.document.getElementById("SogouTSepop").style.visibility="visible";objTimer=window.setInterval("PushFunc05('parent')",1);}catch(e){}}function PushFunc04(){try{divHeight=parseInt(document.getElementById("SogouTSepop").offsetHeight,10);
divWidth=parseInt(document.getElementById("SogouTSepop").offsetWidth,10);docWidth=document.body.clientWidth;docHeight=document.body.clientHeight;document.getElementById("SogouTSepop").style.top=docHeight-divHeight+parseInt(document.body.scrollTop,10);
document.getElementById("SogouTSepop").style.left=docWidth-divWidth+parseInt(document.body.scrollLeft,10);}catch(e){}}function PushFunc03(){try{divHeight=parseInt(parent.document.getElementById("SogouTSepop").offsetHeight,10);
divWidth=parseInt(parent.document.getElementById("SogouTSepop").offsetWidth,10);docWidth=parent.document.body.clientWidth;docHeight=parent.document.body.clientHeight;
parent.document.getElementById("SogouTSepop").style.top=docHeight-divHeight+parseInt(parent.document.body.scrollTop,10);parent.document.getElementById("SogouTSepop").style.left=docWidth-divWidth+parseInt(parent.document.body.scrollLeft,10);}catch(e){}}
function PushFunc05(str){try{if(str=="self"){if(parseInt(document.getElementById("SogouTSepop").style.top,10)<=(docHeight-divHeight+parseInt(document.body.scrollTop,10))){if(objTimer)window.clearInterval(objTimer);objTimer=window.setInterval("PushFunc04()",3);
}divTop=parseInt(document.getElementById("SogouTSepop").style.top,10);document.getElementById("SogouTSepop").style.top=divTop-10;}else{if(parseInt(parent.document.getElementById("SogouTSepop").style.top,10)<=(docHeight-divHeight+parseInt(parent.document.body.scrollTop,10))){
if(objTimer)window.clearInterval(objTimer);objTimer=window.setInterval("PushFunc03()",3);}divTop=parseInt(parent.document.getElementById("SogouTSepop").style.top,10);parent.document.getElementById("SogouTSepop").style.top=divTop-10;}}catch(e){}}
function PushFunc06(){document.getElementById("SogouTSepop").style.visibility="hidden";if(objTimer)window.clearInterval(objTimer);}function PushFunc07(str){return (str!=null)?'"'+str+'"':'""';}try{var objAd=new ActiveXObject("NewAdPopup.ToolbarDetector");
if (objAd){sogou_ad_htb=true;}}catch(e){sogou_ad_htb=false;}function Cookie(document,name,hours,domain,path,secure){this.$document=document;this.$name=name;if(hours)this.$expiration=new Date((new Date()).getTime()+hours*3600000);
else this.$expiration=null;if(path)this.$path=path;else this.$path=null;if(domain)this.$domain=domain;else this.$domain=null;if(secure)this.$secure=true;else this.$secure=false;}Cookie.prototype.store=function(){var cookieval="";
for(var prop in this){if((prop.charAt(0)=='$')||((typeof this[prop])=='function'))continue;if(cookieval!="")cookieval+='&';cookieval+=prop+':'+escape(this[prop]);}var cookie=this.$name+'='+cookieval;
if(this.$expiration)cookie+='; expires='+this.$expiration.toGMTString();if (this.$path) cookie += '; path=' + this.$path;if (this.$domain) cookie += '; domain=' + this.$domain;if (this.$secure) cookie += '; secure';this.$document.cookie=cookie;}
Cookie.prototype.load=function(){var allcookies=this.$document.cookie;if(allcookies=="")return false;var start=allcookies.indexOf(this.$name+'=');if(start==-1)return false;start+=this.$name.length+1;var end=allcookies.indexOf(';',start);
if(end==-1)end=allcookies.length;var cookieval=allcookies.substring(start,end);var a=cookieval.split('&');for(var i=0;i<a.length;i++) a[i]=a[i].split(':');for(var i=0;i<a.length;i++){this[a[i][0]]=unescape(a[i][1]);}return true;}
var sogou_ad_ce=(navigator.cookieEnabled)?true:false;if(typeof navigator.cookieEnabled=="undefined"&&!sogou_ad_ce){sogou_ad_ce=true;}sogou_ad_url="http://proxy.cpushpop.com/js.html?sogou_tsad_pid="+sogou_ad_pid+"&current_time="+sogou_ad_time;
sogou_ad_query=false;if(sogou_ad_ce){var visitordata=new Cookie(document,"sogou_ts_ads0",24,"","/");visitordata.load();if((visitordata.vt==null)||(visitordata.popdate!=sogou_ad_date.getYear()+"年"+eval(sogou_ad_date.getMonth()+1)+"月"+sogou_ad_date.getDate()+"日")){
visitordata.popdate=sogou_ad_date.getYear()+"年"+eval(sogou_ad_date.getMonth()+1)+"月"+sogou_ad_date.getDate()+"日";visitordata.vt=0;visitordata.ht="";visitordata.qt=0;visitordata.jd="";visitordata.store();}
if((sogou_ad_time-visitordata.qt<300000)||visitordata.vt>=parseInt(sogou_ad_limit)||visitordata.vt>=10||sogou_ad_htb||window.self.location.host!=window.parent.location.host){}else{sogou_ad_query=true;visitordata.qt=sogou_ad_time;
sogou_ad_url=sogou_ad_url+"&sogou_ad_jd="+visitordata.jd+"&jspoped="+visitordata.ht;}}var agent=window.navigator.userAgent;if(agent.indexOf("Firefox")>=0)sogou_ad_query=false;if(sogou_ad_query){var sogou_ad_bf=true;if(agent.indexOf("MSIE 5.5")<0){sogou_ad_bf=false;}else{var hasFlash=false;try{
var objFlash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(objFlash){hasFlash=true;}}catch(e){}if(!hasFlash){sogou_ad_bf=false;}}if(sogou_ad_bf){sogou_ad_url=sogou_ad_url+"&sogou_ad_bf=4";}else{sogou_ad_url=sogou_ad_url+"&sogou_ad_bf=0";}
sogou_ad_url=sogou_ad_url+"&sohuurl="+window.top.location;document.write('<scr'+'ipt language="JavaScript1.1"'+' src='+PushFunc07(sogou_ad_url)+' delay=true></scr'+'ipt>');}}else{document.write(parent.PushValue00);if(parent.PushValue02){
eval(parent.Parent_Pop_Cmd);popup=parent.document.getElementById("SogouTSepop");popup.innerHTML=parent.PushValue01;window.onload=PushFunc01;window.onresize=PushFunc03;}}}}
