
var mag_name=["第01期 清凉夏季","第02期 魔力黑白","第03期 逃出校园","第04期 我型我运动","第05期 辣妹打造计划","第06期 直击米兰秀场","第07期 学生装回归","第08期 80后约会装","第09期 国庆爱的惊喜","第10期 发现你的未知","第11期 魅力男发型","第12期 面试穿衣术","第13期 炫彩暖冬","第14期 黑衣女郎回归","第15期 暖冬围巾搭配","第16期 户外潮流热","第17期 气质系针织毛衣","第18期 圣诞嘉年华","第19期 拜金女新年换装计划","第20期 喜迎新年牛气冲天","第21期 美式风潮","第22期 新年扮靓就要你牛","第23期 归家－寻找那刻温暖","第24期 美丽变身大作战","第25期 浪漫情人节","第26期 巴黎男装流行发布","第27期 QQ秀校园服饰大PK","第28期 妇女节爱的惊喜","第29期 春的律动姿态",];mag_name=mag_name.reverse();function gotoLoginPage()
{var loginUrl="http://show.qq.com"+"/inc/login_box.html?url="+g_sUrl;ShowLogin(null,null,0,0,loginUrl);document.getElementById('ID_QQSHOW_FLOAT_WIN').className="fixed_module";document.getElementById('ID_QQSHOW_WAIT_BACKGND').className="fixed_module";};function CheckLogin()
{var iUin=GetUin();if(!ChkUin(iUin))
{if(confirm("您还没有登录，是否登录？"))
{gotoLoginPage();}
return false;}
iVip=QUSER.getInfo("vip");return true;};function InitHTML()
{function UserInfoSucc(xmlDoc)
{InitVar(xmlDoc);}
function UserInfoFail(xmlDoc)
{var iRetCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");var iAuthorize=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("authorize");if(-1005==iRetCode)
{top.location="http://show.qq.com/my/inc/reg01.html";}
else if(-1001==iRetCode)
{document.getElementById('loginStr').innerHTML='欢迎光临，请先<a href="javascript:gotoLoginPage();">登录</a>';return;}
else if(-1003==iRetCode)
{alert("系统繁忙，获取用户信息失败，请稍候再试。");}
else
{alert("调用[qqshow_user_info] 返回失败 iRetCode:"+iRetCode);}};document.getElementById('state').innerHTML=g_title;updatemagno(mag_name.length);var iUin=GetUin();if(iUin==0)
{document.getElementById('loginStr').innerHTML='欢迎光临，请先<a href="javascript:gotoLoginPage();">登录</a>';return;}
else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_info?vipinfo=1",UserInfoSucc,UserInfoFail,function(){getXMLError("qqshow_user_info");});return;}};function InitVar(xmlDoc)
{var obj=xmlDoc.getElementsByTagName("QQSHOW")[0].getElementsByTagName("node")[0];var iUin=obj.getAttribute("uin");var sName=obj.getAttribute("name");var chSex=obj.getAttribute("sex");var iVip=obj.getAttribute("vip");var iGWQ=obj.getAttribute("gwq");var iAlbum=obj.getAttribute("album");var sItemSn=obj.getAttribute("show");var iMsgAsk=obj.getAttribute("msgask");var iMsgPhoto=obj.getAttribute("msgphoto");var iMsgVipCollect=obj.getAttribute("msgvipcollect");var oldUin=QUSER.getInfo("uin");if(oldUin&&iUin!=oldUin)
{if(typeof(ClearLastLoginInfo)=="function")
{ClearLastLoginInfo();}}
QUSER.setInfo("uin",iUin);QUSER.setInfo("name",sName);QUSER.setInfo("sex",chSex);QUSER.setInfo("vip",iVip);QUSER.setInfo("gwq",iGWQ);QUSER.setInfo("album",iAlbum);QUSER.setInfo("msgask",iMsgAsk);QUSER.setInfo("msgphoto",iMsgPhoto);QUSER.setInfo("msgvipcollect",iMsgVipCollect);var ob=xmlDoc.getElementsByTagName("QQSHOW")[0].getElementsByTagName("node")[0];var vip=ob.getAttribute("viprank");var level=ob.getAttribute("rlevel");var score=ob.getAttribute("rtotalscore");var sequence=ob.getAttribute("rsequence");var scoreleft=ob.getAttribute("rscoreleft");var distance=ob.getAttribute("rleveldis");var initscore=ob.getAttribute("rinitscore");var viprank=vip+"|"+level+"|"+score+"|"+sequence+"|"+scoreleft+"|"+distance+"|"+initscore;QSCookie("viprank",viprank);if(vip==1||vip==2||vip==0)
{document.getElementById('loginStr').innerHTML='欢迎光临，<span  id="nick">'+sName.escHtml()+'</span>'+GetVipRankImag1(vip,level)+'[<a href="javascript:LoginReset();" class="exit" >退出</a>]';}
else
{document.getElementById('loginStr').innerHTML='欢迎光临，<span class="VIP" id="nick">'+sName.escHtml()+'</span>'+'[<a href="javascript:LoginReset();" class="exit" >退出</a>]';}};function GetVipRankImag1(vip,iLevel)
{if(vip==2||vip==0)
{var isVip=(vip==0);var code='<span  class="vip_lv'+(isVip?"":"_gray")+'">';code+='<span>lv</span>';code+='<span class="lv lv'+iLevel+'">'+iLevel+'</span>';code+='</span>';return code;}
return"";};function LoginReset()
{QQCookie("uin","",-1);QQCookie("skey","",-1);QSCookie("QSUSRINF","",-1);QSCookie("QSUDTMmilliSeconds","",-1);QSCookie("viprank","");clsCart();top.location=g_sUrl;};function GoRedirect(sUrl,bFresh)
{if(oSubWin)
{try{if(oSubWin.mainfra&&!bFresh)
{var sSub="/inc/main.html";var iNum=sUrl.indexOf("MUrl=");if(-1==iNum)
{sSub=sUrl;}
else
{sSub=sUrl.substring(iNum+5,sUrl.length);sSub=unescape(sSub);var iSub=sSub.indexOf(".htm");var iTemp=5;if(-1==sSub.indexOf(".html"))
{iTemp=4;}
var Cha="";if(iSub+iTemp<sSub.length)
{Cha=sSub.substring(iSub+iTemp,iSub+iTemp+1);}
if(Cha.length>0&&Cha!="?")
{Cha="?";}
sSub=sSub.substring(0,iSub+iTemp)+Cha+sSub.substring(iSub+iTemp+1,sSub.length);}
if(-1==sSub.indexOf("http:"))
{sSub="http://imgcache.qq.com/qqshow_v3/htdocs"+sSub;}
oSubWin.mainfra.location=sSub;}
else
{oSubWin.location=sUrl;}
oSubWin.focus();}
catch(e)
{oSubWin=window.open(sUrl,g_title);oSubWin.focus();}}
else
{oSubWin=window.open(sUrl,g_title);oSubWin.focus();}};function GoMatch(iNo,ext1,mallid,iTry)
{if(!ext1&&g_mallid)
ext1=4;var iMatchSex=QUSER.getAvSex()=="F"?0:1;if((ext1&4)>0)
{var sUrl="http://show.qq.com/show.html?MUrl=/mall/inc/suit.html&itemno="+iNo+"&sex="+iMatchSex;if(!iTry)
sUrl=sUrl+"&try=1";GoRedirect(sUrl);}
else
{if(!mallid)
return;GoMall(iNo,mallid);}};function GoMall(no,mallid)
{var sUrl="http://show.qq.com/show.html?MUrl=/mall/inc/item.html%3Fmallno%3D102010000%26mallid%3D"+mallid+"%26itemno%3D"+no;GoRedirect(sUrl);};function GoDetail(no)
{var sUrl="http://show.qq.com/show.html?MUrl=http://show.qq.com/js/item_detail/item_detail_"+no+".html";GoRedirect(sUrl);};function GoNewDetail(ItemSn)
{var sUrl="http://show.qq.com/mall/inc/before_set_detail.html?sShow="+escape(ItemSn);GoRedirect(sUrl);}
function SendPGV(CORD)
{if('function'==typeof(pgvSendClick)){pgvSendClick({hottag:CORD});}}
function changemag()
{try{var magno=parseInt(document.getElementById("vip_mag_select").value);}catch(e){return;}
var sMagno="";var sUrl="";if(magno<25)
{if(magno<10&&magno>0)sMagno="0"+magno.toString();else sMagno=magno.toString();sUrl="http://show.qq.com/live/vip_mag_"+sMagno+"/index.html";}
else
{sUrl="http://show.qq.com/show_v3.html?MUrl=/qqshow_v3/htdocs/live/vip_mag/vip_mag_"+magno+"/index.html";}
window.location=sUrl;};function updatemagno(no)
{var magno=document.getElementById("vip_mag_select");if(magno)
{magno.innerHTML="";for(var i=0;i<=no;i++)
{var subopt=document.createElement("option");var oText=document.createTextNode(mag_name[i]);subopt.appendChild(oText);if(i==0)
{alert(no-i)}
subopt.value=(no-i);if(g_mallid==(no-i))
{subopt.selected=true;}
magno.appendChild(subopt);}}}/*  |xGv00|c808088b248c3ef2918c52e512347b16 */