
document.domain="qq.com";function ptlogin2_onResize(width,height){
if(login_wnd){
var isIE=navigator.userAgent.indexOf("MSIE")!=-1;if(!isIE){
width=373;height=310;}
login_wnd.style.width=width+"px";login_wnd.style.height=height+"px";document.getElementById("_login_frame_quick_").style.height=height+"px";show_at_center(width,height);}}
function ptlogin2_onClose(){
login_wnd=$O_1("_login_div_quick_");login_wnd.style.display="none";var temp=$O_1("_login_div_mask_quick_");if(temp){
temp.style.display="none";}}
function return_substr_ex(s){
if(window.location.href.indexOf(s)>-1)return true;return false;}
function openLogin(type,jump_url,mask,x,y){
login_wnd=$O_1("_login_div_quick_");if(!jump_url)jump_url='';__j_url=jump_url;if(!$O_1("_login_div_quick_")){
var newDiv=document.createElement("div");newDiv.id="_login_div_quick_";newDiv.style.position="absolute";newDiv.style.zIndex="1000";newDiv.style.width="380px";newDiv.style.height="310px";newDiv.style.top="220px";newDiv.style.left="50%"
newDiv.innerHTML='<iframe name="_login_frame_quick_" id="_login_frame_quick_" frameborder="no" scrolling="no" width="100%" height="100%" src="about:blank"></iframe>';document.body.insertBefore(newDiv,document.body.firstChild);login_wnd=newDiv;}
login_wnd.style.display="block";var jump_name='';var appid='';if(return_substr_ex('act.vip.qq.com')){
jump_name='vipact';appid='8000205';}
else if(return_substr_ex('my.qq.com')){
jump_name='vipmyqq';appid='8000203';}
else if(return_substr_ex('fanli.qq.com')||return_substr_ex('go.qq.com')){
jump_name='vipcomm';appid='8000207';}
else{
jump_name='vipcomm';appid='8000201';}
switch(type){
case 2:{
url="http://ui.ptlogin2.qq.com/cgi-bin/login?link_target=blank&target=self&appid="+appid+"&qlogin_jumpname="+jump_name+"&f_url=loginerroralert&qlogin_auto_login=0"
url+="&s_url="+escape("http://imgcache.qq.com/club/portal_new/redirect.html?jump_url="+escape(jump_url||location.href));url+="&qlogin_param="+escape("jump_url="+escape(jump_url||location.href));}
break;case 3:{
url="http://ui.ptlogin2.qq.com/cgi-bin/login?link_target=blank&target=self&appid="+appid+"&qlogin_jumpname="+jump_name+"&f_url=loginerroralert&qlogin_auto_login=1"
url+="&s_url="+escape("http://imgcache.qq.com/club/portal_new/redirect.html?jump_url="+escape(jump_url||location.href));url+="&qlogin_param="+escape("jump_url="+escape(jump_url||location.href));}
break;default:{
url="http://ui.ptlogin2.qq.com/cgi-bin/login?link_target=blank&target=self&appid="+appid+"&f_url=loginerroralert&s_url=";url+=escape("http://imgcache.qq.com/club/portal_new/redirect.html?jump_url="+escape(jump_url));}
break;}
$O_1("_login_frame_quick_").src=url;if(!!mask){_quick_login_mask_div=true;}else{_quick_login_mask_div=false;}
if(!!x){__x_=_quick_login_form_x=x;}else{__x_=_quick_login_form_x=false};if(!!y){__y_=_quick_login_form_y=y;}else{__y_=_quick_login_form_y=false};}
function __rdt__(){
if(!!__j_url)
while(__j_url.indexOf('%')!=-1&&__j_url.indexOf('?')==-1){
__j_url=unescape(__j_url);}
else{
window.location.reload();}
window.location.href=__j_url;}
function login_success(){window.location.reload();}
function s_c(div_width,div_height){
if(!div_width){div_width=__div_width};if(!div_height){div_height=__div_height};try{
if(!__y_)login_wnd.style.top=(window.innerHeight / 2+pageYOffset)-div_height/2+"px";if(!__x_)login_wnd.style.left=(window.innerWidth  / 2+pageXOffset)-div_width/2+"px";}
catch(e){
if(!document.body.scrollTop){
if(!__y_)login_wnd.style.top=(document.documentElement.offsetHeight / 2+document.documentElement.scrollTop)-div_height/2+"px";if(!__x_)login_wnd.style.left=(document.documentElement.offsetWidth  /2+document.documentElement.scrollLeft)-div_width/2+"px";}
else{
if(!__y_)login_wnd.style.top=(document.documentElement.offsetHeight / 2+document.body.scrollTop)-div_height/2+"px";if(!__x_)login_wnd.style.left=(document.documentElement.offsetWidth  /2+document.body.scrollLeft)-div_width/2+"px";}}}
function show_at_center(div_width,div_height){
__div_width=div_width;__div_height=div_height;s_c(div_width,div_height);if(_quick_login_mask_div){
var temp=$O_1("_login_div_mask_quick_");if(!temp){
var newDiv=document.createElement("div");newDiv.id="_login_div_mask_quick_";newDiv.style.position="absolute";newDiv.style.background="#333333";newDiv.style.opacity="0.3";newDiv.style.filter="alpha(opacity=30)";newDiv.style.zIndex="999";newDiv.style.width=document.body.scrollWidth+"px";newDiv.style.height=document.body.scrollHeight+"px";newDiv.style.top="0px";newDiv.style.left="0px";document.getElementsByTagName("body")[0].appendChild(newDiv);}
else{
temp.style.display="block";}
_quick_login_mask_div=false;}
if(!!_quick_login_form_x){login_wnd.style.left=_quick_login_form_x+'px';_quick_login_form_x=false;};if(!!_quick_login_form_y){login_wnd.style.top=_quick_login_form_y+'px';_quick_login_form_y=false;}
setInterval("alw_center()",500);}
function alw_center(){
s_c();if(!!__x_){login_wnd.style.left=__x_+'px';};if(!!__y_){login_wnd.style.top=__y_+'px';}}
function ptui_canSupportQlogin(){if(ptui_getActivXVer()<3.9)return false;try{
var obj=new ActiveXObject("TimwpDll.TimwpCheck");var ver=obj.GetHummerQQVersion();return false;}
catch(e){}
return true;}
function ptui_getActivXVer(){
try{
var obj=new ActiveXObject("TimwpDll.TimwpCheck");var ver=obj.GetVersion();return ver;}
catch(e){
return 0;}}
function ptui_checkQQRunning(){
try{
var obj=new ActiveXObject("TimwpDll.TimwpCheck");return obj.CheckQQRunning();}
catch(e){
return false;}}
function __check_qq_login__(){
if(ptui_canSupportQlogin()&&ptui_checkQQRunning())return true;return false;}
function $O_1(i){try{return document.getElementById(i);}catch(e){}}

/*  |xGv00|e25d6a172fd53ce41b324c82a7ec9c96 */