
var mag_old=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期 春的律动姿态","第30期 春の女","第31期 经典电影","第32期 修身造型","第33期 Bono商务着装顾问","第34期 虚实结合休闲风","第35期 361°多一度热爱","第36期 浪漫旅程","第37期 内衣外穿也时尚","第38期 先上场总动员","第39期 巴黎女装夏日流行","第40期 我的玩裤法则","第41期 卡宾春夏清新男装","第42期 361°燃动我的热爱","第43期 奢华名包搭配法则","第44期 度夏裤装新风尚","第45期 潮TEE集中营","第46期 百变腰精","第47期 情侣泳装","第48期 原始狂野的魅力","第49期 敢于更完美","第50期 情侣潮TEE","第51期 运动秋装","第52期 旗袍魅中国味","第53期 换季手册","第54期 职场着装","第55期 涂鸦大赛","第56期 真维斯秋装","第57期 国庆献礼","第58期 秋季男装","第59期 男装发布","第60期 街头型男","第61期 361°冬季运动燃情","敬请期待"];mag_name=mag_name.reverse();var cr_name=["第01期 潮人萧敬腾","第02期 罗志祥潮T正传","第03期 瑞丽当家模特","第04期 潘帅的街头玩酷哲学","第05期 RAIN热舞派对","第06期 许慧欣纯美公主风","第07期 Angelababy东瀛风向标","第08期 半熟男人周渝民","第09期 时尚女王尹恩慧","第10期 巧克力型男古天乐","敬请期待"];cr_name=cr_name.reverse();var mag_module=[];mag_module[39]=1;mag_module[40]=2;mag_module[41]=3;mag_module[42]=4;mag_module[43]=1;mag_module[44]=2;mag_module[45]=5;mag_module[46]=2;mag_module[47]=6;mag_module[48]=7;mag_module[49]=8;mag_module[50]=5;mag_module[51]=9;mag_module[52]=2;mag_module[53]=2;mag_module[54]=10;mag_module[55]=5;mag_module[56]=11;mag_module[57]=12;mag_module[58]=5;mag_module[59]=13;mag_module[60]=5;mag_module[61]=14;var cr_module=[];cr_module[2]=2;cr_module[3]=2;cr_module[4]=2;cr_module[5]=2;cr_module[6]=3;cr_module[7]=3;cr_module[8]=4;cr_module[9]=4;cr_module[10]=4;var g_sVip="0";function qqshowSelect(contain,id,ioptions,index)
{this.html="";this.id=id;this.contain=contain;this.leng=mag_name.length-1;this.index=(isNaN(index)?0:parseInt(index,10));if(typeof(g_mallid)=="number")
{this.index=this.leng-g_mallid;}
this.options=ioptions?ioptions:[];this.init();}
qqshowSelect.prototype.init=function()
{var classname="selector";if(this.options.length<=0)
{classname="main_weekly_select selector";}
var shtml='<div class="'+classname+'" id="'+this.id+'" ><span name="'+this.id+'" >请选择</span><button type="button" >&#9660;</button><ul style="display:none;height:250px;overflow:auto">';var list=this.options;var len=list.length;for(var i=0;i<len;i++)
{if(i!=this.index)
{shtml+='<li value="'+list[i][1]+'">'+list[i][0]+'</li>';}
else
{shtml+='<li value="'+list[i][1]+'" class="sel">'+list[i][0]+'</li>';}}
shtml+='</ul></div>';this.contain.innerHTML=shtml.escNone();var obj=$(this.id).childNodes;if(obj.length>1)
{obj[0].onclick=this.expandSelect.bind(this);obj[1].onclick=this.expandSelect.bind(this);}}
qqshowSelect.prototype.expandSelect=function()
{var objx=$(this.id);var _this=this;var uls=objx.getElementsByTagName("ul");var lis=objx.getElementsByTagName("li");var index=parseInt(_this.index);if(uls.length>0)
{if(uls[0].style.display!="block")
{uls[0].style.display="block";}
else
{uls[0].style.display="none";}}
var children=objx.childNodes;var len=lis.length;for(var i=0;i<len;i++)
{lis[i].index=i;lis[i].onclick=function()
{children[0].innerHTML=this.innerHTML.escNone();children[1].value=this.value;uls[0].style.display="none";_this.setIndexy(this.index);objx.value=this.value;objx.selectedIndex=this.index;if(index!=this.index)
{_this.onselect();}}
lis[i].onmouseover=function()
{chooseClass(this,"sel","");}
if(i==index)
{lis[i].className="sel";}}
function onclickClose(event)
{var evt=event||window.event;var isshow=false;var target=evt.target||evt.srcElement;for(j=0;j<len;j++)
{if(children[j]==target)
{isshow=true;}}
if(!isshow)
{uls[0].style.display="none";if(lis[this.index])
{chooseClass(lis[this.index],"sel","");}}}
addEventListener(document,"onclick",onclickClose.bind(this));}
qqshowSelect.prototype.add=function(name,value)
{var ul=$(this.id).getElementsByTagName("ul");var li=$C("li");li.innerHTML=name.escNone();li.value=this.leng-parseInt(value,0)+1;ul[0].appendChild(li);}
qqshowSelect.prototype.remove=function(name)
{var lis=$(this.id).getElementsByTagName("li");var len=lis.length;for(var i=0;i<len;i++)
{if(lis[i].name==name)
{lis[i].parentNode.removeChild(lis[i]);}}}
qqshowSelect.prototype.getIndex=function()
{return parseInt(this.index,10);}
qqshowSelect.prototype.setIndex=function(index)
{this.index=this.leng-parseInt(index,10)-1;var objx=$(this.id);var lis=objx.getElementsByTagName("li");var span=objx.getElementsByTagName("span");if(lis[this.index])
{span[0].innerHTML=lis[this.index].innerHTML.escNone();}}
qqshowSelect.prototype.setIndexy=function(index)
{this.index=this.leng-parseInt(index,10)-1;var objx=$(this.id);}
qqshowSelect.prototype.removeAll=function()
{var ul=$(this.id).getElementsByTagName("ul");if(ul.length>0)
{ul.innerHTML="";}}
qqshowSelect.prototype.setHeight=function(h)
{var ul=$(this.id).getElementsByTagName("ul");ul[0].style.height=h;}
qqshowSelect.prototype.onselect=function()
{}
function gotoLoginPage()
{var loginUrl="http://show.qq.com"+"/inc/login_box_v2.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 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/v3/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.escNone();updatemagno(mag_name.length-1);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").escHtml();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 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);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(sName.indexOf("<BR>")>-1){sName=sName.replace(/<BR>/g,"&nbsp;")}
if(vip==1||vip==2||vip==0)
{document.getElementById('loginStr').innerHTML=('欢迎光临，<span  id="nick">'+sName+'</span>'+GetVipRankImag1(vip,level)+'[<a href="javascript:LoginReset();" class="exit" >退出</a>]').escNone();}
else
{document.getElementById('loginStr').innerHTML=('欢迎光临，<span class="VIP" id="nick">'+sName+'</span>'+'[<a href="javascript:LoginReset();" class="exit" >退出</a>]').escNone();}};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,showName)
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.ClickItem'+iNo+'_'+g_sVip);if(!ext1&&g_mallid)
ext1=4;var iMatchSex=QUSER.getAvSex()=="F"?0:1;if((ext1&4)>0)
{var sUrl="http://show.qq.com/show_v3.html?MUrl=/mall/inc/suit.html&itemno="+iNo+"&sex="+iMatchSex+"&from="+(showName?getChaoRenID():g_mallid)+"_"+(showName?escape(showName):escape(getMagName()[g_mallid-1]));if(!iTry)
sUrl=sUrl+"&try=1";top.location=sUrl;}
else
{if(!mallid)
return;GoMall(iNo,mallid);}};function GoMall(no,mallid)
{var sUrl="http://show.qq.com/show_v3.html?MUrl=/mall/inc/item.html%3Fmallno%3D102010000%26mallid%3D"+mallid+"%26itemno%3D"+no+"%26from%3D"+g_mallid+"_"+escape(mag_name[g_mallid]);top.location=sUrl;};function GoDetail(no)
{var sUrl="http://show.qq.com/show_v3.html?MUrl=http://show.qq.com/js/item_detail/item_detail_"+no+".html";GoRedirect(sUrl);};function GoNewDetail(ItemSn)
{var sUrl="http://show.qq.com/userdata.html?sShow="+escape(ItemSn);GoRedirect(sUrl);}
function GetRedirctMagUrl(magno)
{var sUrl="";var sMagno="";var isImgcache=(location.href.indexOf("http://imgcache.qq.com")==0);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 if(magno>=39)
{if(isImgcache)
{sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/live/vip_mag/index"+mag_module[magno]+".html?id="+magno;}
else
{sUrl="http://show.qq.com/show_v3.html?MUrl=/qqshow_v3/htdocs/live/vip_mag/index"+mag_module[magno]+".html&id="+magno;}}
else
{if(isImgcache)
{sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/live/vip_mag/vip_mag_"+magno+"/index.html";}
else
{sUrl="http://show.qq.com/show_v3.html?MUrl=/qqshow_v3/htdocs/live/vip_mag/vip_mag_"+magno+"/index.html";}}
return sUrl;}
function GetRedirctCrUrl(magno)
{var sUrl="";var sMagno="";if(magno>1)
{sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/live/fashion/index"+cr_module[magno]+".html?id="+magno;}
else
{sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/live/fashion/fashion_0"+magno+"/index.html";}
return sUrl;}
function changemag()
{try{var magno=parseInt(document.getElementById("vip_mag_select").value);}catch(e){return;}
var sUrl=GetRedirctMagUrl(magno);if(sUrl.indexOf("http://imgcache.qq.com")==0)
{locaton=GetRedirctMagUrl(magno);}
else
{top.location=GetRedirctMagUrl(magno);}
return false;};function updatemagno(no)
{var len=mag_name.length;var magno=document.getElementById("vip_mag_select");if(magno)
{magno.innerHTML="";for(var i=1;i<=no;i++)
{var subopt=document.createElement("option");var oText=document.createTextNode(mag_name[i]);subopt.appendChild(oText);subopt.value=len-i;if(g_mallid==len-i)
{subopt.selected=true;}
magno.appendChild(subopt);}}}
function controlShowBase(type)
{var frame=$("showframe");if(type)
{$("id_hiden").style.display="none";$("id_show").style.display="block";if(_MSIE())
{frame.style.display="block";}
else
{$("side").style.width="204px";$("showframe").style.width="204px";frame.style.visibility="visible";}}
else
{$("id_hiden").style.display="block";$("id_show").style.display="none";if($("ID_QQSHOW_FLOAT_WIN"))
{FloatShow.OnCancel();}
if(_MSIE())
{frame.style.display="none";}
else
{$("side").style.width="0px";frame.style.visibility="hidden";}}}
function PutOn(iItemNo,chSex,sPlyNo,iFStl,bPoseBind,iDefX,iDefY,bMov,bRot,bSelc,bSpecail,sText,sMallNo)
{controlShowBase(true);try
{if(top.leftfra&&top.leftfra.ShopTryItem)
{top.leftfra.ShopTryItem(iItemNo,chSex,sPlyNo,iFStl,bPoseBind,iDefX,iDefY,bMov,bRot,bSelc,bSpecail,sText,sMallNo);}}
catch(e)
{return false;}
return true;};function TryOnItem(itemno)
{if(typeof(iteminfo)!="undefined")
{if(typeof(iteminfo[itemno])!="undefined")
{if(typeof(bChaoRenPage)!="undefined"&&bChaoRenPage)
{SendPGV('ISD.QQShow.CHAOREN_'+g_mallid+'.TryItem'+itemno+'_'+g_sVip);}
else
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.TryItem'+itemno+'_'+g_sVip);}
var mallno;if(top&&(typeof(top.g_iMallNo)!="undefined"))
mallno=top.g_iMallNo;PutOn(iteminfo[itemno][0],iteminfo[itemno][12],iteminfo[itemno][11],iteminfo[itemno][3],iteminfo[itemno][4],iteminfo[itemno][8],iteminfo[itemno][9],iteminfo[itemno][5],iteminfo[itemno][6],iteminfo[itemno][7],iteminfo[itemno][1],'',mallno);}}};function TryOnShow(sAvStr)
{controlShowBase(true);var mallno;if(top&&(typeof(top.g_iMallNo)!="undefined"))
mallno=top.g_iMallNo;if(typeof(PutOnShow)=="function")
{PutOnShow(sAvStr,mallno);}}
function TryOnIndexShow(idx)
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.TryShow'+idx);if(typeof(idx)=="number")
{TryOnShow(aShow[idx]);}
else
{alert("error");}}
function setMagInit()
{var len=mag_name.length;if(typeof($("sel"))!="undefined"&&$("sel"))
{var sel=new qqshowSelect($("sel"),"mag_vip");if(typeof(mag_name)!="undefined"&&typeof(mag_name[g_mallid])!="undefined")
{for(var i=1;i<len;i++)
{sel.add(mag_name[i],i)}}
sel.setIndex((g_mallid-1));sel.onselect=function()
{var idx=this.getIndex()+1;if(idx<25)
{top.location=GetRedirctMagUrl(idx);}
else
{location=GetRedirctMagUrl(idx);}}}
var sTmpMagTitle="<a id=\"ID_Chaoliu\" href=\"javascript:SendPGV('ISD.QQShow.VIP_MAG_"+g_mallid+".VipMag_"+g_sVip+"');top.topfra.PageChange(7);\" >潮流</a> >"
+" <a href=\"javascript:SendPGV('ISD.QQShow.VIP_MAG_"+g_mallid+".VipMag_"+g_sVip+"');top.topfra.PageChange(1437);\" >红钻时尚特刊</a> > <span>"
+mag_name[len-g_mallid].split(" ")[1]+"</span>";$("mag_title").parentNode.innerHTML=sTmpMagTitle.escNone();}
function setMenu()
{if(top.topfra&&top.topfra.document.getElementById("firNag"))
{var firNagp=top.topfra.document.getElementById("firNag").getElementsByTagName("a");var len=firNagp.length;for(var i=0;i<len;i++)
{if(firNagp[i].getAttribute("mallno")!=207000000)
{if(firNagp[i].className=="sel")
{firNagp[i].className="";}}
else
{firNagp[i].className="sel";}}}}
function setGotoVip()
{if(!$("go_vip"))return;$("go_vip").onclick=function()
{window.open('http://paycenter.qq.com/qqshow/?pageshow=acct&aid=show.show.qqshowmall.vipmag.link1');if(typeof(bChaoRenPage)!="undefined"&&bChaoRenPage)
{SendPGV('ISD.QQShow.CHAOREN_'+g_mallid+'.RED_'+g_sVip);}
else
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.RED_'+g_sVip);}}}
function initLeftSide()
{var g_sAVId="myavatar";if(_MSIE()){$("showframe").style.width="0px";}
else
{$("showframe").style.width="10px";}
$("showframe").style.display="block";if(!CheckAcess(top.leftfra))
{setTimeout(initLeftSide,200);return;}
if((top.leftfra.document.getElementById(g_sAVId)!=null)&&(typeof(top.leftfra.document.getElementById(g_sAVId).cQSAV)!="undefined"))
{var oQSAV=top.leftfra.document.getElementById(g_sAVId).cQSAV;if(oQSAV.IsReady())
{$("showframe").style.width="204px";if(getHashParam("type")&&getHashParam("type")=="1")
{controlShow(true);setHashParam("type",0)}
else
{controlShow(false);}}
else
{setTimeout(initLeftSide,1000);}}
else
{setTimeout(initLeftSide,1000);}}
function selHeadNav()
{var isChaoRen=(typeof(bChaoRenPage)!="undefined"&&bChaoRenPage);if(window.QUSER.getStyle()==0)
{top.g_iMallNo=top.topfra.GetMallno(isChaoRen?1878:708);}
else
{top.g_iMallNo=top.topfra.GetMallno(isChaoRen?1438:1437);}
if(top.topfra&&("function"==typeof(top.topfra.strongFir)))
{top.topfra.strongFir();}}
function systemInit()
{if(!CheckAcess(top.topfra)||!CheckAcess(top.leftfra))
{setTimeout(systemInit,100);return;}
g_sVip=QUSER.getInfo("vip");if(g_sVip=="")g_iVip="0";initFrame();changgeRss();selHeadNav();setMagInit();setGotoVip();initLeftSide();initNav();changeUrl();}
function XSend(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom)
{if(DSAsystem.DSAdata[0]==0)
{return Send(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom);}
if(CheckLogin(1))
{if(iVipItem==1&&QUSER.getInfo("vip")!=1)
{return alert("您不是红钻用户，不能赠送红钻物品["+sName+"]");}
else
{function OnOK(x)
{var _Prm=new PARAM(x,"&","=");DSABuy(DecodeCart(_Prm["info"]),[sName,iNo,1,iPrice,iPriceVip,0,0,"",vFrom?vFrom.toString():""]);};var aParam=[sName,iNo,1,Math.round(iPrice*DSAsystem._ComDsc/100),Math.round(iPriceVip*DSAsystem._VipDsc/100),iVipItem,0,"",vFrom?vFrom.toString():""];FloatShow(pathdir+"/mall/inc/don.html?info="+EncodeCart(aParam).escUrl(),404,304,OnOK);}}};function changeFunction()
{var leftsave=top.leftfra.$("LASTSAVE_LINK_ID");if(leftsave)
{var showrecent=leftsave.onclick;leftsave.onclick=function()
{if($("id_show").style.display=="none"&&$("showframe").style.display!="none")
{$("id_show").style.display="block";}
showrecent();}}
var show=top.mainfra.FloatShow;if(top.leftfra)
{top.mainfra.FloatShow.Hide=function()
{show.OnCancel();controlShow(true);}
top.leftfra.FloatShow=top.mainfra.FloatShow=function(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,canscroll)
{if($("id_show"))
{$("id_show").style.display="none";}
show(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,canscroll);}
top.leftfra.OnCancel=top.mainfra.FloatShow.OnCancel=function()
{if($("id_show")&&$("id_hiden").style.display=="none")
{$("id_show").style.display="block";}
show.OnCancel();}
for(var s in show)
{if(s!="OnCancel"){top.leftfra.FloatShow[s]=top.mainfra.FloatShow[s]=show[s]}}}}
function changgeRss()
{var obj=$("main_weekly_rss");if(obj&&typeof(obj)!="undefined"&&obj.tagName.toLowerCase()=="span")
{obj.innerHTML='<a href="javascript:void(0);" onclick="javascript:FloatShow(\'http://imgcache.qq.com/qqshow_v3/htdocs/live/bookmail/bookmanual.html\', 458, 289, null, null, 250, 20);" title="订阅红钻完全SHOW册">订阅</a>'.escNone();}}
function getMagName()
{if(mag_old[0]=="第01期 清凉夏季")
{return mag_old;}
else
{return mag_old.reverse();}}
function changeUrl(showName)
{var as=document.getElementsByTagName("a");var len=as.length,url;var mag_list=getMagName();for(var i=0;i<len;i++)
{url=as[i].href.toString();if(url.indexOf("/mall/inc/particular")!=-1||url.indexOf("/mall/inc/suit")!=-1||url.indexOf("/mall/inc/search")!=-1||url.indexOf("/mall/inc/commend_house")!=-1)
{if(url.indexOf("?")!=-1)
{as[i].href=url+"&from="+(showName?getChaoRenID():g_mallid)+"_"+(showName?escape(showName):escape(mag_list[g_mallid-1]));}
else
{as[i].href=url+"?from="+(showName?getChaoRenID():g_mallid)+"_"+(showName?escape(showName):escape(mag_list[g_mallid-1]));}}}}
function getVipJs()
{var sTempPath="http://imgcache.qq.com/qqshow_v3/htdocs/syndata/data/vip_mag_js/";if(typeof(bChaoRenPage)!="undefined"&&bChaoRenPage)
{return sTempPath+"chaoren_"+g_mallid+".js";}
return sTempPath+"vip_mag_"+g_mallid+".js";}
function getChaoRenID()
{return cr_module[g_mallid]*100000+g_mallid;}
function gotoDetailShow(sShow,showName)
{setUserData("__commend_house__",escape(sShow));if(arguments[1])
{url=arguments[1];}
var mag_list=getMagName();var sUrl=QQShowUrl('/mall/inc/particular.html?type=0&tlink='+(showName?getChaoRenID():g_mallid)+'_'+(showName?escape(showName):escape(mag_list[g_mallid-1].split(" ")[1]))+'&');top.location.href="http://show.qq.com/show_v3.html?MUrl="+sUrl.escUrl();}
function BuyForMag(no)
{if(ChkUin(GetUin()))
{var sShow=(typeof(no)=="number"?aShow[no]:no);var mallno;if(top&&(typeof(top.g_iMallNo)!="undefined"))
mallno=top.g_iMallNo;RBuyAll(sShow,mallno);}
else
{ShowLogin();}}
function sendForMag(no)
{if(ChkUin(GetUin()))
{var sShow=(typeof(no)=="number"?aShow[no]:no);top.leftfra.sendAll(0,sShow);}
else
{ShowLogin();}}
function askForMag(no)
{if(ChkUin(GetUin()))
{var sShow=(typeof(no)=="number"?aShow[no]:no);top.leftfra.askAll(0,sShow);}
else
{ShowLogin();}}
function myDetailShow(no)
{var sShow=(typeof(no)=="number"?aShow[no]:no);gotoDetailShow(sShow);}
function iGoDetail(no)
{var index=parseInt(no,10);var sShow=iteminfo[index];GoMatch(sShow[0]);}
function iItemCollectionAdd(no)
{if(ChkUin(GetUin()))
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.CollectionItem'+no+'_'+g_sVip);var index=parseInt(no,10);var sShow=iteminfo[index];ItemCollectionAdd(sShow[0]);}
else
{ShowLogin();}}
function iBuyForMag(no)
{if(ChkUin(GetUin()))
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.BuyItem'+no+'_'+g_sVip);var index=parseInt(no,10);var sShow=iteminfo[index];var mallno;if(top&&(typeof(top.g_iMallNo)!="undefined"))
mallno=top.g_iMallNo;RBuy(sShow[14],sShow[0],sShow[16],sShow[17],"",mallno);}
else
{ShowLogin();}}
function iaskForMag(no)
{if(ChkUin(GetUin()))
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.AskItem'+no+'_'+g_sVip);var index=parseInt(no,10);var sShow=iteminfo[index];Ask(sShow[14],sShow[0],sShow[16],sShow[17]);}
else
{ShowLogin();}}
function isendForMag(no)
{if(ChkUin(GetUin()))
{SendPGV('ISD.QQShow.VIP_MAG_'+g_mallid+'.SendItem'+no+'_'+g_sVip);var index=parseInt(no,10);var sShow=iteminfo[index];var mallno;if(top&&(typeof(top.g_iMallNo)!="undefined"))
mallno=top.g_iMallNo;XSend(sShow[14],sShow[0],sShow[16],sShow[17],"",mallno);}
else
{ShowLogin();}}
function initNav()
{if((typeof(vmKeyWord1)=="undefined")||(typeof(vmKeyWord2)=="undefined")||(typeof(vmKeyWord3)=="undefined"))
return;if(!$("live_nav"))
return;var sHtml="";var sHtml1="";var sHtml2="";sHtml+="<p><strong><span>潮流情报</span></strong>";var emhref=0;for(var i=0;i<vmKeyWord1.length;i++)
{var emhreftmp=0;if(vmKeyWord1[i][3]==g_mallid)
{emhref=vmKeyWord1[i][3];emhreftmp=emhref;}
var emclass=(emhreftmp!=0)?"sel":"";if(i==0)
sHtml1+="<a href='"+vmKeyWord1[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord1[i][4]+"\");' target='"+vmKeyWord1[i][2]+"'>"+vmKeyWord1[i][0]+"</a>|";else if(i==(vmKeyWord1.length-1))
sHtml1+="<a href='"+vmKeyWord1[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord1[i][4]+"\");' target='"+vmKeyWord1[i][2]+"'>"+vmKeyWord1[i][0]+"</a>";else
sHtml1+="<a href='"+vmKeyWord1[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord1[i][4]+"\");' target='"+vmKeyWord1[i][2]+"'>"+vmKeyWord1[i][0]+"</a>|";}
sHtml2+="<p><strong><span>秀场直击</span></strong>";for(var i=0;i<vmKeyWord2.length;i++)
{var emhreftmp=0;if(vmKeyWord2[i][3]==g_mallid)
{emhref=vmKeyWord2[i][3];emhreftmp=emhref;}
var emclass=(emhreftmp!=0)?"sel":"";if(i==0)
sHtml2+="<a href='"+vmKeyWord2[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord2[i][4]+"\");' target='"+vmKeyWord2[i][2]+"'>"+vmKeyWord2[i][0]+"</a>|";else if(i==(vmKeyWord2.length-1))
sHtml2+="<a href='"+vmKeyWord2[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord2[i][4]+"\");' target='"+vmKeyWord2[i][2]+"'>"+vmKeyWord2[i][0]+"</a></p>";else
sHtml2+="<a href='"+vmKeyWord2[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord2[i][4]+"\");' target='"+vmKeyWord2[i][2]+"'>"+vmKeyWord2[i][0]+"</a>|";}
sHtml2+="<p><strong><span>淘货一族</span></strong>";for(var i=0;i<vmKeyWord3.length;i++)
{var emhreftmp=0;if(vmKeyWord3[i][3]==g_mallid)
{emhref=vmKeyWord3[i][3];emhreftmp=emhref;}
var emclass=(emhreftmp!=0)?"sel":"";if(i==0)
sHtml2+="<a href='"+vmKeyWord3[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord3[i][4]+"\");' target='"+vmKeyWord3[i][2]+"'>"+vmKeyWord3[i][0]+"</a>|";else if(i==(vmKeyWord3.length-1))
sHtml2+="<a href='"+vmKeyWord3[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord3[i][4]+"\");' target='"+vmKeyWord3[i][2]+"'>"+vmKeyWord3[i][0]+"</a></p>";else
sHtml2+="<a href='"+vmKeyWord3[i][1]+"' class='"+emclass+"' onclick='SendPGV(\""+vmKeyWord3[i][4]+"\");' target='"+vmKeyWord3[i][2]+"'>"+vmKeyWord3[i][0]+"</a>|";}
if(emhref==0)
{if(typeof(mag_name)!="undefined"&&typeof(mag_name[g_mallid])!="undefined")
{var len=mag_name.length;var m_name=mag_name[len-g_mallid].split(" ")[1];var m_href=GetRedirctMagUrl(g_mallid)
sHtml1+="|<a href='"+m_href+"' class='sel' >"+m_name+"</a></p>";}}
else
sHtml1+="</p>";sHtml+=sHtml1;sHtml+=sHtml2;$("live_nav").innerHTML=sHtml.escNone();if(typeof($("live_nav_mail"))!="undefined"&&$("live_nav_mail"))
{$("live_nav_mail").innerHTML='<a href="http://imgcache.qq.com/qqshow_v3/htdocs/live/mall_theme/list_all.html" class="em">全部红钻时尚特刊</a><p><button type="button" class="btn_tx4" onclick="javascript:FloatShow(\'http://imgcache.qq.com/qqshow_v3/htdocs/live/bookmail/bookmanual.html\', 458, 289, null, null, 250, 20);" title="订阅红钻完全SHOW册">邮件订阅</button> QQshow最新时尚资讯</p>'.escNone();}
InitSecondNav();$("live_nav_div").style.display="";}
function InitSecondNav()
{var Temp=parseInt(top.g_iMallNo/1000000);var tmpI=parseInt(Temp*1000000);tmpI+=10000;var tmp_menu_right="";var iCount=0;while(top.topfra.mallMenu[tmpI])
{if(iCount>=2)
{break;}
if(top.topfra.mallMenu[tmpI]&&(tmpI!=top.g_iMallNo)&&top.topfra.mallMenu[tmpI][4]!="N")
{tmp_menu_right+='<a href="javascript:top.topfra.PageChange('+top.topfra.mallMenu[tmpI][8]+');">'+top.topfra.mallMenu[tmpI][1]+'</a>';iCount++;}
tmpI+=10000;}
if(tmp_menu_right=="")
{$("RIGHT_MENU").style.display="none";}
else
{$("RIGHT_MENU").innerHTML=('<h2 class="important">现在就去</h2><p>'+tmp_menu_right+'</p>').escNone();}}
function initFrame()
{if($("showframe"))
{$("showframe").onload=function()
{changeFunction();}}
window.onunload=function()
{top.leftfra=top.wind;}
document.ondblclick=function()
{controlShowBase(false);}}/*  |xGv00|06fcae8ce7ee48e473c12f36cfaaa590 */