var pt={};pt.preload={ptui_notifySize:function(){}};pt.ptui={};var sys={$:function(a){return document.getElementById(a)},onload:function(b){var a=window.onload;window.onload=function(){if(typeof(a)=="function"){a()}if(typeof(b)=="function"){b()}}},getQueryValue:function(c,b){var a="";if(b){a="&"+b}else{a=window.location.search.replace(/(^\?+)|(#\S*$)/g,"")}a=a.match(new RegExp("(^|&)"+c+"=([^&]*)(&|$)"));return !a?"":decodeURIComponent(a[2])}};function antiProcess(){document.body.innerHTML="";var g=document.createElement("div");g.setAttribute("id","login");g.style.cssText="margin: 0 auto;padding: 0 0 5px; width: 370px;background:#fff";var f=document.createElement("div");f.innerHTML='用户登录';var k=sys.getQueryValue("hide_title_bar")==1;if(k){g.style.border="0px"}else{g.appendChild(f);f.style.cssText="background:url(http://imgcache.qq.com/ptlogin/v4/style/0/images/icons.gif) no-repeat 0 0;height:21px;font-weight:bold;font-size:12px;padding:7px 0 0 30px;border-bottom:1px solid #438ece;";g.style.border="1px solid #99c2ee"}var m=document.createElement("div");m.style.textAlign="center";m.innerHTML='
您当前的网络存在链路层劫持,为了确保您的帐号安全,请使用安全登录。
';g.appendChild(m);document.body.appendChild(g);ptui_notifySize("login");var d=sys.getQueryValue("s_url");var a=sys.getQueryValue("appid");var l=sys.getQueryValue("regmaster");var c=sys.getQueryValue("enable_qlogin");var h=sys.getQueryValue("jumpname");var i=sys.getQueryValue("target");var b=sys.getQueryValue("qtarget");var e=sys.getQueryValue("daid");switch(b){case"self":b=0;break;case"top":b=1;break;case"parent":b=2;break;default:b=1}var j=1;if(h!=""){if(b!=-1){j=b}}else{switch(i){case"self":j=0;break;case"top":j=1;break;case"parent":j=2;break;default:j=1}}sys.$("safe_login").onclick=function(){nlog("jiechi button click",247563);if(j!=1){try{d=top.location.href}catch(o){}}d=encodeURIComponent(d);var n="https://ui.ptlogin2.qq.com/cgi-bin/login";window.open(n+"?style=14&pt_safe=1&appid="+a+"&s_url="+d+"®master="+l+"&enable_qlogin="+c+"&daid="+e+"&jiechi_version=10001","_top")};nlog("jiechi pv",245663)}function ptui_reportAttr2(b,a){if(Math.random()>(a||1)){return}url="https://ui.ptlogin2.qq.com/cgi-bin/report?id="+b+"&t="+Math.random();imgAttr=new Image();imgAttr.src=url}function nlog(e,b){var d="https://ssl.qq.com/ptlogin/cgi-bin/ptlogin_report?";var c=encodeURIComponent(e+"|_|"+location.href+"|_|"+window.navigator.userAgent);b=b?b:0;d+=("id="+b+"&msg="+c+"&v="+Math.random());var a=new Image();a.src=d}function ptui_notifySize(d){try{obj=$(d);if(obj){width=1;height=1;if(obj.offsetWidth>0){width=obj.offsetWidth}if(obj.offsetHeight>0){height=obj.offsetHeight}var b=window.location.hostname.replace(/ui\.ptlogin2\./i,"");var a=new Date();a.setTime(a.getTime()+5*1000);if(preload.needSize){document.cookie="pt_size="+width+"-"+height+";domain="+b+";path=/;expires="+a.toGMTString()}try{if(typeof window.postMessage!="undefined"){window.parent.postMessage("pt_size="+width+"-"+height,"*")}}catch(c){}if(parent.ptlogin2_onResize){parent.ptlogin2_onResize(width,height);window.scroll(0,10)}else{frameElement.width=width;frameElement.style.width=width+"px";frameElement.height=height;frameElement.style.height=height+"px";frameElement.style.visibility="hidden";frameElement.style.visibility="visible"}}}catch(c){}}sys.onload(antiProcess);function loadxui(){}function ptui_setUinColor(){}function webLoginReport(){}function ptui_initFocus(){}function ptui_check_qlogin(){}function ptui_setDefUin(){}function onSelectLoad(){}function ptuiCB(){}function $(a){return document.getElementById(a)};