
if(window.location.toString().indexOf("http://show.qq.com")==0||window.location.toString().indexOf("http://imgcache.qq.com")==0)
{document.domain="qq.com";}
var ajaxlist=[];var sParDir="http://imgcache.qq.com/qqshow_v3/htdocs";var QQSHOW={version:1.0,domain:"qq.com",Logic:{},Tools:{}}
function QQShowMainUrl()
{return"http://show.qq.com/index_v3.html";}
window.onerror=function(s,t,p)
{if(s.indexOf("系统找不到指定的路径")>=0||s.indexOf("数据无效")>=0)
{return true;}}
function QQShowUrl(dir)
{if(dir.indexOf("http://")==0)
{sShowUrl="http://show.qq.com/show_v3.html"
if(dir.substr(0,sShowUrl.length)==sShowUrl)
{return dir;}
else
{return dir.replace("http://show.qq.com",sParDir);}}
return sParDir+dir;}
var $=function(s,docu)
{var doc=docu?docu:document;return(typeof s=="object")?s:doc.getElementById(s);};var $N=function(s,docu)
{var doc=docu?docu:document;return(typeof s=="object")?s:doc.getElementsByName(s);};var $T=function(s,docu)
{var doc=docu?docu:document;return(typeof s=="object")?s:doc.getElementsByTagName(s);};var $C=function(tag,docu)
{var doc=docu?docu:document;return doc.createElement(tag);};var $A=function(iterable)
{if(!iterable)return[];if(iterable.toArray)
{return iterable.toArray();}
else
{var results=[];for(var i=0,length=iterable.length;i<length;i++)
results.push(iterable[i]);return results;}};var Try={these:function(){var returnValue;for(var i=0,length=arguments.length;i<length;i++){var lambda=arguments[i];try{returnValue=lambda();break;}catch(e){}}
return returnValue;}}
function CheckUrlCredit(sUrl)
{return QQSHOW.Tools.Url.checkURL(sUrl);};function isNull(s,t)
{if(!s)
{return t;}
if(typeof(s)=="undefined")
{return t;}
return s;}
Function.prototype.bind=function(){var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}}
function _FireFox(){return(window.navigator.appName.toUpperCase().indexOf("NETSCAPE")>=0);};function _MSIE(){return(window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0);};function _MSIE6(){return _MSIE()?(window.navigator.appVersion.split(";")[1].replace(/[ ]/g,"").indexOf("MSIE6.0")>=0?true:false):false};function _MSIE7(){if(window.XMLHttpRequest&&!window.XDomainRequest){return true;}return false;}
function _MSIE78(){if(window.XMLHttpRequest&&!_FireFox()){return true;}return false;}
function _MSIE8(){return window.XDomainRequest?true:false;}
function _OPERA(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)?true:false;}
function _ISSHOW(){return window.location.toString().indexOf("http://show.qq.com")==0?true:false;}
function CheckClientScreen()
{var iScreenW=parseInt(screen.width);var iScreenH=parseInt(screen.height);if(iScreenW<=800||iScreenH<=600)
{alert("对不起，您的电脑分辨率太低，无法正常浏览商城，请调整电脑分辨率到1024*768以上！");return-1;}
return 0;};Array.prototype.del=function(n){if(n<0){return this;}else{return this.slice(0,n).concat(this.slice(n+1,this.length));}}
Array.prototype.clone=function(){return[].concat(this);};Array.prototype.find=function(e){for(var i=0;i<this.length;++i){if(this[i]==e){return i;}}return null;};Array.prototype.findmul=function(e){var a=[];for(var i=0;i<this.length;++i){if(this[i]==e){a.push(i);}}return a;};Array.prototype.find_if=function(fnEQ){for(var i=0;i<this.length;++i){if(fnEQ(this[i])){return i;}}return null;};Array.prototype.findmul_if=function(fnEQ){var a=[];for(var i=0;i<this.length;++i){if(fnEQ(this[i])){a.push(i);}}return a;};Array.prototype.push_not=function(e){if(this.find(e)==null){return this.push(e);}return null;};Array.prototype.push_not_if=function(e,fnEQ){if(this.find_if(fnEQ)==null){return this.push(e);}return null;};Array.prototype.remove=function(e){var a=this.findmul(e);for(var i=a.length-1;i>=0;--i){this.splice(a[i],1);}return a.length;};Array.prototype.remove_if=function(fnEQ){var a=this.findmul_if(fnEQ);for(var i=a.length-1;i>=0;--i){this.splice(a[i],1);}return a.length;};Array.prototype.transform=function(fnOp){for(var i=0;i<this.length;++i){this[i]=fnOp(this[i]);}return this;};Array.prototype.uniq=function(){var i=1;while(i<this.length){if(this[i]==this[i-1]){this.splice(i,1);}else{++i;}}return this;}
function SetMulObject(vObject,sName,oValue)
{for(var i=0;i<vObject.length;++i)
{vObject[i][sName]=oValue;}}
RegExp.showCharSet=/[\x00-\x09\x0B-\x0C\x0E-\x1F\x80-\xFF]/g;String.prototype.chsetReplace=function(){return this.replace(RegExp.showCharSet,"?");};String.prototype.chsetAlert=function(v){if(!this.chsetCheck()){alert((v?v+"中":"")+'请不要使用"'+this.match(RegExp.showCharSet).toString()+'"等字符。');return false;}else{return true;}};String.prototype.chsetCheck=function(){return!this.match(RegExp.showCharSet);};String.prototype.between=function(b,e){var bp=this.indexOf(b);if(bp==-1){return("");}bp+=b.length;var ep=this.indexOf(e,bp);if(ep==-1){return("");}return this.substr(bp,ep-bp);};String.prototype.replaceAll=function(s,t){return this.split(s).join(t);};String.prototype.asclen=function(){return this.replace(/[\u0100-\uffff]/g,"  ").length;};String.prototype.asccut=function(n){var i=0;while(n>0&&i<this.length){n-=this.charCodeAt(i)>=256?2:1;i+=(n>=0);}return this.substr(0,i);};String.prototype.escHtmlEp=function(){return this.replace(/[&'"<>\/\\\-\x00-\x1f\x80-\xff]/g,function(r){return"&#"+r.charCodeAt(0)+";"});};String.prototype.escHtml=function(){return this.replace(/[&'"<>\/\\\-\x00-\x09\x0b-\x0c\x1f\x80-\xff]/g,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/\r\n/g,"<BR>").replace(/\n/g,"<BR>").replace(/\r/g,"<BR>").replace(/ /g,"&nbsp;");};String.prototype.escScript=function(){return this.replace(/[\\"']/g,function(r){return"\\"+r;}).replace(/%/g,"\\x25").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\x01/g,"\\x01");};String.prototype.escUrl=function(){return escape(this).replace(/\+/g,"%2B");};String.prototype.escMiniUrl=function(){return this.replace(/%/g,"%25");};String.prototype.escHrefScript=function(){return this.escScript().escMiniUrl().escHtmlEp();};String.prototype.escNone=function(){return this.toString();};String.prototype.escRegexp=function(){return this.replace(/[\\\^\$\*\+\?\{\}\.\(\)\[\]]/g,function(a,b){return"\\"+a;});};String.prototype.escape=function(){return escape(this);};String.prototype.unescape=function(){return unescape(this);};String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");};String.prototype.ltrim=function(){return this.replace(/(^\s*)/g,"");};String.prototype.rtrim=function(){return this.replace(/(\s*$)/g,"");};Date.prototype.format=function(v){var a={"Y":this.getFullYear(),"m":LENFix(this.getMonth()+1,2),"d":LENFix(this.getDate(),2),"H":LENFix(this.getHours(),2),"M":LENFix(this.getMinutes(),2),"S":LENFix(this.getSeconds(),2)};return v.replace(/%[YmdHMS]/g,function(v){return(a[v.substr(1)]);});};QQSHOW.Tools.Url={checkURL:function(sUrl)
{return(/^(https?:\/\/)?[\w\-.]+\.(qq|paipai|soso|taotao)\.com($|\/|\\)/i).test(sUrl)||(/^[\w][\w\/\.\-_%]+$/i).test(sUrl)||(/^[\/\\][^\/\\]/i).test(sUrl)?true:false;},gotoUrl:function(url,manurl,doc)
{var sdocument=doc?doc:window;if(QQSHOW.Tools.Url.checkURL(url))
{sdocument.location.href=url;}
else
{sdocument.location.href=manurl;}}}
QQSHOW.Tools.Distance={getPostion:function(obj,type)
{var distance=0;while(obj.offsetParent!=null)
{distance+=obj[type];obj=obj.offsetParent;}
return distance;}}
QQSHOW.Tools.Params={param:function(valPairs,elemSep,pairSep)
{if(valPairs)
{var aElem=valPairs.toString().split(elemSep);for(var i=0;i<aElem.length;++i)
{var aPair=aElem[i].split(pairSep);(aPair.length>1)&&(this[aPair[0]]=unescape(aPair[1]));}}},getParam:function(valPairs,sName,elemSep,pairSep)
{var xParam=new QQSHOW.Tools.Params.param(valPairs,elemSep,pairSep);return xParam[sName]?xParam[sName]:"";}}
QQSHOW.Tools.Cookie={getCookie:function(sName)
{var value=null;if(!top.mainfra&&top.document)
{var myiframe=$("isdqqshow_hiddeniframe");if(myiframe)
{var iwindow=window.frames["isdqqshow_hiddeniframe"];value=iwindow.document.cookie;}}
else
{value=top.document.cookie;}
return QQSHOW.Tools.Params.getParam(value,sName,"; ","=");;}}
QQSHOW.Logic.Quser={getInfo:function(sName)
{var sData=QQSHOW.Tools.Cookie.getCookie("QSUSRINF");var oParam=new QQSHOW.Tools.Params.param(sData,"&","=");return oParam[sName]?oParam[sName]:"";}}
function setEvent(obj,eventname,func)
{if(_MSIE()&&(document.all&&!_OPERA()))
{obj.attachEvent("on"+eventname,func);}
else
{obj.addEventListener(eventname,func,false);}}
function enterForm(event,func)
{if(typeof(func)!="function")return;var evt=window.event||event;if(evt.keyCode==13)
{func();}}
function StopPropagation(oEvent){_MSIE()?oEvent.cancelBubble=true:oEvent.stopPropagation();}
function addEventListener(oElem,oEvents,fnHandler){if(!oElem||!oEvents||!fnHandler)return;if((typeof oEvents=="string"||oEvents instanceof String)){_addEventListener(oElem,oEvents,fnHandler);}else{for(var i=0,nLen=oEvents.length;i<nLen;i++){_addEventListener(oElem,oEvents[i],fnHandler);}}};function _addEventListener(oElem,sEvent,fnHandler){if(!oElem||!sEvent||!fnHandler)return;if(oElem.attachEvent){if(sEvent.indexOf("on")==-1)
sEvent="on"+sEvent;oElem.attachEvent(sEvent,fnHandler);}else{if(sEvent.indexOf("on")==0)
sEvent=sEvent.substr(2);oElem.addEventListener(sEvent,fnHandler,false);}};function removeEventListener(oElem,oEvents,fnHandler){if(!oElem||!oEvents||!fnHandler)return;if((typeof oEvents=="string"||oEvents instanceof String)){_removeEventListener(oElem,oEvents,fnHandler);}else{for(var i=0,nLen=oEvents.length;i<nLen;i++){_removeEventListener(oElem,oEvents[i],fnHandler);}}};function _removeEventListener(oElem,sEvent,fnHandler){if(!oElem||!sEvent||!fnHandler)return;if(oElem.detachEvent){if(sEvent.indexOf("on")==-1)
sEvent="on"+sEvent;oElem.detachEvent(sEvent,fnHandler);}else{if(sEvent.indexOf("on")==0)
sEvent=sEvent.substr(2);oElem.removeEventListener(sEvent,fnHandler,false);}};function UriComponentEncode(sStr)
{sStr=encodeURIComponent(sStr);sStr=sStr.replace(/~/g,"%7E");sStr=sStr.replace(/!/g,"%21");sStr=sStr.replace(/\*/g,"%2A");sStr=sStr.replace(/\(/g,"%28");sStr=sStr.replace(/\)/g,"%29");sStr=sStr.replace(/'/g,"%27");sStr=sStr.replace(/\?/g,"%3F");sStr=sStr.replace(/;/g,"%3B");return sStr;}
function escUrl(v){return v.escUrl();};function escHtml(v){return v.escHtml();};function escHtmlEp(v){return v.escHtmlEp();};function escScript(v){return v.escScript();};function escHrefScript(v){return v.escHrefScript();};function escNone(v){return v.escNone();};function PARAM(valPairs,elemSep,pairSep)
{if(valPairs)
{var aElem=valPairs.toString().split(elemSep);for(var i=0;i<aElem.length;++i)
{var aPair=aElem[i].split(pairSep);(aPair.length>1)&&(this[aPair[0]]=unescape(aPair[1]));}}};function getParam(valPairs,sName,elemSep,pairSep)
{var xParam=new PARAM(valPairs,elemSep,pairSep);return xParam[sName]?xParam[sName]:"";};function setParam(valPairs,n,v)
{valPairs=valPairs.toString();n=n.toString();v=v.toString().escUrl();var r=new RegExp("(^|\\W)"+n+"=[^&]*","g");return(valPairs.match(r))?valPairs.replace(r,"$1"+n+"="+v):valPairs+(valPairs?"&":"")+n+"="+v;};function getURLParam(sName,sUrl)
{(!sUrl)&&(sUrl=window.location.href);sUrl=sUrl.toString();var nIndex=sUrl.indexOf("?");return(nIndex>=0)?getParam(sUrl.substr(nIndex+1),sName,"&","="):"";};function setURLParam(u,n,v)
{u=u.toString();n=n.toString();v=v.toString().escUrl();var r=new RegExp("(^|\\W)"+n+"=[^&]*","g");return(u.match(r))?u.replace(r,"$1"+n+"="+v):u+(u.indexOf("?")==-1?"?":"&")+n+"="+v;};function getHashParam(n,l)
{l||(l=window.location);return l.hash?getParam(unescape(l.hash.substr(1)),n,"&","="):"";};function setHashParam(n,v,l)
{l||(l=window.location);v=v.toString().escUrl();var u=unescape(l.hash.substr(1));var r=new RegExp("(^|\\W)"+n+"=[^&]*","g");l.hash=escape((u.match(r))?u.replace(r,"$1"+n+"="+v):u+(u.length?"&":"")+n+"="+v);};function HtmlEncode(sStr)
{sStr=sStr.replace(/&/g,"&amp;");sStr=sStr.replace(/>/g,"&gt;");sStr=sStr.replace(/</g,"&lt;");sStr=sStr.replace(/"/g,"&quot;");sStr=sStr.replace(/'/g,"&#39;");return sStr;};function HtmlUnEncode(sStr)
{sStr=sStr.replace(/&amp;/g,"&");sStr=sStr.replace(/&gt;/g,">");sStr=sStr.replace(/&lt;/g,"<");sStr=sStr.replace(/&quot;/g,'"');sStr=sStr.replace(/&#39;/g,"'");return sStr;};function HtmlAttributeEncode(sStr)
{sStr=sStr.replace(/&/g,"&amp;");sStr=sStr.replace(/>/g,"&gt;");sStr=sStr.replace(/</g,"&lt;");sStr=sStr.replace(/"/g,"&quot;");sStr=sStr.replace(/'/g,"&#39;");sStr=sStr.replace(/=/g,"&#61;");sStr=sStr.replace(/`/g,"&#96;");return sStr;};function setCookie(sName,sValue,nExpireSec,sDomain,sPath)
{var sCookie=sName+"="+escape(sValue)+";";var doc;if((top.document.cookie.length+sCookie.length)>=4096)
{return false;}
if(nExpireSec)
{var oDate=new Date();oDate.setTime(oDate.getTime()+parseInt(nExpireSec)*1000);sCookie+="expires="+oDate.toUTCString()+";";}
if(sDomain)
{sCookie+="domain="+sDomain+";";}
if(sPath)
{sCookie+="path="+sPath+";"}
top.document.cookie=sCookie;return true;};function getcurrentCookie(sName)
{return getParam(document.cookie,sName,"; ","=");;}
function getCookie(sName)
{return getParam(top.document.cookie,sName,"; ","=");;};function QQCookie(sName,sValue,nExpSec)
{setCookie(sName,sValue,nExpSec,"qq.com","/");};function QICookie(sName,sValue,nExpSec)
{setCookie(sName,sValue,nExpSec,"imgcache.qq.com","/");};function QSCookie(sName,sValue,nExpSec)
{return setCookie(sName,sValue,nExpSec,"show.qq.com","/");};function _MSIEUSERDATA()
{function _USERData(oObj,sName,sCookie,type)
{try
{this._Object=oObj;this._svName=sName;this._Cookie=sCookie;this._Object.addBehavior("#default#userData");this._Object.load(this._svName);if(!getCookie(this._Cookie)||parseInt(this._Object.getAttribute(this._Cookie))<parseInt(getCookie(this._Cookie)))
{this.expiresDiscard();}
if(!getCookie(this._Cookie))
{if(type==1)
{QSCookie(this._Cookie,new Date().getTime());}
else
{QICookie(this._Cookie,new Date().getTime());}}}
catch(e)
{if(confirm("本地数据获取失败，是否进入帮助页面查看解决方法?"))
{window.open("http://support.qq.com/cgi-bin/beta2/content_new?tid=12379628389683379&start=0&num=20&order=0");}
return;}};_USERData.prototype.expiresDiscard=function()
{this._Object.expires=new Date(new Date().getTime()-365*86400000).toUTCString();this._Object.save(this._svName);this._Object.load(this._svName);this._Object.expires=new Date(new Date().getTime()+365*86400000).toUTCString();};var _userData_=null;window.getUserData=function(sName)
{if(!_userData_)
{var win=window;var type=0;if(!arguments[1])
{win=top;type=1}
_userData_=new _USERData(win.document.documentElement,"QQSHOW","QSUDTMmilliSeconds",type);}
return _userData_._Object.getAttribute(sName);};window.setUserData=function(sName,sValue)
{if(!_userData_)
{var win=window;var type=0;if(!arguments[2])
{win=top;type=1;}
_userData_=new _USERData(win.document.documentElement,"QQSHOW","QSUDTMmilliSeconds",type);}
_userData_._Object.setAttribute(sName,sValue);var mytest=new Date().getTime();_userData_._Object.setAttribute(_userData_._Cookie,mytest);_userData_._Object.save(_userData_._svName);};};function _FF2XUSERDATA()
{window.getUserData=function(sName)
{var win=window;if(!arguments[1])
{win=top;}
return win.sessionStorage.getItem(sName);};window.setUserData=function(sName,sValue)
{var win=window;if(!arguments[2])
{win=top;}
return win.sessionStorage.setItem(sName,sValue);};};function _NOUSERDATA()
{window.getUserData=function(sName)
{return!_NOUSERDATA._load&&(_NOUSERDATA._load=true)&&alert("对不起，由于您的浏览器不支持一些特性，QQ秀商城的部分功能您将无法正常使用。\n我们建议您使用Internet Explorer 6.0+或者Firefox 2.0+以获得最佳效果。");};window.setUserData=function(sName,sValue)
{return!_NOUSERDATA._load&&(_NOUSERDATA._load=true)&&alert("对不起，由于您的浏览器不支持一些特性，QQ秀商城的部分功能您将无法正常使用。\n我们建议您使用Internet Explorer 6.0+或者Firefox 2.0+以获得最佳效果。");};};_MSIE()?_MSIEUSERDATA():(window.sessionStorage)?_FF2XUSERDATA():_NOUSERDATA();function isleapyear(y)
{return(y%4==0&&y%100!=0||y%400==0);};function DAYOfMonth(y,m)
{return[31,isleapyear(y)?29:28,31,30,31,30,31,31,30,31,30,31][m-1];};function toExpTime(v,sFmt)
{if(isNaN(v))return 0;var nM=truncate(v/2678400,1);var nD=truncate(v/86400,1);if(!sFmt||sFmt=="M")
{if(nM>=1)
return nM+"个月";else
return parseInt(nD)+" 天 ";}else{return parseInt(nD)+" 天 ";}}
function truncate(nVal,nNum)
{var nRet=null;try
{if(nVal==0||nNum==0)
return 0;nVal=1*nVal;nNum=1*nNum;if(isNaN(nVal)||isNaN(nNum))
{nRet=0;}
else if(nNum>=0&&nNum<=18)
{var strX=nVal.toString();var arrX=strX.split(".");if(arrX[1])
{if(arrX[1].length>nNum)
arrX[1]=arrX[1].substr(0,nNum);strX=arrX.join(".");}
else
strX=arrX[0];nRet=parseFloat(strX);}
else
{nRet=0;}}
catch(e)
{nRet=0;}
return nRet;}
function DebugMessage(v)
{return"["+v.toString()+"]";};window.QUSER={};window.QUSER.getInfo=function(sName)
{var sData=getCookie("QSUSRINF");var oParam=new PARAM(sData,"&","=");return oParam[sName]?oParam[sName]:"";};window.QUSER.setInfo=function(sName,sValue)
{var sData=getCookie("QSUSRINF");QSCookie("QSUSRINF",setParam(sData,sName,sValue));};window.QUSER.getAvSex=function()
{var sSex=QUSER.getInfo("avsex");if(sSex.length==0)
{QUSER.setInfo("avsex","F");return"F";}
else return sSex;};window.QUSER.getStyle=function()
{var sStyle=QUSER.getInfo("style");if(sStyle.length==0)
{QUSER.setInfo("style","1");return 1;}
else return parseInt(sStyle);};window.VIPItemSend={};window.VIPItemSend.getTotal=function(iLevel)
{var vTotal=[0,0,2,3,5,6,7,10];if(arguments.length==0)
{iLevel=(getCookie("viprank").split("|")[1]||0);return(QUSER.getInfo("vip")!=1?0:(vTotal[iLevel]||0));}
return(vTotal[iLevel]||0);}
window.VIPItemSend.getUsed=function()
{return parseInt(QUSER.getInfo("vipsend"))||0;}
window.VIPItemSend.getLeft=function()
{var iLeft=VIPItemSend.getTotal()-VIPItemSend.getUsed();return iLeft>=0?iLeft:0;}
window.VIPItemSend.setUsed=function(n)
{return QUSER.setInfo("vipsend",n>=0?n:0);}
window.VIPItemSend.canSend=function()
{return VIPItemSend.getTotal()>VIPItemSend.getUsed();}
window.VIPRank={};window.VIPRank.getType=function()
{return(parseInt(getCookie("viprank").split("|")[0])||0);}
window.VIPRank.getLevel=function()
{return(parseInt(getCookie("viprank").split("|")[1])||0);}
window.VIPRank.getImageHtml=function(iType,iLevel)
{iType>=0||(iType=VIPRank.getType());iLevel>=0||(iLevel=VIPRank.getLevel());var vHtml=['<SPAN class="vip_lv"><SPAN>lv</SPAN><SPAN class="lv lv$LV">$LV</SPAN></SPAN>','','<SPAN class="vip_lv_gray"><SPAN>lv</SPAN><SPAN class="lv lv$LV">$LV</SPAN></SPAN>'];return(vHtml[iType]||"").replace(/\$LV/g,iLevel);}
window.VIPRank.setImageShow=function(o,iType,iLevel)
{iType>=0||(iType=VIPRank.getType());iLevel>=0||(iLevel=VIPRank.getLevel());var vHtml=['<SPAN>lv</SPAN><SPAN class="lv lv$LV">$LV</SPAN>','<SPAN>lv</SPAN><SPAN class="lv lv$LV">$LV</SPAN>',''];var vClass=["vip_lv","vip_lv_gray",""];if(o.length)
{for(var i=0;i<o.length;++i)
{o[i].className=vClass[iType];o[i].innerHTML=vHtml[iType].replace(/\$LV/g,iLevel).escNone();}}
else if(o)
{o.className=vClass[iType];o.innerHTML=vHtml[iType].replace(/\$LV/g,iLevel).escNone();}}
function getXml(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type)
{method=isNull(method,"POST");var mytype=1;if(!isNaN(type)&&parseInt(type,10)==2)
{mytype=2;}
var myajax=new qqshowAjax(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,mytype);return myajax.xmlhttp;};function getQQSHOWXml(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type)
{var xmlhttp;xmlhttp=new qqshowAjax(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type);return xmlhttp;};function getQQSHOWSyncXml(sUrl,fnSucc,fnFail,fnError)
{function fnCall(xmlReq)
{var xmlDoc=xmlReq.responseXML;(xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code")==0)?(fnSucc?fnSucc(xmlDoc):null):(fnFail?fnFail(xmlDoc):null);};return getXml(sUrl,fnCall,fnError,false);}
function replaceHtmlWithXml(xmlNode,sHtml,mapName,iAbsIndex,iRltIndex)
{var eData={"@abs(I)":iAbsIndex&&iAbsIndex.toString()||"0","@rlt(I)":iRltIndex&&iRltIndex.toString()||"0"};for(var i=0;i<mapName.length;++i)
{var vData=(mapName[i][0].constructor!=Array)?(eData[mapName[i][0]]||xmlNode.getAttribute(mapName[i][0])):([].concat(mapName[i][0]).transform(function(v){return(eData[v]||xmlNode.getAttribute(v));}));sHtml=sHtml.replace(new RegExp(mapName[i][1].escRegexp(),"g"),(mapName[i][2]?mapName[i][2](vData):vData).toString().replace(/\$/g,"$$$$"));}
return sHtml;};function showQQSHOWXmlNode(xmlDoc,oParent,xmlNodeName,sHtml,mapName,bi,ei,ne)
{var xmlNode=xmlDoc.getElementsByTagName(xmlNodeName);(!bi||bi<0)&&(bi=0);(!ei||ei<0)&&(ei=xmlNode.length);(!ne||ne<0)&&(ne=1);var sHtmlHd=sHtml.between("<%--HD--%>","<%--LB--%>");var sHtmlTl=sHtml.between("<%--LE--%>","<%--TL--%>");var sHtmlLB=sHtml.between("<%--LB--%>","<%--EB--%>");var sHtmlLE=sHtml.between("<%--EE--%>","<%--LE--%>");var sHtmlEM=sHtml.between("<%--EB--%>","<%--EE--%>");var aHtml=[];for(var i=bi;i<ei;i+=ne)
{aHtml.push(sHtmlLB);for(var n=0;n<Math.min(ei-i,ne);++n)
{aHtml.push(replaceHtmlWithXml(xmlNode[i+n],sHtmlEM,mapName,i+n,i-bi+n));}
aHtml.push(sHtmlLE);}
oParent.innerHTML=(sHtmlHd+aHtml.join("")+sHtmlTl).escNone();};function showQQSHOWXml(sUrl,oParent,xmlNodeName,sHtml,mapName,bi,ei,ne,fnSucc,fnFail,fnError)
{return getQQSHOWXml(sUrl,function(xmlDoc){showQQSHOWXmlNode(xmlDoc,oParent,xmlNodeName,sHtml,mapName,bi,ei,ne);fnSucc&&fnSucc(xmlDoc);},fnFail,fnError);};function replaceHtmlWithData(xData,sHtml,mapName,iAbsIndex,iRltIndex)
{var eData={"@abs(I)":iAbsIndex&&iAbsIndex.toString()||"0","@rlt(I)":iRltIndex&&iRltIndex.toString()||"0"};for(var i=0;i<mapName.length;++i)
{var vData=(mapName[i][0].constructor!=Array)?(eData[mapName[i][0]]||xData[mapName[i][0]]):([].concat(mapName[i][0]).transform(function(v){return(eData[v]||xData[v]);}));sHtml=sHtml.replace(new RegExp(mapName[i][1].escRegexp(),"g"),(mapName[i][2]?mapName[i][2](vData):vData).toString().replace(/\$/g,"$$$$"));}
return sHtml;};function showQQSHOWData(xData,oParent,sHtml,mapName,bi,ei,ne)
{(!bi||bi<0)&&(bi=0);(!ei||ei<0)&&(ei=xData.length);(!ne||ne<0)&&(ne=1);var sHtmlHd=sHtml.between("<%--HD--%>","<%--LB--%>");var sHtmlTl=sHtml.between("<%--LE--%>","<%--TL--%>");var sHtmlLB=sHtml.between("<%--LB--%>","<%--EB--%>");var sHtmlLE=sHtml.between("<%--EE--%>","<%--LE--%>");var sHtmlEM=sHtml.between("<%--EB--%>","<%--EE--%>");var aHtml=[];for(var i=bi;i<ei;i+=ne)
{aHtml.push(sHtmlLB);for(var n=0;n<Math.min(ei-i,ne);++n)
{aHtml.push(replaceHtmlWithData(xData[i+n],sHtmlEM,mapName,i+n,i-bi+n));}
aHtml.push(sHtmlLE);}
oParent.innerHTML=(sHtmlHd+aHtml.join("")+sHtmlTl).escNone();};function styleQQSHOWPage(nIndex,type)
{if(type)
{this.linkHtml=function(u,t){return t.toString().link(u);};this.activeHtml=function(u,t){return'<span class="important">'+t.toString().escHtml()+'</span>';};this.separate=function(){return('&nbsp;&nbsp;');};this.randomHtml=function(u,a){return('<form><p>跳到<input type="text" class="em" id="page_no" name="page_no"  maxlength="5" onkeydown="if(event.keyCode != 13) return;else {var v = parseInt(this.value,10);if((isNaN(v))||(v<=0||v>'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };return false;}" />页<button  onclick="var v=parseInt(this.parentNode.getElementsByTagName(\'INPUT\')[0].value, 10);if((isNaN(v))||(v<=0||v>'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };return false;"></button></p></form>');};this.prevHtml=function(u){return'<p class="page_main">'+(u?'<a href="'+u+'"title="上一页" class="prev">上一页</a>':'<span class="prev desc">上一页</span>');};this.nextHtml=function(u){return(u?'<a href="'+u+'" title="下一页" class="next">下一页</a></p>':'<span class="next desc">下一页</span></p>');};}
else
{this.linkHtml=function(u,t){return t.toString().link(u);};this.activeHtml=function(u,t){return'<a href="'+u.escMiniUrl().escHtmlEp()+'" class="em">'+t.toString().escHtml()+'</a>';};this.separate=function(){return('|');};this.positionHtml=function(n,a){return('第'+n+'/'+a+'页 ');};this.randomHtml=function(u,a){return(' 跳到<input type="text" id="page_no" name="page_no" class="page_no" size="3" maxlength="5" onkeydown="if(event.keyCode != 13) return;else {var v = parseInt(this.value,10);if((isNaN(v))||(v<=0||v>'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };void(0);}"/>页<a onclick="javascript:var v=parseInt(this.parentNode.getElementsByTagName(\'INPUT\')[0].value, 10);if((isNaN(v))||(v<=0||v>'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };void(0);" class="go_page"><img src="http://imgcache.qq.com/qqshow/v2_1/global/img/btn_go.gif" alt="GO" /></a>');};this.prevHtml=function(u){return(u?"上一页".link(u):"<a>上一页</a>");};this.nextHtml=function(u){return(u?"下一页".link(u):"<a>下一页</a>");};}};function showQQSHOWPage(pno,pall,fnUrl,oParent,nStyle,thin,type,showPageNum)
{if(type)
{showPageNum||(showPageNum=9);oParent.className="page_v2";pno=parseInt(pno);pall=parseInt(pall);var oStyle=new styleQQSHOWPage(nStyle,type);var aHtml=[];aHtml.push(oStyle.prevHtml((pno>1)&&fnUrl(pno-1)));var bi=1;var ei=pall;aHtml.push(pno==bi?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(bi),bi++));if(pall<=showPageNum)
{while(bi<=pall)
{aHtml.push(pno==bi?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(bi),bi++));}}
else
{if(pno>=showPageNum-3)
{aHtml.push("...");}
else
{bi=2;while(bi<(showPageNum-1))
{aHtml.push(pno==bi?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(bi),bi++));}
aHtml.push("...");}
if(pno>=(showPageNum-3)&&pall-pno>=(showPageNum-4))
{var iEnd=parseInt((showPageNum-4)/2);for(var iii=0-iEnd;iii<=iEnd;iii++)
{if(iii==0)
{aHtml.push(oStyle.activeHtml(fnUrl(pno+iii),pno+iii));}
else
{aHtml.push(oStyle.linkHtml(fnUrl(pno+iii),pno+iii));}}
aHtml.push("...");}
else if(pall-pno<(showPageNum-4))
{bi=pall-(showPageNum-3);while(bi<pall)
{aHtml.push(pno==bi?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(bi),bi++));}}
aHtml.push(pno==bi?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(pall),pall));}
aHtml.push(oStyle.nextHtml((pno<pall)&&fnUrl(pno+1)));var sTemp=aHtml.join(oStyle.separate())+oStyle.randomHtml(fnUrl,pall);oParent.innerHTML=sTemp.escNone();}
else
{if(thin)
{var iDisPage=thin;}else
{var iDisPage=pno<10?10:(pno<100?8:6);}
pno=parseInt(pno);pall=parseInt(pall);var oStyle=new styleQQSHOWPage(nStyle,type);var aHtml=[];aHtml.push(oStyle.prevHtml((pno>1)&&fnUrl(pno-1)));var bi=Math.min(Math.max(pno-iDisPage/2,1),Math.max(1,pall-iDisPage));var ei=Math.max(Math.min(pno+iDisPage/2,pall),Math.min(bi+iDisPage,pall));while(bi<=ei)
{aHtml.push(bi==pno?oStyle.activeHtml(fnUrl(bi),bi++):oStyle.linkHtml(fnUrl(bi),bi++));}
aHtml.push(oStyle.nextHtml((pno<pall)&&fnUrl(pno+1)));var sTemp=oStyle.positionHtml(pno,pall)+aHtml.join(oStyle.separate())+oStyle.randomHtml(fnUrl,pall);oParent.innerHTML=sTemp.escNone();}};function QQSHOW_CreateFlashObject(sHtml)
{document.write(sHtml.escNone());};function QQSHOW_setFlashObject(sHtml,oParent)
{oParent.innerHTML=sHtml.escNone();};function QQSHOW_avShow(sShow,iW,iH)
{var nStyle=(sShow.match(/V1#[MFU]_0_/)?0:1);var w=iW||[140,186][nStyle];var h=iH||[226,300][nStyle];var mapName=[["[@_W]",w],["[@_H]",h],["[@_SHOW]",escape(sShow)]];var sHtml='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="[@_W]" height="[@_H]">  <param name="movie" value="http://qqshow2-item.qq.com/1000000/53/02/" />  <param name="quality" value="high" />  <param name="flashvars" value="sItems=[@_SHOW]">  <param name="wmode" value="transparent">  <param name="allowScriptAccess" value="always" />  <embed src="http://qqshow2-item.qq.com/1000000/53/02/" flashvars="sItems=[@_SHOW]" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" width="[@_W]" height="[@_H]"></embed></object>';for(var i=0;i<mapName.length;++i)
{sHtml=sHtml.replace(new RegExp(mapName[i][0].escRegexp(),"g"),mapName[i][1]);}
return sHtml;};function QQSHOW_photo(sShow,iW,iH)
{var nStyle=(sShow.match(/V1#[MFU]_0_/)?0:1);var w=iW?iW:280;var h=iH?iH:226;var mapName=[["[@_W]",w],["[@_H]",h],["[@_SHOW]",escape(sShow)]];var sHtml='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="[@_W]" height="[@_H]">  <param name="movie" value="http://qqshow2-item.qq.com/1000000/55/02/" />  <param name="quality" value="high" />  <param name="flashvars" value="sItems=[@_SHOW]&mode=0">  <param name="wmode" value="transparent">  <param name="allowScriptAccess" value="always" />  <embed src="http://qqshow2-item.qq.com/1000000/55/02/" flashvars="sItems=[@_SHOW]&mode=0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" width="[@_W]" height="[@_H]"></embed></object>';for(var i=0;i<mapName.length;++i)
{sHtml=sHtml.replace(new RegExp(mapName[i][0].escRegexp(),"g"),mapName[i][1]);}
return sHtml;};function QQSHOW_firendListShow(itemNo,iW,iH)
{var w=iW?iW:280;var h=iH?iH:226;var mapName=[["[@_W]",w],["[@_H]",h],["[@_itemno]",escape(itemNo)]];var sHtml='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="[@_W]" height="[@_H]" id="mlist_flash" align="middle"> <param name="movie" value="/qqshow_v3/htdocs/img/swf/qqshow_friendlist.swf" />       <param name="quality" value="best" />  <param name="flashvars" value="itemno=[@_itemno]"> <param name="wmode" value="transparent"> <param name="bgcolor" value="#ffffff" />  <param name="allowScriptAccess" value="always" /> <embed src="/qqshow_v3/htdocs/img/swf/qqshow_friendlist.swf" flashvars="itemno=111" quality="high" bgcolor="#ffffff" width="500" height="350" name="mlist_club_qqshowurl" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" /> ';for(var i=0;i<mapName.length;++i)
{sHtml=sHtml.replace(new RegExp(mapName[i][0].escRegexp(),"g"),mapName[i][1]);}
return sHtml;};function QQSHOW_commonFlash(swf,iW,iH,arrVar)
{var sVar="";if(typeof(arrVar)=="undefined")
arrVar=[];if(arrVar.length>0)
{sVar=arrVar.join('&');}
var mapName=[["[@_W]",iW],["[@_H]",iH],["[@_swf]",swf],["[@_var]",sVar]];var sHtml='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="[@_W]" height="[@_H]" id="mlist_flash" align="middle"> <param name="movie" value="[@_swf]" />       <param name="quality" value="best" />  <param name="wmode" value="transparent"> <param name="bgcolor" value="#ffffff" />  <param name="allowScriptAccess" value="always" /> <param name="flashvars" value="[@_var]"> <embed src="[@_swf]" quality="high" bgcolor="#ffffff" width="[@_W]" height="[@_H]" name="mlist_club_qqshowurl" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="[@_var]"/> ';for(var i=0;i<mapName.length;++i)
{sHtml=sHtml.replace(new RegExp(mapName[i][0].escRegexp(),"g"),mapName[i][1]);}
return sHtml;};function QBPrice(nQPoint)
{var iPrice=parseInt(nQPoint?nQPoint:"0",10)||0;return(parseInt(iPrice/10)+"."+parseInt(iPrice%10));};function GetUin()
{return(parseInt(getCookie('uin').match(/\d+/),10)||0);};function SEX(v)
{return(v=="M"||v=="m"||v==1)?"M":(v=="U"||v=="u"||v==0)?"U":"F";};function SEX_reverse(v)
{return SEX(v)=="F"?"M":"F";};function SexWord(v)
{return(SEX(v)=="M")?"(男)":(v=="F"?"(女)":"");};function LENFix(i,n)
{var sRet=i.toString();while(sRet.length<n)
{sRet="0"+sRet;}
return sRet;};var QSCART_Name="CART";var QSCART_SND="CART_SND";var QSVIPCART_Name="CART_Free";var SENDMSG_Name="SndMsg";function EQCartItem(_1,_2)
{return(_1[1]==_2[1]&&_1[6]==_2[6]);};function EncodeCart(aSet)
{aSet[0]=!aSet[0]?"":aSet[0].toString().replace(/[#\|%]/g,function(a,b){return"%"+a.charCodeAt(0).toString(16);});aSet[7]=!aSet[7]?"":aSet[7].toString().replace(/[#\|%]/g,function(a,b){return"%"+a.charCodeAt(0).toString(16);});aSet[8]=!aSet[8]?"":aSet[8].toString().replace(/[#\|%]/g,function(a,b){return"%"+a.charCodeAt(0).toString(16);});return aSet.join("|");};function DecodeCart(sSet)
{var aSet=sSet.split("|");aSet[0]=unescape(aSet[0]);aSet[1]=parseInt(aSet[1]);aSet[2]=parseInt(aSet[2]);aSet[3]=parseInt(aSet[3]);aSet[4]=parseInt(aSet[4]);aSet[5]=parseInt(aSet[5]);aSet[6]=parseInt(aSet[6]);aSet[7]=unescape(aSet[7]);aSet[8]=unescape(aSet[8]);aSet[9]=unescape(aSet[9]);return aSet;};function CartString(aCart)
{return[].concat(aCart).transform(EncodeCart).join("#");}
function CartVector(sCart)
{return sCart.split("#").transform(DecodeCart);};function saveCart(aCart)
{var oldCart=getCart();QSCookie(QSCART_Name,"",-1);var bRet=QSCookie(QSCART_Name,CartString(aCart));if(!bRet)
{QSCookie(QSCART_Name,CartString(oldCart));}
if(!bRet&&!saveCart._alert&&(saveCart._alert=true))
{alert("对不起，您的购物车已满，请删除一些后继续购买。");}
setHeaderCartNum();return bRet;};function saveSndCart(aCart)
{QSCookie(QSCART_SND,"",-1);var bRet=QSCookie(QSCART_SND,CartString(aCart));if(!bRet)
{alert("对不起，您的购物车已满，请删除一些后继续购买。");}
return bRet;};function saveVipCart(aCart)
{QSCookie(QSVIPCART_Name,CartString(aCart));setHeaderCartNum();};function _saveCart(aCart,sName)
{if(sName==QSCART_Name)
return saveCart(aCart);else if(sName==QSCART_SND)
return saveSndCart(aCart);else if(sName==QSVIPCART_Name)
return saveVipCart(aCart);}
function countCartNum()
{var aPrice=getCartPrice();return(aPrice[3]);}
function _getCart(sName)
{var sCart=getCookie(sName);if(sCart){return CartVector(sCart);}
return[];}
function getCart()
{return _getCart(QSCART_Name);};function getSndCart()
{return _getCart(QSCART_SND);};function getVipCart()
{return _getCart(QSVIPCART_Name);};function getMsgIndex(sMessage)
{var sSndMsg=getCookie(SENDMSG_Name);var aMsg=sSndMsg.split("|");if(sSndMsg.length==0)
{aMsg.length=0;}
for(var i=0;i<aMsg.length;i++)
{if(aMsg[i]==sMessage)
return i;}
aMsg.push(sMessage);QSCookie(SENDMSG_Name,aMsg.join("|"));return aMsg.length-1;};function _setCart(aSet,sName)
{if(sName==QSVIPCART_Name)
{var aCart=getVipCart();if(aCart.find_if(function(e){return EQCartItem(e,aSet);})==null)
{if(aCart.length>=20)
{return false;}
aCart.push(aSet);return saveVipCart(aCart);}
return true;}
else
{var aCart=_getCart(sName);if(aCart.find_if(function(e){return EQCartItem(e,aSet);})==null)
{if(aCart.length>=20)
{return false;}
aSet[7]=getMsgIndex(aSet[7]);aCart.push(aSet);return _saveCart(aCart,sName);}
return true;}};function setCart(aSet)
{return _setCart(aSet,QSCART_Name);};function setSndCart(aSet)
{return _setCart(aSet,QSCART_SND);};function setVipCart(aSet)
{return _setCart(aSet,QSVIPCART_Name);};function _incCart(aSet,sName)
{var aCart=_getCart(sName);var afind=aCart.find_if(function(e){return EQCartItem(e,aSet);});if(afind!=null)
{aCart[afind][2]+=aSet[2];if(aCart[afind][2]<=0)
{aCart.splice(afind,1);}
else if(aCart[afind][2]>10&&sSet[2]>0)
{return true;}
return _saveCart(aCart,sName);}
else
{if(aSet[2]<=0)
{return true;}
return _setCart(aSet,sName);}};function incCart(aSet)
{return _incCart(aSet,QSCART_Name);};function incSndCart(aSet)
{return _incCart(aSet,QSCART_SND);};function incVipCart(aSet)
{return _incCart(aSet,QSVIPCART_Name);};function clsCart()
{saveCart([]);};function clsSndCart()
{saveSndCart([]);};function clsVipCart()
{saveVipCart([]);};function getCartPrice(aCart)
{var aCart=arguments[0]||getCart();var aPrice=[0,0,aCart.length,0];for(var i=0;i<aCart.length;++i)
{aPrice[0]+=aCart[i][3]*aCart[i][2];aPrice[1]+=aCart[i][4]*aCart[i][2];aPrice[3]+=aCart[i][2];}
return aPrice;};function getVipCartPriceInfo(aCart)
{var aCart=arguments[0]||getVipCart();var aPrice=[0,0,aCart.length,0];for(var i=0;i<aCart.length;++i)
{aPrice[0]+=aCart[i][3]*aCart[i][2];aPrice[1]+=aCart[i][4]*aCart[i][2];aPrice[3]+=aCart[i][2];}
return aPrice;};function updateHeaderInfo()
{if(top.topfra)
{try{top.topfra.updateMsg();}catch(e){}}};function setHeaderCartNum()
{if(top.topfra)
{if(top.topfra.document&&top.topfra.document.getElementById("cart_num"))
{var nlen=countCartNum();var sMessage="";sMessage+="<span>购物车</span>("+nlen+")";top.topfra.document.getElementById("cart_num").innerHTML=sMessage.escNone();updateHeaderInfo();}
else
{setTimeout(setHeaderCartNum,1000);}}};function SelectAppendOption(oSelect,bi,ei,nlen)
{if(bi>ei)
{for(var i=bi;i>=ei;--i)
{oSelect.options[oSelect.options.length]=(new Option(LENFix(i,nlen),LENFix(i,nlen)));}}
else
{for(var i=bi;i<=ei;++i)
{oSelect.options[oSelect.options.length]=(new Option(LENFix(i,nlen),LENFix(i,nlen)));}}};function SelectYearOption(oSelect,bi,ei,nlen)
{return SelectAppendOption(oSelect,bi,ei,nlen);};function SelectMonthOption(oSelect,nlen)
{return SelectAppendOption(oSelect,1,12,2);};function SelectDayOption(oSelect,y,m,nlen)
{return SelectAppendOption(oSelect,1,DAYOfMonth(y,m),nlen);};function ShowUnsupport()
{if(top.mainfra)
top.mainfra.getFloatShow(sParDir+'/inc/note.html',500,198);else
getFloatShow(sParDir+'/inc/note.html',500,198);}
function ShowLogin()
{var height=360,width=410,px=null,py=null;if(arguments[0])
{width=arguments[0];}
if(arguments[1])
{height=arguments[1];}
if(arguments[2])
{px=arguments[2];}
else
{if(_MSIE())
{px=0;}}
if(arguments[3])
{py=arguments[3];}
else
{if(_MSIE())
{py=-100;}}
var sUrl="http://show.qq.com/index_v3.html";if(arguments[4])
{sUrl=arguments[4];}
var isTopPage=false;if(typeof(top.mainfra)=="object")
{isTopPage=true;}
if(isTopPage)
{sUrl=top.mainfra.location.toString();}
else
{sUrl=window.location.toString();}
CheckUrlCredit(sUrl)||(sUrl="http://show.qq.com/index_v3.html?");if(!checkEvn()&&sUrl.indexOf("&type=live")==-1&&sUrl.indexOf("http://show.qq.com")>0)
{if(sUrl.indexOf("?")==-1)
{sUrl+="?";}
sUrl+="&type=live";}
if(!checkEvn()&&(typeof(top.g_bQQShow2Frame)=='boolean')&&top.g_bQQShow2Frame)
{if(sUrl.indexOf("?")==-1)
{sUrl+="?";}
sUrl+="&g_secFrame=2";}
var tUrl=top.location.toString();if((tUrl.indexOf("http://show.qq.com/shop/")!=-1)||(tUrl.indexOf("http://show.qq.com/vip/")!=-1)||(tUrl.indexOf("http://show.qq.com/brand/")!=-1)||(tUrl.indexOf("http://show.qq.com/happy/")!=-1))
{try
{var aMap=top.window.__ad_data__||[];var vSplit=tUrl.split("/");var iIndex=aMap.find_if(function(v){return v[0][0]==vSplit[4]});if(iIndex!=null)
{if(aMap[iIndex][2][0]=="mainfra")
{var vLocat=top.mainfra.location.toString().split(/[?#]/);var vMapData=aMap[iIndex][1][0].split(/[?#]/);if(vLocat[0]==vMapData[0])
{if(vLocat[0]=="http://imgcache.qq.com/qqshow_v3/htdocs/mall/inc/item_clothes.html")
{var _1=getURLParam("mallno",top.mainfra.location.toString());var _2=getURLParam("mallno",aMap[iIndex][1][0]);if(_1==_2)
{sUrl=tUrl;}}
else if(vLocat[0]=="http://imgcache.qq.com/qqshow_v3/htdocs/mall/inc/search.html")
{var _s2=aMap[iIndex][1][0].substr(aMap[iIndex][1][0].indexOf("#"));var _1=getHashParam("search_str",top.mainfra.location);var _2=getParam(unescape(_s2.substr(1)),"search_str","&","=");if(_1==_2)
{sUrl=tUrl;}}
else
{sUrl=tUrl;}}}}}
catch(e)
{}}
QSCookie("onkeylogin",sUrl);var myurl="http://imgcache.qq.com/qqshow_v3/htdocs/inc/loginto.html?myurl="+escape(sUrl);var url="http://ui.ptlogin2.qq.com/cgi-bin/login?appid=10000101";url+="&s_url="+escape(myurl).substring(0,1000);url+="&target=self";url+="&f_url=loginerroralert&hide_title_bar=1&link_target=blank&qlogin_jumpname=qqshow_main";var shtml='<table id="w_head" onmousedown="dragstart(this.parentNode,event)"><tr><td><div class="dialog login"  id="w_head"><div class="box_title"  ><h1>登录</h1></div><div class="box_content" id="login_div" ><iframe onload="checkComplete();" id="login_frame" scrolling="no" frameborder="0" width="98%"  allowtransparency="true" src="'+url+'"></iframe><div style="text-align:center;padding:5px 0;margin:0;font-size:12px;color:#666;*display:none;" id="accept_check"><input type="checkbox" checked="checked" id="fwtk">同意<a href="http://show.qq.com/inc/ser_term.html" target="_blank">服务条款</a></div></div><p class="close" onclick="FloatShow.OnCancel();"><a href="javascript:void(0);"><button type="button" title="关闭">关闭</button></a></p><div class="q"></div><div class="e"></div><div class="z"></div><div class="c"></div></div></td></tr></table><div id="d_border" style="display:none;border:1px dotted #000000; position:absolute;"></div>';if(isTopPage)
{top.mainfra.getFloatShow(sUrl,width,height,null,null,100,100,null,null,null,shtml);}
else
{getFloatShow(sUrl,width,height,null,null,100,100,null,null,null,shtml);}};function checkComplete()
{var login_frame=window.frames["login_frame"];if(login_frame)
{var newswitchPage=login_frame.onClickQLogin;login_frame.onClickQLogin=function()
{if(!$("fwtk").checked)
{alert("请先同意服务条款")
return false;}
else
{newswitchPage();}}}}
function ptlogin2_onLogin()
{if(!$("fwtk").checked)
{alert("请先同意服务条款")
return false;}
return true;}
function ptlogin2_onResize(width,height)
{$("accept_check").style.display="block";login_wnd=$("login_div");login_wnd.style.display="block";if(login_wnd)
{if(_MSIE())
{if(height<285&&height>300)
{height=300;}
if(height<250||height>280)
{height=250;}
$("login_frame").style.height="100%";}
else
{if(height<260)
{height=250;}
$("login_frame").style.height="90%";}
$("login_frame").style.height=height+"px";}}
var UIN_MIN=10000;var UIN_MAX=1999999999;var UIN_BEGIN=10000;var UIN_END=2000000000;function ChkUin(uin)
{if(typeof(uin)=="number")
{return(uin>=UIN_MIN&&uin<=UIN_MAX)?true:false;}
if(!uin)
{return false;}
var sUin=uin.toString();return((/^\s*[123456789][\d]{4,8}\s*$/).test(sUin)||(/^\s*1[\d]{9}\s*$/).test(sUin))?true:false;};function CheckLogin(iProcType,url,target)
{var iUin=GetUin();if(!ChkUin(iUin))
{var loginUrl='http://imgcache.qq.com/qqshow_v3/htdocs/inc/login_box.html'
var loginUrlTop='http://imgcache.qq.com/qqshow_v3/htdocs/inc/login_box.html'
if(url&&url.length>0)
{if(target&&target=="top")loginUrl=setURLParam(loginUrl,"url",url);else
{if((url.indexOf("/inc/main.html")!=-1)||(url.indexOf("/inc/main_c.html")!=-1)||(url.indexOf("/inc/main.html")!=-1))
loginUrl=setURLParam(loginUrl,"url",setURLParam("http://show.qq.com/index_v3.html","MUrl",url));else
loginUrl=setURLParam(loginUrl,"url",setURLParam("http://show.qq.com/show_v3.html","MUrl",url));}
if(target&&target=="top")loginUrlTop=setURLParam(loginUrlTop,"url",url);else
{if((url.indexOf("/inc/main.html")!=-1)||(url.indexOf("/inc/main_c.html")!=-1)||(url.indexOf("/inc/main.html")!=-1))
loginUrlTop=setURLParam(loginUrlTop,"url",setURLParam("http://show.qq.com/index_v3.html","MUrl",url));else
loginUrlTop=setURLParam(loginUrlTop,"url",setURLParam("http://show.qq.com/show_v3.html","MUrl",url));}}
else if(top.mainfra)
{if((top.mainfra.location.href.indexOf("/inc/main.html")!=-1)||(top.mainfra.location.href.indexOf("/inc/main_c.html")!=-1)||(top.mainfra.location.href.indexOf("/inc/main.html")!=-1))
loginUrl=setURLParam(loginUrl,"url",setURLParam("http://show.qq.com/index_v3.html","MUrl",top.mainfra.location.href));else
loginUrl=setURLParam(loginUrl,"url",setURLParam("http://show.qq.com/show_v3.html","MUrl",top.mainfra.location.href));}
if(iProcType==1)
{if(confirm("您还没有登录，是否登录？"))
{if(top.mainfra&&typeof(top.mainfra.ShowLogin)=="function")
{top.mainfra.ShowLogin();}
else if(typeof(ShowLogin)=="function")
{ShowLogin();}
else
{location=loginUrlTop;}
return false;}}
else if(2==iProcType)
{if(confirm("您还没有登录，是否登录？"))
{if((top.mainfra&&typeof(top.mainfra.getFloatShow)=="function")||typeof(getFloatShow)=="function")
ShowLogin();else
location=loginUrlTop;return false;}
else
{if(top.mainfra)top.mainfra.location.href=sParDir+'/inc/main.html';else location="http://show.qq.com/index_v3.html";return false;}}
else return false;}
return iUin;};function QQShowCommREQError()
{alert("请求失败，请稍候再试。");};function QQShowCommXMLError(xmlDoc)
{var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");var sMessage=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("message");if(iCode==-1100||iCode==-1003)
{return alert("操作失败，请稍候再试。");}
else if(iCode==-1001)
{return!QQShowCommXMLError._onlogin&&(QQShowCommXMLError._onlogin=true)&&confirm("对不起，您还没登录，现在登录？")&&ShowLogin()&&0;}
else if(iCode==-1002)
{return alert("您输入的参数有错，请重新输入，谢谢。");}
else if(iCode==-1004)
{return alert("对不起，您操作太频繁，请稍候再试。");}
else if(iCode==-1005)
{return alert("对不起，您还没注册QQ秀。");}
else if(iCode==-1006)
{return alert("对不起，您的好友还没有注册QQ秀！");}
else if(iCode==-1007)
{return alert("对不起，对方不是您的7天好友！");}
else if(iCode==-1008)
{return alert("对不起，您不是对方的7天好友！");}
return true;};function goCartWithLocation()
{var sUrl=sParDir+"/mall/inc/cart.html#pmSelect%3DACC";goToCart(sUrl);};function goToCartFromSave()
{var sUrl=sParDir+"/mall/inc/cart.html#"+escape("saveav=1");goToCart(sUrl);};function goToCart(sUrl)
{var win=top.mainfra||window;if(win.location.href.indexOf("/mall/inc/cart.html")==0)
{win.location.reload();return;}
else if(win.location.href.indexOf("/mall/inc/cart.html")!=-1)
{win.location.reload();}
else
{QSCookie("mallloc",win.location.href);win.location=sUrl;}};function goMallWithLocation()
{var win=top.mainfra||window;if((getCookie("mallloc").length>0)&&(getCookie("mallloc").indexOf("/my/inc")==-1))
{win.location=getCookie("mallloc");}
else
{history.back();}};function Buy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom)
{if(CheckLogin(1))
{if(iVipItem==1&&QUSER.getInfo("vip")!=1)
{alert("您不是红钻用户，不能购买红钻物品["+sName+"]");}
else
{if(!setCart([sName,iNo,1,iPrice,iPriceVip,0,0,"",vFrom?vFrom.toString():"",iVipItem]))
{alert("您的购物车已满，请支付后继续购物。");}
goCartWithLocation();}}};function Send(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iSpecial)
{if(CheckLogin(1))
{if(iVipItem==1&&QUSER.getInfo("vip")!=1)
{alert("您不是红钻用户，不能赠送红钻物品["+sName+"]");return;}
else
{function OnOK(x)
{var _Prm=new PARAM(x,"&","=");setCart(DecodeCart(_Prm["info"]));alert("成功支付后自动赠送!");goCartWithLocation();};var aParam=[sName,iNo,1,iPrice,iPriceVip,iVipItem,0,"",vFrom?vFrom.toString():"",iVipItem];if(iSpecial&&iSpecial==1)
{getFloatShow(sParDir+"/mall/inc/don.html?info="+EncodeCart(aParam).escUrl(),404,304,OnOK,null,50,-10);}
else
{getFloatShow(sParDir+"/mall/inc/don.html?info="+EncodeCart(aParam).escUrl(),404,304,OnOK);}}}};function Ask(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iSpecial)
{if(CheckLogin(1))
{if(iVipItem==1&&QUSER.getInfo("vip")!=1)
{alert("您不是红钻用户，不能索要红钻物品["+sName+"]");}
else
{var aParam=[sName,iNo,1,iPrice,iPriceVip,iVipItem,0,"",vFrom?vFrom.toString():"",iVipItem];if(iSpecial&&iSpecial==1)
{getFloatShow(sParDir+"/mall/inc/req.html?info="+EncodeCart(aParam).escUrl(),404,304,null,null,50,-10);}
else
{getFloatShow(sParDir+"/mall/inc/req.html?info="+EncodeCart(aParam).escUrl(),404,304);}}}};function ItemCollectionAdd(ino)
{function showSuccTips()
{if(top&&top.leftfra&&top.leftfra.FavSuccessTips)
top.leftfra.FavSuccessTips();}
function onResp(xmlDoc)
{MaskEnd([top.mainfra,top.leftfra,top.topfra]);if(QQShowCommXMLError(xmlDoc))
{var node=xmlDoc.getElementsByTagName("QQSHOW")[0];var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");var mapCodeMessage={"-1":"收藏物品号无效","-10":"该物品已经在收藏中"};if(iCode==0)
{try{top.mainfra.getFloatShow('/qqshow_v3/htdocs/mall/inc/alert_fav_success.html',506,450,null,showSuccTips,40,-50);}catch(e){alert("收藏成功");};}
else if(mapCodeMessage[iCode])
{try{top.mainfra.getFloatShow('/qqshow_v3/htdocs/mall/inc/alert_fav_fail.html#msg='+mapCodeMessage[iCode].escape(),451,231,null,null,150,100);}catch(e){alert("操作失败["+mapCodeMessage[iCode]+"]");};}
else
{alert("操作失败"+DebugMessage(iCode));}}};function onError()
{MaskEnd([top.mainfra,top.leftfra,top.topfra]);alert("操作失败");};if(CheckLogin(1))
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemcollection_add?item="+ino,onResp,onResp,onError);}};function ItemCollectionDel(ino,fnCallBack)
{if(!confirm("确定删除吗？"))
{return;}
function onResp(xmlDoc)
{setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])",1000);var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(iCode==0)
{}
else if(QQShowCommXMLError(xmlDoc))
{alert("操作失败");}
fnCallBack&&fnCallBack(xmlDoc);};function onError()
{setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])",1000);alert("操作失败");};if(CheckLogin(1))
{MaskStart([top.mainfra,top.leftfra,top.topfra]);getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemcollection_del?item="+ino,onResp,onResp,onError);}};function ShowCollectionAdd(vData,fnCallBack)
{function showSuccTips()
{if(top&&top.leftfra&&top.leftfra.FavSuccessTips)
{top.leftfra.FavSuccessTips();}}
function onResp(xmlDoc)
{MaskEnd([top.mainfra,top.leftfra,top.topfra]);if(QQShowCommXMLError(xmlDoc))
{var node=xmlDoc.getElementsByTagName("QQSHOW")[0];var iCode=node.getAttribute("code");var sName=node.getAttribute("itemname");var mapCodeMessage={"-20":"当前形象中有游戏秀物品，不能收藏","-23":"原始形象不能收藏","-25":"整套收藏时，身上物品不能超过20件，请您删除为20件以下再进行收藏。","-26":"当前形象内"+(sName?"的物品["+sName+"]":"有")+"与您的形象性别不一致，请脱下后再收藏。","-27":"当前形象内"+(sName?"的物品["+sName+"]":"有")+"与您的形象风格不一致，请脱下后再收藏。","-103":"当前形象中有合影秀物品，不能收藏"};if(iCode==0)
{try{top.mainfra.getFloatShow(sParDir+'/mall/inc/alert_fav_success.html?show='+(hasface?2:(hasQii?3:1)),506,450+((hasface>0||hasQii>0)?40:0),null,showSuccTips,0,0);}catch(e){alert("收藏成功");};fnCallBack&&fnCallBack(0);}
else if(mapCodeMessage[iCode])
{alert("操作失败["+mapCodeMessage[iCode]+"]");fnCallBack&&fnCallBack(-1);}
else
{alert("操作失败"+DebugMessage(iCode));fnCallBack&&fnCallBack(-1);}}};function onError()
{MaskEnd([top.mainfra,top.leftfra,top.topfra]);alert("操作失败");fnCallBack&&fnCallBack(-1);};if(arguments[0][0].length==0)
{return alert("参数错误");}
var sShow=arguments[0][0];var hasface=HasSpecTypeItem(sShow,102);var hasQii=false;if(!hasface)
hasQii=HasSpecTypeItem(sShow,104);var sName=arguments[0][1]||"我的收藏";var sTags=arguments[0][2]||"";var sDesc=arguments[0][3]||"";var iType=arguments[0][4]||0;var sUrl=setURLParam("http://show.qq.com/cgi-bin/qqshow_user_showcollection_add","show",huffcompress(sShow));sUrl=setURLParam(sUrl,"name",sName);sUrl=setURLParam(sUrl,"tags",sTags);sUrl=setURLParam(sUrl,"desc",sDesc);sUrl=setURLParam(sUrl,"type",iType);MaskStart([top.mainfra,top.leftfra,top.topfra]);getQQSHOWXml(sUrl,onResp,onResp,onError);};function ShowCollectionSet(vData,fnCallBack,vWndMask)
{vWndMask||(vWndMask=[top.mainfra,top.leftfra,top.topfra]);function onResp(xmlDoc)
{setTimeout(function(){MaskEnd(vWndMask);},1000);if(QQShowCommXMLError(xmlDoc))
{var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");var mapCodeMessage={"-11":"作品名称中含有不能发表的内容","-12":"作品名称不能为空","-13":"作品描述中含有不能发表的内容","-14":"标签中含有不能发表的内容"};if(iCode==0)
{alert("保存成功");fnCallBack&&fnCallBack(0);}
else if(mapCodeMessage[iCode])
{alert("操作失败["+mapCodeMessage[iCode]+"]");fnCallBack&&fnCallBack(-1);}
else
{alert("操作失败"+DebugMessage(iCode));fnCallBack&&fnCallBack(-1);}}};function onError()
{setTimeout(function(){MaskEnd(vWndMask);},1000);alert("操作失败");fnCallBack&&fnCallBack(-1);};if(CheckLogin(1))
{if(!(arguments[0][0]>=0))
{return alert("参数错误");fnCallBack&&fnCallBack(-1);}
var iID=arguments[0][0];var sName=arguments[0][1]||"我的收藏";var sTags=arguments[0][2]||"";var sDesc=arguments[0][3]||"";var iType=arguments[0][4]||0;var sUrl=setURLParam("http://show.qq.com/cgi-bin/qqshow_user_showcollection_set","id",iID);sUrl=setURLParam(sUrl,"name",sName);sUrl=setURLParam(sUrl,"tags",sTags);sUrl=setURLParam(sUrl,"desc",sDesc);sUrl=setURLParam(sUrl,"type",iType);MaskStart(vWndMask);getQQSHOWXml(sUrl,onResp,onResp,onError);}};function ShowCollectionDel(iID,fnCallBack)
{if(!confirm("确定删除吗？"))
{return;}
function onResp(xmlDoc)
{setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])",1000);var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(iCode==0)
{}
else if(QQShowCommXMLError(xmlDoc))
{alert("操作失败");}
fnCallBack&&fnCallBack(xmlDoc);};function onError()
{setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])",1000);alert("操作失败");};if(CheckLogin(1))
{MaskStart([top.mainfra,top.leftfra,top.topfra]);getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_del?id="+iID,onResp,onResp,onError);}};function ShowCollectionPrepare(sShow)
{if(CheckLogin(1))
{var sItemSn="";var oQSAV=null;if(sShow){sItemSn=sShow;oQSAV=new QQSHOWAV();oQSAV.FromItemSn(sItemSn);}
else{oQSAV=document.getElementById(g_sAVId).cQSAV;sItemSn=oQSAV.ToItemSn(0,0,0);}
if(HasSpecTypeItem(sItemSn,101)){alert("您收藏的形象中包含游戏秀物品，不能进行收藏！");return;}
if(HasSpecTypeItem(sItemSn,103))
{alert("您收藏的形象中包含相片秀物品，不能进行收藏！");return;}
var facecount=SpecTypeItemCount(sItemSn,102);var qiicount=SpecTypeItemCount(sItemSn,104);var count=SpecTypeItemCount(sItemSn,3)+SpecTypeItemCount(sItemSn,4)+facecount+qiicount;var itemNum=oQSAV.ItemCount();var itemNum=itemNum-count;if(itemNum==0)
{if(facecount!=0)
{return alert("您收藏的形象中仅有真脸头像，不能进行收藏。请选择其他QQ秀衣服再试。");}
else if(qiicount!=0)
{return alert("您收藏的形象中仅有DIY头像，不能进行收藏。请选择其他QQ秀衣服再试。");}
else
{return alert("原始形象不可以收藏哦。");}}
else if(itemNum>20)
{alert("身上物品超过了20件，请您删除一些再收藏。");return;}
sItemSn=filterForSpecItem(sItemSn,3);sItemSn=filterForSpecItem(sItemSn,4);ShowCollectionAdd([sItemSn,"我的收藏","","",0]);}};function PutOn(iItemNo,chSex,sPlyNo,iFStl,bPoseBind,iDefX,iDefY,bMov,bRot,bSelc,bSpecail,sText,sMallNo)
{top.leftfra&&top.leftfra.ShopTryItem&&top.leftfra.ShopTryItem(iItemNo,chSex,sPlyNo,iFStl,bPoseBind,iDefX,iDefY,bMov,bRot,bSelc,bSpecail,sText,sMallNo);};function PutOnShow(sShow,sFrom)
{top.leftfra&&top.leftfra.TryOnShow&&top.leftfra.TryOnShow(sShow,sFrom);};function ReturnMallNo()
{return top.g_iMallNo;}
function DivCreate(oWin,oParent,sID,zIndex,iLeft,iTop,sWidth,sHeight,sDisplay)
{if(!CheckAcess(oWin))
return null;if(oWin&&oWin.document&&!oWin.document.getElementById(sID))
{var e=oWin.document.createElement("DIV");e.id=sID;e.style.position="absolute";if(zIndex)
{e.style.zIndex=zIndex;}
e.style.left=iLeft;e.style.top=iTop;if(sWidth)
{e.style.width=sWidth;}
if(sHeight)
{e.style.height=sHeight;}
if(sDisplay)
{e.style.display=sDisplay;}
try{oParent&&oParent.appendChild(e);}catch(ev){}
return e;}
if(oWin.document.getElementById(sID))return oWin.document.getElementById(sID);else return null;};function PageMaskCreate(oWin)
{if(CheckAcess(oWin))
{if(!oWin.document.getElementById("ID_QQSHOW_WAIT_BACKGND"))
{var ebg=DivCreate(oWin,oWin.document.body,"ID_QQSHOW_WAIT_BACKGND",null,0,0,null,"100%",null);if(!ebg)
return null;ebg.innerHTML='<iframe></iframe>';ebg.className="bg_body_dis";ebg.style.position="";return ebg;}
else
{return oWin.document.getElementById("ID_QQSHOW_WAIT_BACKGND");}}
else
return null;};function ProcessCreate(oWin)
{if(CheckAcess(oWin))
{if(!oWin.document.getElementById("ID_QQSHOW_WAIT_PROCESS"))
{var epr=DivCreate(oWin,oWin.document.body,"ID_QQSHOW_WAIT_PROCESS",65530,0,0,"100%","100%","none");if(!epr)
return null;epr.innerHTML='<p class="loading important">读取中...</p>';return epr;}
else
{return oWin.document.getElementById("ID_QQSHOW_WAIT_PROCESS");}}
else return null;};function PageMaskShow(oWin)
{var _arguments=arguments;if(!CheckAcess(oWin))
{window.iPageMaskShow=function()
{setPageMaskShow.call(this,$A(_arguments));}
setTimeout(iPageMaskShow,600);return;}
setPageMaskShow(oWin);};function checkScroll(no)
{if(CheckAcess(top.leftfra))
{var sideFrame=top.document.getElementById("sideFrame");if(sideFrame&&_MSIE())
{if(!no)
{top.leftfra.document.getElementsByTagName('body')[0].style.overflow="hidden";sideFrame.scrolling="no";}
else
{sideFrame.scrolling="auto";top.leftfra.document.getElementsByTagName('body')[0].style.overflow="";}}}};function setPageMaskShow(oWin)
{var ex=PageMaskCreate(oWin);if(ex)
{ex.style.display="block";var len=screen.height;if(_MSIE())
{ex.style.height=Math.max(Math.max((oWin.document.body.offsetHeight),oWin.document.body.scrollHeight),len)+"px";}
else
{ex.style.height=Math.max(Math.max((oWin.document.documentElement.offsetHeight),oWin.document.documentElement.scrollHeight),len)+"px";}}
checkScroll(false);}
function ProcessShow(oWin,lTxt)
{var e=ProcessCreate(oWin);if(e&&oWin.document.body)
{e.style.height=(oWin.document.body.scrollHeight)+"px";e.style.display="block";}};function PageMaskHide(oWin)
{if(!CheckAcess(oWin))
return;var e=oWin.document.getElementById("ID_QQSHOW_WAIT_BACKGND")
if(e)
{e.style.display="none";checkScroll(true);}};function ProcessHide(oWin)
{var e=ProcessCreate(oWin);if(!e)
return;e.style.display="none";checkScroll(true);};function MaskStart(lWin)
{var wind;var list=arguments[0];for(var i=0;i<list.length;++i)
{if(CheckAcess(list[i]))
{PageMaskShow(list[i]);}}};function MaskEnd(lWin)
{for(var i=0;i<arguments[0].length;++i)
{try{if(typeof(arguments[0][i])!="undefined")
{PageMaskHide(arguments[0][i]);}}catch(e){}}
checkScroll(true);};function WaitStart(lWin,lTxt,bTxt)
{for(var i=0;i<arguments[0].length;++i)
{if(CheckAcess(arguments[0][i]))
{PageMaskShow(arguments[0][i]);}}
if(arguments[0][0]&&!bTxt)ProcessShow(arguments[0][0],lTxt);};function WaitEnd(lWin)
{for(var i=0;i<arguments[0].length;++i)
{try{PageMaskHide(arguments[0][i]);}catch(e){}}
try{ProcessHide(arguments[0][0]);}catch(e){}
checkScroll(true);};function FloatShow(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,canscroll)
{getFloatShow(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,canscroll);}
FloatShow.Hide=function()
{if(typeof(getFloatShow.Hide)!="undefined")
{getFloatShow.Hide.apply(this,arguments);}
else
{if(top.mainfra&&top.mainfra.$("ID_QQSHOW_FLOAT_WIN"))
{top.mainfra.$("ID_QQSHOW_FLOAT_WIN").style.display="none";}}}
FloatShow.AutoSize=function()
{getFloatShow.AutoSize.apply(this,arguments);}
FloatShow.DireOnCancel=function()
{if(typeof(getFloatShow.DireOnCancel)!="undefined")
{getFloatShow.DireOnCancel.apply(this,arguments);}}
FloatShow.OnCancel=function()
{if(typeof(getFloatShow.OnCancel)!="undefined")
{getFloatShow.OnCancel.apply(this,arguments);}
else
{if(top.mainfra&&top.mainfra.$("ID_QQSHOW_FLOAT_WIN"))
{top.mainfra.$("ID_QQSHOW_FLOAT_WIN").style.display="none";}}}
FloatShow.OnOK=function()
{getFloatShow.OnOK.apply(this,arguments);}
function getFloatShow(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,iscanscroll)
{var izIndex=zIndex?zIndex:65530;oWin=oWin||window;iLeft=typeof(iLeft)=="number"?iLeft:75;iTop=typeof(iTop)=="number"?iTop:45;var ifras=null;var canscroll=(iscanscroll==null?true:iscanscroll);var myfras=((fras==null)?[window,top.mainfra,top.leftfra,top.topfra]:fras);if(!CheckAcess(oWin))
{if(getFloatShow._iID)
clearTimeout(getFloatShow._iID);getFloatShow._iID=setTimeout(function(){getFloatShow(sUrl,iWidth,iHeight,OnOK,OnCancel,iLeft,iTop,oWin,fras,zIndex,isshow,canscroll)},500);}
try
{MaskStart(myfras);}
catch(e)
{}
getFloatShow.Show=function(sUrl,iWidth,iHeight,iLeft,iTop)
{var e=$("ID_QQSHOW_FLOAT_WIN");if(!e)
{var zindexs=null;if(zIndex)
{zindexs=zIndex;}
e=DivCreate(oWin,oWin.document.body,"ID_QQSHOW_FLOAT_WIN",zindexs,0,0,null,null,"none");if(!e)
{MaskEnd([window,top.mainfra,top.leftfra,top.topfra]);return;}
e.className="float_win";iTop=(oWin.document.documentElement.scrollTop||oWin.document.body.scrollTop)+35;e.style.top=iTop+"px";}
if(e&&"object"==typeof(e)&&"div"==e.tagName.toString().toLowerCase())
{if(isshow)
{e.innerHTML=isshow.escNone();}
else
{e.innerHTML=('<table id="w_head" align="center" ><tr><td align="center"><iframe allowtransparency=true id="ID_QQSHOW_FLOAT_IFRAME" name="ID_QQSHOW_FLOAT_IFRAME" width="'+iWidth+'" height="'+iHeight+'" frameborder="0" scrolling="no"></iframe></td></tr></table><div id="d_border" style="display:none;border:1px dotted #000000; position:absolute;"></div>').escNone();e.getElementsByTagName("IFRAME")[0].src=sUrl;}
e.style.display="block";e.style.visibility="visible";if(typeof(_MSIE78)=="function"&&!_MSIE78()&&canscroll)
{}
if(!checkEvn())
{iLeft+=200;}
e.style.left=iLeft+"px";iTop=(oWin.document.documentElement.scrollTop||oWin.document.body.scrollTop)+35;e.style.top=iTop+"px";}};getFloatShow.Hide=function()
{MaskEnd([window,top.mainfra,top.leftfra,top.topfra]);var div;if(arguments[0])
{var fra=arguments[0];if(fra&&fra.document)
{div=fra.document.getElementById("ID_QQSHOW_FLOAT_WIN");}}
else
{div=document.getElementById("ID_QQSHOW_FLOAT_WIN");}
if(div)
{var pox=QQSHOW.Tools.Distance.getPostion(div,"offsetLeft");div.style.display="none";}};getFloatShow.DireOnCancel=function()
{OnCancel&&OnCancel(arguments[0]);};getFloatShow.OnOK=function()
{getFloatShow.Hide();OnOK&&OnOK(arguments[0]);};getFloatShow.OnCancel=function()
{getFloatShow.Hide();OnCancel&&OnCancel(arguments[0]);};getFloatShow.AutoSize=function()
{function FindIFrame(sName){for(var i=0;i<window.frames.length;++i){if(window.frames[i].name==sName){return window.frames[i];}}return null;};var e=document.getElementById("ID_QQSHOW_FLOAT_IFRAME");var w=_MSIE()?window.frames["ID_QQSHOW_FLOAT_IFRAME"]:FindIFrame("ID_QQSHOW_FLOAT_IFRAME");if(0==w.document.body.clientWidth&&0==w.document.body.clientHeight)
{setTimeout(getFloatShow.AutoSize,500);return;}
e.style.width=w.document.body.clientWidth+"px";e.style.height=w.document.body.clientHeight+"px";};getFloatShow.Show(sUrl,iWidth,iHeight,iLeft,iTop);};function RBuy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iType)
{if(CheckLogin(1))
{if(QUSER.getInfo("vip")==1&&GetItemVipLevel(parseInt(iVipItem))!=-1)
{if(getCookie("viprank").split("|")[1]>=GetItemVipLevel(parseInt(iVipItem)))
{ShowVipMonthPage(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iType);return;}else
{XBuy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom);return;}}
if(QUSER.getInfo("vip")==1&&iVipItem!=2)
{ShowVipMonthPage(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iType);return;}else
{XBuy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom);}}};function ShowVipMonthPage(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom,iType)
{function OnOK(x)
{XBuy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom);};function OnCancel(x)
{};if(top.mainfra&&top.topfra)
{if(iType&&iType==2)
{if(top.mainfra.FloatShow)
top.mainfra.FloatShow(sParDir+"/mall/inc/buy_tips_box.html?itemType="+iVipItem,555,390,OnOK,OnCancel,0,-100,top.mainfra,null);}
else
{FloatShow(sParDir+"/mall/inc/buy_tips_box.html?itemType="+iVipItem,555,390,OnOK,OnCancel,0,-100,top.mainfra,null);}}
else
{setTimeout("ShowVipMonthPage()",1000);}};function XBuy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom)
{if(DSAsystem.DSAdata[0]==0)
{return Buy(sName,iNo,iPrice,iPriceVip,iVipItem,vFrom);}
if(CheckLogin(1))
{if(iVipItem==1&&QUSER.getInfo("vip")!=1)
{alert("您不是红钻用户，不能购买红钻物品["+sName+"]");}
else
{DSABuy([sName,iNo,1,Math.round(iPrice*DSAsystem._ComDsc/100),Math.round(iPriceVip*DSAsystem._VipDsc/100),0,0,"",vFrom?vFrom.toString():""],[sName,iNo,1,iPrice,iPriceVip,0,0,"",vFrom?vFrom.toString():""]);}}};function DSABuy(aCart,aCart0)
{var aPrice=getCartPrice([aCart]);var iPrice=QUSER.getInfo("vip")==1?aPrice[1]:aPrice[0];var aPrice0=getCartPrice([aCart0]);var iPrice0=QUSER.getInfo("vip")==1?aPrice0[1]:aPrice0[0];if(!confirm("您将支付"+QBPrice(iPrice)+"Q币购买“"+aCart[0]+"”，由于折扣购买，此次共为您节省了"+QBPrice(iPrice0-iPrice)+"Q币，是否购买？"))
{return;}
function onSucc(xmlDoc)
{function GETv(sName)
{return xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute(sName);}
QSCookie("mallloc",window.location.href);window.location.href=setURLParam(setURLParam(setURLParam("/mall/inc/sys_suc.html","type",2),"message",ACCTPAYSuccMessage(GETv("itembuy"),GETv("itemnobuy"),GETv("priceacc"),GETv("priceqpoint"),GETv("pricegwq"),GETv("message"))),"itemno",CartVector(GETv("itembuy"))[0][1]);}
function onFail(xmlDoc)
{if(QQShowCommXMLError(xmlDoc))
{var iRetCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");var sMessage=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("message");if(sMessage.indexOf("余额不足")!=-1||sMessage.indexOf("帐户不存在")!=-1||sMessage.indexOf("余额都不足")!=-1||sMessage.indexOf("尚未开通")!=-1||sMessage.indexOf("尚未开户")!=-1)
{sMessage="您的账户余额不足，无法支付本次费用："+QBPrice(QUSER.getInfo("vip")==1?aPrice[1]:aPrice[0])+" Q币，请充值或查看帐户是否开通。";}
window.location=setURLParam(setURLParam("/mall/inc/sys_fail.html","type",2),"message",sMessage);}}
function onError()
{alert("操作失败");}
getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_pay_acct?APPLICATION=DSA&LOGIN="+GetUin()+"&mallno="+DSAsystem.DSAdata[0]+"&paymethod=2&CARTTYPE=1&CART="+CartString([aCart]).escUrl(),onSucc,onFail,onError);};function DSAsystem()
{if(window.__DSA__data__)
{var vData=window.__DSA__data__.split("#");for(var i=0;i<vData.length;++i)
{xData=vData[i].split("|");if(xData[0]==mallMenu[top.g_iMallNo][0])
{DSAsystem.DSAdata=xData;DSAsystem._ComDsc=DSAsystem._VipDsc=parseInt(xData[3]);break;}}}}
DSAsystem._ComDsc=100;DSAsystem._VipDsc=100;DSAsystem.DSAdata=[0,0,0,100];function RBuyAll(show,from,iType){if(CheckLogin(1)){if(QUSER.getInfo("vip")==1)
{ShowVipMonthPageAll(show,from);return;}else
{BuyAll(show,from);}}};function ShowVipMonthPageAll(show,from)
{function OnOK(x)
{BuyAll(show,from);};function OnCancel(x)
{};if(top.mainfra&&top.topfra)
{getFloatShow(sParDir+"/mall/inc/buy_tips_box.html",555,390,OnOK,OnCancel,0,-100,top.mainfra,null);}
else
{getFloatShow(sParDir+"/mall/inc/buy_tips_box.html",555,390,OnOK,OnCancel,0,-100,window,null);}};function BuyAll(show,from)
{show=filterForSpecItem(show,3);show=filterForSpecItem(show,4);if(CheckLogin(1))
{if(top.leftfra)
{var arrObj=top.leftfra.GetItemInfArr(show);}
else
{var arrObj=GetItemInfArr(show);}
var sItemNo="";for(var i=0;i<arrObj.length;i++)
{if(sItemNo.length>0)sItemNo+="|";sItemNo+=arrObj[i]._iItemNo;}
var sUrl="/cgi-bin/qqshow_item_info?item="+sItemNo.escUrl();function fnSucc(xmlDoc)
{var aItemXml=xmlDoc.getElementsByTagName("node");for(var i=0;i<aItemXml.length;i++)
{setCart([aItemXml[i].getAttribute("iname"),aItemXml[i].getAttribute("ino"),1,aItemXml[i].getAttribute("ipriceori"),aItemXml[i].getAttribute("ipricevip"),0,0,"",from.length>0?from:"",aItemXml[i].getAttribute("itype")]);}
goCartWithLocation();}
function fnFail(xmlDoc)
{var sMessage=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("message");if(sMessage=="")
{sMessage="获取物品详情失败";}
alert(sMessage);return;}
function fnError()
{alert("对不起，系统繁忙，请稍后再试。");return;}
getQQSHOWXml(sUrl,fnSucc,QQShowCommXMLError&&fnFail,fnError);}}
function sendAll(i,sShow)
{var n=i||0;if(CheckLogin(1))
{var sItemSn="";var oQSAV=null;if(sShow){sItemSn=sShow;oQSAV=new QQSHOWAV();oQSAV.FromItemSn(sItemSn);}
else{oQSAV=document.getElementById(g_sAVId).cQSAV;sItemSn=oQSAV.ToItemSn(0,0,0);}
if(HasSpecTypeItem(sItemSn,101)){alert("形象中包含游戏秀物品不能赠送");return;}
if(HasSpecTypeItem(sItemSn,103)){alert("形象中包含相片秀物品不能赠送");return;}
var facecount=SpecTypeItemCount(sItemSn,102);var qiiCount=0;if(facecount==0)
{qiiCount=SpecTypeItemCount(sItemSn,104);}
var count=SpecTypeItemCount(sItemSn,3)+SpecTypeItemCount(sItemSn,4)+facecount+qiiCount;var itemNum=oQSAV.ItemCount();itemNum=itemNum-count;if(itemNum==0)
{if(facecount!=0||qiiCount!=0)
{return alert("您选择的形象中仅有"+(facecount!=0?"真脸":"DIY")+"头像，不能进行赠送。请选择其他QQ秀再试。");}
else
{return alert("您的身上没有任何物品，请添加物品之后赠送");}}
else if(itemNum>20)
{return alert("对不起，单次赠送物品数量不能超过20件。");}
if(top.mainfra&&"function"==typeof(top.mainfra.getFloatShow))
{var sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/mall/inc/don_mul.html";if(sShow){top.mainfra.RequestShow=sShow;sUrl+="?cmd=show";}
top.mainfra.getFloatShow(sUrl,434,346,null,null,0,-100);}
else if(n==0)
{top.mainfra.location.href=sParDir+"/inc/main.html";setTimeout(function(){sendAll(n+1)},400);}
else if(n<10)
{setTimeout(function(){sendAll(n+1)},400);}}};function askAll(i,sShow)
{var n=i||0;if(CheckLogin(1))
{var sItemSn="";var oQSAV=null;if(sShow){sItemSn=sShow;oQSAV=new QQSHOWAV();oQSAV.FromItemSn(sItemSn);}
else{oQSAV=document.getElementById(g_sAVId).cQSAV;sItemSn=oQSAV.ToItemSn(0,0,0);}
if(HasSpecTypeItem(sItemSn,101)){alert("形象中包含游戏秀物品不能索要");return;}
if(HasSpecTypeItem(sItemSn,103))
{alert("形象中包含相片秀物品不能索要");return;}
var facecount=SpecTypeItemCount(sItemSn,102);var qiiCount=SpecTypeItemCount(sItemSn,104);var count=SpecTypeItemCount(sItemSn,3)+SpecTypeItemCount(sItemSn,4)+facecount+qiiCount;var itemNum=oQSAV.ItemCount();var itemNum=itemNum-count;if(itemNum==0)
{if(facecount!=0)
{return alert("您选择的形象中仅有真脸头像，不能进行索要。请选择其他QQ秀再试.");}
else if(qiiCount!=0)
{return alert("您选择的形象中仅有DIY头像，不能进行索要。请选择其他QQ秀再试.");}
else
{return alert("您的身上没有任何物品，请添加物品后索要.");}}
else if(itemNum>20)
{return alert("对不起，单次索要物品数量不能超过20件。");}
if(top.mainfra&&"function"==typeof(top.mainfra.getFloatShow))
{var sUrl="http://imgcache.qq.com/qqshow_v3/htdocs/mall/inc/req_mul.html";if(sShow){top.mainfra.RequestShow=sShow;sUrl+="?cmd=show";}
top.mainfra.getFloatShow(sUrl,434,346,null,null,0,-100);}
else if(n==0)
{top.mainfra.location.href=sParDir+"/inc/main.html";setTimeout(function(){askAll(n+1)},400);}
else if(n<10)
{setTimeout(function(){askAll(n+1)},400);}}};function ShowVipMonthPageHead(xData,from)
{function OnOK(x)
{BuyHead(xData,from);};function OnCancel(x)
{};if(top.mainfra&&top.topfra)
{getFloatShow(sParDir+"/mall/inc/buy_tips_box.html",555,390,OnOK,OnCancel,0,-100,top.mainfra,null);}
else
{getFloatShow(sParDir+"/mall/inc/buy_tips_box.html",555,390,OnOK,OnCancel,0,-100,window,null);}};function BuyHead(xData,from)
{if(CheckLogin(1))
{for(var i=0;i<xData.length;i++)
{setCart([xData[i]["iname"],xData[i]["ino"],1,xData[i]["ipriceori"],xData[i]["ipricevip"],0,0,"",from.length>0?from:"",xData[i]["itype"]]);}
goCartWithLocation();}}
function dragstart(target,event)
{var mydrag=new draginit(target);mydrag.ondragstart(event);addEventListener(document.body,"onmousemove",mydrag.ondraging.bind(mydrag));addEventListener(document.body,"onmouseup",mydrag.ondragend.bind(mydrag));}
function draginit(target)
{this.distancex=0;this.distancey=0;this.target=target;this.isdrag=false;}
draginit.prototype.ondragstart=function(event)
{var evt=event||window.event;if(_MSIE())
{this.target.style.position="absolute";}
if(this.target.setCapture)
{this.target.setCapture();}
else
{window.captureEvents(evt.MOUSEMOVE|evt.MOUSEUP);}
this.distancex=evt.clientX-QQSHOW.Tools.Distance.getPostion(this.target,"offsetLeft");this.distancey=evt.clientY-QQSHOW.Tools.Distance.getPostion(this.target,"offsetTop")+10;this.isdrag=true;}
draginit.prototype.ondragend=function(event)
{document.body.onmousemove=null;this.isdrag=false;var evt=event||window.event;if(this.target.releaseCapture)
{this.target.releaseCapture();}
else
{window.releaseEvents(evt.MOUSEMOVE|evt.MOUSEUP);}
if(!_MSIE6())
{}
document.body.onmouseup=null;}
draginit.prototype.ondraging=function(event)
{if(!this.isdrag){return;}
var evt=event||window.event;var posx=evt.clientX-this.distancex;var posy=evt.clientY-this.distancey;if(posx<0)
{posx=0;}
if(posy<0)
{posy=0;}
this.target.style.left=posx+"px";this.target.style.top=posy+"px";}
function EventRouter(event)
{var evt=event||window.event;var sType=evt.type;var oEle=evt.srcElement||evt.target;var oWindow=$("w_head");var oBorder=$("d_border");oBorder.style.zIndex=65555;switch(sType)
{case"mousedown":if(oEle.tagName.toUpperCase()=="A")
{return;}
oBorder.style.display="block";oWindow.m_bDown=true;oWindow.style.position="absolute";oBorder.style.width=oWindow.offsetWidth+"px";oBorder.style.height=oWindow.offsetHeight+"px";oBorder.style.left=oWindow.offsetLeft+"px";oBorder.style.top=oWindow.offsetTop+"px";addEventListener(document.body,"onmousemove",EventRouter);addEventListener(document.body,"onmouseup",EventRouter);if(_MSIE())
{oBorder.setCapture(true);}
else if(_FireFox())
{window.captureEvents(evt.MOUSEMOVE|evt.MOUSEUP);}
break;case"mouseup":if(!oWindow.m_bDown)return;oWindow.style.left=oBorder.style.left;oWindow.style.top=oBorder.style.top;oBorder.style.display="none";removeEventListener(document.body,"onmousemove",EventRouter);removeEventListener(document.body,"onmouseup",EventRouter);oWindow.m_bDown=false;if(_MSIE())
{oBorder.releaseCapture(true);}
else if(_FireFox())
{window.releaseEvents(evt.MOUSEMOVE|evt.MOUSEUP);}
break;case"mousemove":if(!oWindow.m_bDown)return;var _left,_top;if(_FireFox())
{var iM_x=evt.clientX;var iM_y=evt.clientY;var ileft=evt.offsetX?evt.offsetX:QQSHOW.Tools.Distance.getPostion(oWindow,"offsetLeft");var itop=evt.offsety?evt.offsety:QQSHOW.Tools.Distance.getPostion(oWindow,"offsetTop");_left=iM_x-oWindow.clientWidth/2;_top=iM_y-20;_left+=ileft;_top+=itop-56;}
else
{var iM_x=event.clientX;var iScrollTop=-20;if(!_MSIE78())
{iScrollTop=document.body.scrollTop;}
var iM_y=event.clientY+iScrollTop;var oMask=document.getElementById("ID_QQSHOW_FLOAT_WIN");var _left=iM_x-oWindow.clientWidth/2;var _top=iM_y-20;var iW=oWindow.clientWidth;var iH=oWindow.clientHeight;var oWin;if(window.frameElement)oWin=window.frameElement;else oWin=document.body;_left=_left<0?0:(_left+iW>oWin.offsetWidth?(oWin.offsetWidth-iW):_left);_top=_top<0?0:(_top+iH-iScrollTop>(document.all?oWin.clientHeight:document.body.clientHeight)?((document.all?oWin.clientHeight:document.body.clientHeight)-iH+iScrollTop):_top);_top=_top-oMask.offsetTop;_top=_top<(-oMask.offsetTop)?(-oMask.offsetTop):_top;}
if(_top<=0)
{_top=0;}
oBorder.style.left=_left+"px";oBorder.style.top=_top+"px";break;default:break;}};function QQShowHelpBox(sContent,sTitle,sWinTitle,oWin,iType,bTxt)
{QQShowHelpBox.OnClose=function()
{WaitEnd([top.mainfra,top.leftfra,top.topfra]);getFloatShow.Hide();};QQShowHelpBox.init=function(oDoc)
{var eWinTitle=oDoc.getElementById("ID_WinTitle");var eTitle=oDoc.getElementById("ID_Title");var eContent=oDoc.getElementById("ID_Content");sWinTitle&&eWinTitle&&(eWinTitle.innerHTML=sWinTitle.escHtml());sTitle&&eTitle&&(eTitle.innerHTML=sTitle.escHtml());sContent&&eContent&&(eContent.innerHTML=sContent.escHtml());};QQShowHelpBox.Show=function()
{var sFile=sParDir+('/help/inc/help_box.html');iType&&(!isNaN(iType))&&(sFile=(sParDir+'/help/inc/help_box_')+iType+'.html');var iWidth=461;var iHeight=230;oWin||(oWin=top.mainfra?top.mainfra:window);oWin.getFloatShow(sFile,iWidth,iHeight);};WaitStart([top.mainfra,top.leftfra,top.topfra],null,bTxt);QQShowHelpBox.Show();};function QQShowDialog(iType,sMsg,sTitle,fnOk,fnNo,fnCancel,oWin,iWidth,iHeight,bTxt)
{var m_itype=iType?iType:1;var m_sMsg=sMsg?sMsg:"";var m_sTitle=sTitle?sTitle:"提示";var m_func_ok=fnOk?fnOk:function(){};var m_func_no=fnNo?fnNo:function(){};var m_func_cancel=fnCancel?fnCancel:function(){};var _width=iWidth?iWidth:504;var _height=iHeight?iHeight:198;var _bShow=true;QQShowDialog.Show=function()
{if(oWin)
oWin.getFloatShow((sParDir+'/inc/alert.html'),_width,_height);else if(top.mainfra)
top.mainfra.getFloatShow((sParDir+'/inc/alert.html'),_width,_height);else
getFloatShow((sParDir+'/inc/alert.html'),_width,_height);};QQShowDialog.OnOk=function()
{try{m_func_ok();}catch(e){};getFloatShow.Hide();_bShow=false;};QQShowDialog.OnNo=function()
{try{m_func_no();}catch(e){};getFloatShow.Hide();_bShow=false;};QQShowDialog.OnCancel=function()
{try{m_func_cancel();}catch(e){};getFloatShow.Hide();_bShow=false;};QQShowDialog.IsShow=function()
{return _bShow;};QQShowDialog.AddListener=function(oEle,fnEvt)
{if(oEle){addEventListener(oEle,"onclick",fnEvt);}};QQShowDialog.init=function(oDoc)
{if(oDoc.getElementById("title")!=null)oDoc.getElementById("title").innerHTML=m_sTitle.escHtml();if(oDoc.getElementById("msg")!=null)oDoc.getElementById("msg").innerHTML=m_sMsg.escHtml();var oBok=oDoc.getElementById("b_ok");var oBno=oDoc.getElementById("b_no");var oBcancel=oDoc.getElementById("b_cancel");QQShowDialog.AddListener(oBok,QQShowDialog.OnOk);QQShowDialog.AddListener(oBno,QQShowDialog.OnNo);QQShowDialog.AddListener(oBcancel,QQShowDialog.OnCancel);if(m_itype==1)
{oBok.className="left_btn_1";}
else if(m_itype==2){oBno.style.display="";}else if(m_itype==3){oBno.style.display="";oBcancel.style.display="";}};QQShowDialog.Show();};function GetTypes()
{return["休闲","正装","运动","礼服","奇幻","卡通"];}
function InitCombo(oEle)
{if(oEle.tagName!="SELECT")return;var sType=GetTypes();oEle.options.length=0;for(var i=0;i<sType.length;i++)
{oEle.options[i]=(new Option(sType[i],sType[i]));}}
function encodehuffman(sSrc)
{var mapName=[];mapName[48]=[1,String.fromCharCode(0)];mapName[57]=[6,String.fromCharCode(1)];mapName[124]=[6,String.fromCharCode(33)];mapName[46]=[5,String.fromCharCode(17)];mapName[49]=[4,String.fromCharCode(9)];mapName[54]=[6,String.fromCharCode(5)];mapName[56]=[6,String.fromCharCode(37)];mapName[52]=[5,String.fromCharCode(21)];mapName[50]=[6,String.fromCharCode(13)];mapName[38]=[8,String.fromCharCode(45,0)];mapName[10]=[9,String.fromCharCode(173,0)];mapName[70]=[10,String.fromCharCode(173,1)];mapName[100]=[15,String.fromCharCode(173,3)];mapName[105]=[16,String.fromCharCode(173,67,0)];mapName[65]=[18,String.fromCharCode(173,195,0)];mapName[69]=[18,String.fromCharCode(173,195,2)];mapName[4]=[23,String.fromCharCode(173,195,1)];mapName[5]=[23,String.fromCharCode(173,195,65)];mapName[2]=[23,String.fromCharCode(173,195,33)];mapName[3]=[23,String.fromCharCode(173,195,97)];mapName[8]=[23,String.fromCharCode(173,195,17)];mapName[9]=[23,String.fromCharCode(173,195,81)];mapName[6]=[23,String.fromCharCode(173,195,49)];mapName[7]=[23,String.fromCharCode(173,195,113)];mapName[34]=[22,String.fromCharCode(173,195,9)];mapName[36]=[22,String.fromCharCode(173,195,41)];mapName[0]=[23,String.fromCharCode(173,195,25)];mapName[1]=[23,String.fromCharCode(173,195,89)];mapName[33]=[22,String.fromCharCode(173,195,57)];mapName[22]=[23,String.fromCharCode(173,195,5)];mapName[23]=[23,String.fromCharCode(173,195,69)];mapName[20]=[23,String.fromCharCode(173,195,37)];mapName[21]=[23,String.fromCharCode(173,195,101)];mapName[26]=[23,String.fromCharCode(173,195,21)];mapName[27]=[23,String.fromCharCode(173,195,85)];mapName[24]=[23,String.fromCharCode(173,195,53)];mapName[25]=[23,String.fromCharCode(173,195,117)];mapName[13]=[23,String.fromCharCode(173,195,13)];mapName[14]=[23,String.fromCharCode(173,195,77)];mapName[11]=[23,String.fromCharCode(173,195,45)];mapName[12]=[23,String.fromCharCode(173,195,109)];mapName[18]=[23,String.fromCharCode(173,195,29)];mapName[19]=[23,String.fromCharCode(173,195,93)];mapName[15]=[23,String.fromCharCode(173,195,61)];mapName[17]=[23,String.fromCharCode(173,195,125)];mapName[62]=[22,String.fromCharCode(173,195,3)];mapName[64]=[22,String.fromCharCode(173,195,35)];mapName[59]=[22,String.fromCharCode(173,195,19)];mapName[60]=[22,String.fromCharCode(173,195,51)];mapName[84]=[22,String.fromCharCode(173,195,11)];mapName[91]=[22,String.fromCharCode(173,195,43)];mapName[78]=[22,String.fromCharCode(173,195,27)];mapName[83]=[22,String.fromCharCode(173,195,59)];mapName[41]=[22,String.fromCharCode(173,195,7)];mapName[42]=[22,String.fromCharCode(173,195,39)];mapName[39]=[22,String.fromCharCode(173,195,23)];mapName[40]=[22,String.fromCharCode(173,195,55)];mapName[47]=[22,String.fromCharCode(173,195,15)];mapName[58]=[22,String.fromCharCode(173,195,47)];mapName[43]=[22,String.fromCharCode(173,195,31)];mapName[44]=[22,String.fromCharCode(173,195,63)];mapName[67]=[14,String.fromCharCode(173,35)];mapName[117]=[13,String.fromCharCode(173,19)];mapName[103]=[16,String.fromCharCode(173,11,0)];mapName[165]=[23,String.fromCharCode(173,139,0)];mapName[166]=[23,String.fromCharCode(173,139,64)];mapName[162]=[23,String.fromCharCode(173,139,32)];mapName[164]=[23,String.fromCharCode(173,139,96)];mapName[169]=[23,String.fromCharCode(173,139,16)];mapName[170]=[23,String.fromCharCode(173,139,80)];mapName[167]=[23,String.fromCharCode(173,139,48)];mapName[168]=[23,String.fromCharCode(173,139,112)];mapName[156]=[23,String.fromCharCode(173,139,8)];mapName[157]=[23,String.fromCharCode(173,139,72)];mapName[154]=[23,String.fromCharCode(173,139,40)];mapName[155]=[23,String.fromCharCode(173,139,104)];mapName[160]=[23,String.fromCharCode(173,139,24)];mapName[161]=[23,String.fromCharCode(173,139,88)];mapName[158]=[23,String.fromCharCode(173,139,56)];mapName[159]=[23,String.fromCharCode(173,139,120)];mapName[181]=[23,String.fromCharCode(173,139,4)];mapName[182]=[23,String.fromCharCode(173,139,68)];mapName[179]=[23,String.fromCharCode(173,139,36)];mapName[180]=[23,String.fromCharCode(173,139,100)];mapName[185]=[23,String.fromCharCode(173,139,20)];mapName[186]=[23,String.fromCharCode(173,139,84)];mapName[183]=[23,String.fromCharCode(173,139,52)];mapName[184]=[23,String.fromCharCode(173,139,116)];mapName[173]=[23,String.fromCharCode(173,139,12)];mapName[174]=[23,String.fromCharCode(173,139,76)];mapName[171]=[23,String.fromCharCode(173,139,44)];mapName[172]=[23,String.fromCharCode(173,139,108)];mapName[177]=[23,String.fromCharCode(173,139,28)];mapName[178]=[23,String.fromCharCode(173,139,92)];mapName[175]=[23,String.fromCharCode(173,139,60)];mapName[176]=[23,String.fromCharCode(173,139,124)];mapName[132]=[23,String.fromCharCode(173,139,2)];mapName[133]=[23,String.fromCharCode(173,139,66)];mapName[130]=[23,String.fromCharCode(173,139,34)];mapName[131]=[23,String.fromCharCode(173,139,98)];mapName[136]=[23,String.fromCharCode(173,139,18)];mapName[137]=[23,String.fromCharCode(173,139,82)];mapName[134]=[23,String.fromCharCode(173,139,50)];mapName[135]=[23,String.fromCharCode(173,139,114)];mapName[30]=[23,String.fromCharCode(173,139,10)];mapName[31]=[23,String.fromCharCode(173,139,74)];mapName[28]=[23,String.fromCharCode(173,139,42)];mapName[29]=[23,String.fromCharCode(173,139,106)];mapName[128]=[23,String.fromCharCode(173,139,26)];mapName[129]=[23,String.fromCharCode(173,139,90)];mapName[32]=[23,String.fromCharCode(173,139,58)];mapName[127]=[23,String.fromCharCode(173,139,122)];mapName[148]=[23,String.fromCharCode(173,139,6)];mapName[149]=[23,String.fromCharCode(173,139,70)];mapName[146]=[23,String.fromCharCode(173,139,38)];mapName[147]=[23,String.fromCharCode(173,139,102)];mapName[152]=[23,String.fromCharCode(173,139,22)];mapName[153]=[23,String.fromCharCode(173,139,86)];mapName[150]=[23,String.fromCharCode(173,139,54)];mapName[151]=[23,String.fromCharCode(173,139,118)];mapName[140]=[23,String.fromCharCode(173,139,14)];mapName[141]=[23,String.fromCharCode(173,139,78)];mapName[138]=[23,String.fromCharCode(173,139,46)];mapName[139]=[23,String.fromCharCode(173,139,110)];mapName[144]=[23,String.fromCharCode(173,139,30)];mapName[145]=[23,String.fromCharCode(173,139,94)];mapName[142]=[23,String.fromCharCode(173,139,62)];mapName[143]=[23,String.fromCharCode(173,139,126)];mapName[230]=[23,String.fromCharCode(173,139,1)];mapName[231]=[23,String.fromCharCode(173,139,65)];mapName[228]=[23,String.fromCharCode(173,139,33)];mapName[229]=[23,String.fromCharCode(173,139,97)];mapName[234]=[23,String.fromCharCode(173,139,17)];mapName[235]=[23,String.fromCharCode(173,139,81)];mapName[232]=[23,String.fromCharCode(173,139,49)];mapName[233]=[23,String.fromCharCode(173,139,113)];mapName[222]=[23,String.fromCharCode(173,139,9)];mapName[223]=[23,String.fromCharCode(173,139,73)];mapName[220]=[23,String.fromCharCode(173,139,41)];mapName[221]=[23,String.fromCharCode(173,139,105)];mapName[226]=[23,String.fromCharCode(173,139,25)];mapName[227]=[23,String.fromCharCode(173,139,89)];mapName[224]=[23,String.fromCharCode(173,139,57)];mapName[225]=[23,String.fromCharCode(173,139,121)];mapName[246]=[23,String.fromCharCode(173,139,5)];mapName[247]=[23,String.fromCharCode(173,139,69)];mapName[244]=[23,String.fromCharCode(173,139,37)];mapName[245]=[23,String.fromCharCode(173,139,101)];mapName[250]=[23,String.fromCharCode(173,139,21)];mapName[251]=[23,String.fromCharCode(173,139,85)];mapName[248]=[23,String.fromCharCode(173,139,53)];mapName[249]=[23,String.fromCharCode(173,139,117)];mapName[238]=[23,String.fromCharCode(173,139,13)];mapName[239]=[23,String.fromCharCode(173,139,77)];mapName[236]=[23,String.fromCharCode(173,139,45)];mapName[237]=[23,String.fromCharCode(173,139,109)];mapName[242]=[23,String.fromCharCode(173,139,29)];mapName[243]=[23,String.fromCharCode(173,139,93)];mapName[240]=[23,String.fromCharCode(173,139,61)];mapName[241]=[23,String.fromCharCode(173,139,125)];mapName[198]=[23,String.fromCharCode(173,139,3)];mapName[199]=[23,String.fromCharCode(173,139,67)];mapName[196]=[23,String.fromCharCode(173,139,35)];mapName[197]=[23,String.fromCharCode(173,139,99)];mapName[202]=[23,String.fromCharCode(173,139,19)];mapName[203]=[23,String.fromCharCode(173,139,83)];mapName[200]=[23,String.fromCharCode(173,139,51)];mapName[201]=[23,String.fromCharCode(173,139,115)];mapName[189]=[23,String.fromCharCode(173,139,11)];mapName[190]=[23,String.fromCharCode(173,139,75)];mapName[187]=[23,String.fromCharCode(173,139,43)];mapName[188]=[23,String.fromCharCode(173,139,107)];mapName[194]=[23,String.fromCharCode(173,139,27)];mapName[195]=[23,String.fromCharCode(173,139,91)];mapName[192]=[23,String.fromCharCode(173,139,59)];mapName[193]=[23,String.fromCharCode(173,139,123)];mapName[214]=[23,String.fromCharCode(173,139,7)];mapName[215]=[23,String.fromCharCode(173,139,71)];mapName[212]=[23,String.fromCharCode(173,139,39)];mapName[213]=[23,String.fromCharCode(173,139,103)];mapName[218]=[23,String.fromCharCode(173,139,23)];mapName[219]=[23,String.fromCharCode(173,139,87)];mapName[216]=[23,String.fromCharCode(173,139,55)];mapName[217]=[23,String.fromCharCode(173,139,119)];mapName[206]=[23,String.fromCharCode(173,139,15)];mapName[207]=[23,String.fromCharCode(173,139,79)];mapName[204]=[23,String.fromCharCode(173,139,47)];mapName[205]=[23,String.fromCharCode(173,139,111)];mapName[210]=[23,String.fromCharCode(173,139,31)];mapName[211]=[23,String.fromCharCode(173,139,95)];mapName[208]=[23,String.fromCharCode(173,139,63)];mapName[209]=[23,String.fromCharCode(173,139,127)];mapName[102]=[16,String.fromCharCode(173,75,0)];mapName[72]=[20,String.fromCharCode(173,203,0)];mapName[82]=[20,String.fromCharCode(173,203,8)];mapName[96]=[22,String.fromCharCode(173,203,4)];mapName[112]=[22,String.fromCharCode(173,203,36)];mapName[93]=[22,String.fromCharCode(173,203,20)];mapName[94]=[22,String.fromCharCode(173,203,52)];mapName[123]=[22,String.fromCharCode(173,203,12)];mapName[125]=[22,String.fromCharCode(173,203,44)];mapName[118]=[22,String.fromCharCode(173,203,28)];mapName[121]=[22,String.fromCharCode(173,203,60)];mapName[80]=[21,String.fromCharCode(173,203,2)];mapName[81]=[21,String.fromCharCode(173,203,18)];mapName[254]=[23,String.fromCharCode(173,203,10)];mapName[255]=[23,String.fromCharCode(173,203,74)];mapName[252]=[23,String.fromCharCode(173,203,42)];mapName[253]=[23,String.fromCharCode(173,203,106)];mapName[61]=[21,String.fromCharCode(173,203,26)];mapName[99]=[20,String.fromCharCode(173,203,6)];mapName[88]=[21,String.fromCharCode(173,203,14)];mapName[126]=[22,String.fromCharCode(173,203,30)];mapName[120]=[22,String.fromCharCode(173,203,62)];mapName[75]=[20,String.fromCharCode(173,203,1)];mapName[79]=[20,String.fromCharCode(173,203,9)];mapName[16]=[21,String.fromCharCode(173,203,5)];mapName[163]=[22,String.fromCharCode(173,203,21)];mapName[191]=[22,String.fromCharCode(173,203,53)];mapName[89]=[20,String.fromCharCode(173,203,13)];mapName[97]=[19,String.fromCharCode(173,203,3)];mapName[109]=[19,String.fromCharCode(173,203,7)];mapName[101]=[15,String.fromCharCode(173,43)];mapName[107]=[21,String.fromCharCode(173,107,0)];mapName[122]=[21,String.fromCharCode(173,107,16)];mapName[85]=[21,String.fromCharCode(173,107,8)];mapName[106]=[21,String.fromCharCode(173,107,24)];mapName[71]=[20,String.fromCharCode(173,107,4)];mapName[76]=[20,String.fromCharCode(173,107,12)];mapName[63]=[19,String.fromCharCode(173,107,2)];mapName[87]=[20,String.fromCharCode(173,107,6)];mapName[90]=[20,String.fromCharCode(173,107,14)];mapName[92]=[19,String.fromCharCode(173,107,1)];mapName[73]=[21,String.fromCharCode(173,107,5)];mapName[98]=[21,String.fromCharCode(173,107,21)];mapName[74]=[20,String.fromCharCode(173,107,13)];mapName[114]=[21,String.fromCharCode(173,107,3)];mapName[119]=[21,String.fromCharCode(173,107,19)];mapName[104]=[21,String.fromCharCode(173,107,11)];mapName[113]=[21,String.fromCharCode(173,107,27)];mapName[68]=[19,String.fromCharCode(173,107,7)];mapName[116]=[16,String.fromCharCode(173,235,0)];mapName[37]=[14,String.fromCharCode(173,27)];mapName[66]=[16,String.fromCharCode(173,59,0)];mapName[108]=[17,String.fromCharCode(173,187,0)];mapName[115]=[17,String.fromCharCode(173,187,1)];mapName[111]=[16,String.fromCharCode(173,123,0)];mapName[110]=[16,String.fromCharCode(173,251,0)];mapName[77]=[11,String.fromCharCode(173,7)];mapName[45]=[9,String.fromCharCode(109,0)];mapName[86]=[9,String.fromCharCode(109,1)];mapName[35]=[8,String.fromCharCode(237,0)];mapName[53]=[6,String.fromCharCode(29)];mapName[55]=[7,String.fromCharCode(61)];mapName[51]=[7,String.fromCharCode(125)];mapName[95]=[2,String.fromCharCode(3)];var curbyte=0;var curbit=0;var result="";if(sSrc.substr(0,1)!='V'||sSrc.length>1024*6)
{alert("对不起,形象串错误。");return"";}
result+=String.fromCharCode(Math.floor(sSrc.length/256)%256);result+=String.fromCharCode((sSrc.length)%256);for(i=0;i<sSrc.length;i++)
{for(j=0;j<mapName[sSrc.charCodeAt(i)][0];j++)
{curbyte|=((mapName[sSrc.charCodeAt(i)][1].charCodeAt(j/8)>>(j%8))&1)<<curbit;if(++curbit==8)
{result+=String.fromCharCode(curbyte);curbyte=0;curbit=0;}}}
if(curbit>0)
{result+=String.fromCharCode(curbyte);}
return result;};function conv64(instr)
{var mapSymbol=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","-","_"];var sSrc=instr;var curbyte=0;var curbit=0;var encode="";for(i=0;i<sSrc.length;i++)
{for(j=0;j<8;j++)
{curbyte|=(sSrc.charCodeAt(i)>>(7-j)&1)<<(5-curbit);if(++curbit==6)
{encode+=mapSymbol[curbyte];curbyte=0;curbit=0;}}}
if(curbit>0)
{encode+=mapSymbol[curbyte];}
return encode;};function huffcompress(str)
{return"Z2"+conv64(encodehuffman(str));};function filterForSpecItem(sStr,type){var retArr=[];var defArr=sStr.split("#");if(defArr.length<3){return sStr;}
var itemArr=defArr[2].split("|");for(var i=0;i<itemArr.length;i++){var itemSpcArr=itemArr[i].split("_");if(itemSpcArr.length<18){return sStr;}
if(itemSpcArr[8]==type){continue;}
else if(type==100&&itemSpcArr[8]>type){continue;}
else{retArr.push(itemArr[i]);}}
return(defArr[0]+"#"+defArr[1]+"#"+retArr.join("|")+"#");};function HasSpecTypeItem(sStr,type){var itemNoArr=[];var count=0;var defArr=sStr.split("#");if(defArr.length<3){return false;}
var itemArr=defArr[2].split("|");for(var i=0;i<itemArr.length;i++){var itemSpcArr=itemArr[i].split("_");if(itemSpcArr.length<18){return false;}
if(itemSpcArr[8]==type){return true;}else if(type==100&&itemSpcArr[8]>type){return true;}}
return false;};function SpecTypeItemCount(sStr,type){var itemNoArr=[];var count=0;var defArr=sStr.split("#");if(defArr.length<3){return count;}
var itemArr=defArr[2].split("|");for(var i=0;i<itemArr.length;i++){var itemSpcArr=itemArr[i].split("_");if(itemSpcArr.length<18){return count;}
if(itemSpcArr[8]==type){IncreaceAtom(itemSpcArr[0]);}else if(type==100&&itemSpcArr[8]>type){IncreaceAtom(itemSpcArr[0]);}else{continue;}}
function IncreaceAtom(itemNo){for(var i=0;i<itemNoArr.length;i++){if(itemNoArr[i]==itemNo){return;}}
count++;itemNoArr.push(itemNo);}
return count;};function SpecTypeArrayStr(sStr,type){var TypeArray=new Array();var defArr=sStr.split("#");if(defArr.length<3){return TypeArray;}
var itemArr=defArr[2].split("|");for(var i=0;i<itemArr.length;i++){var itemSpcArr=itemArr[i].split("_");if(itemSpcArr.length<18){return TypeArray;}
if(itemSpcArr[8]==type){TypeArray.push(itemSpcArr.join("_"));}else if(type==100&&itemSpcArr[8]>type){TypeArray.push(itemSpcArr.join("_"));}else{continue;}}
return TypeArray;};function SpecTypeFindFirst(sStr,type){var defArr=sStr.split("#");if(defArr.length<3){return null;}
var itemArr=defArr[2].split("|");for(var i=0;i<itemArr.length;i++){var itemSpcArr=itemArr[i].split("_");if(itemSpcArr.length<18){return null;}
if(itemSpcArr[8]==type){return itemSpcArr;}else if(type==100&&itemSpcArr[8]>type){return itemSpcArr;}else{continue;}}
return null;};function AddDefShowFace(sShow)
{var Defface=[["1_402_0_0_0_0_0_0_0_402_0_0_0_0_0_0_100_0_|3_451_0_0_0_0_0_0_0_451_0_0_0_0_0_0_100_0_|2_461_0_0_0_0_0_0_0_461_0_0_0_0_0_0_100_0_|6_473_0_0_0_0_0_0_0_473_0_0_0_0_0_0_100_0_|1_482_0_0_0_0_0_0_0_482_0_0_0_0_0_0_100_0_","7_402_0_0_0_0_0_0_0_402_0_0_0_0_0_0_100_0_|9_451_0_0_0_0_0_0_0_451_0_0_0_0_0_0_100_0_|8_461_0_0_0_0_0_0_0_461_0_0_0_0_0_0_100_0_|12_473_0_0_0_0_0_0_0_473_0_0_0_0_0_0_100_0_|7_482_0_0_0_0_0_0_0_482_0_0_0_0_0_0_100_0_"],["1000013_402_0_0_0_0_0_0_0_402_0_0_0_0_0_0_100_0_|1000014_451_0_0_0_0_0_0_0_451_0_0_0_0_0_0_100_0_|1000020_461_0_0_0_0_0_0_0_461_0_0_0_0_0_0_100_0_|1000011_465_0_0_0_0_0_0_0_465_0_0_0_0_0_0_100_0_|1000019_469_0_0_0_0_0_0_0_469_0_0_0_0_0_0_100_0_|1000015_473_0_0_0_0_0_0_0_473_0_0_0_0_0_0_100_0_|1000013_482_0_0_0_0_0_0_0_482_0_0_0_0_0_0_100_0_","1000003_402_0_0_0_0_0_0_0_402_0_0_0_0_0_0_100_0_|1000004_451_0_0_0_0_0_0_0_451_0_0_0_0_0_0_100_0_|1000002_450_0_0_0_0_0_0_0_450_0_0_0_0_0_0_100_0_|1000010_461_0_0_0_0_0_0_0_461_0_0_0_0_0_0_100_0_|1000001_465_0_0_0_0_0_0_0_465_0_0_0_0_0_0_100_0_|1000009_469_0_0_0_0_0_0_0_469_0_0_0_0_0_0_100_0_|1000005_473_0_0_0_0_0_0_0_473_0_0_0_0_0_0_100_0_|1000003_482_0_0_0_0_0_0_0_482_0_0_0_0_0_0_100_0_"]];var defArr=sShow.split("#");var aUserInfo=defArr[1].split("_");var iSex=aUserInfo[0]=='M'?1:0;var iStyle=aUserInfo[1];return(defArr[0]+"#"+defArr[1]+"#"+Defface[iStyle][iSex]+"|"+defArr[2]+"#"+(defArr.length==4?defArr[3]:""));}
function getVipLevel(score)
{var level2=400;var level3=800;var level4=1600;var level5=3000;var level6=5000;var level7=7000;var level_distin=2000;if(score<=0)return 0;else if(score>0&&score<level2)return 1;else if(score<level3)return 2;else if(score<level4)return 3;else if(score<level5)return 4;else if(score<level6)return 5;else if(score<level7)return 6;else return 7;};function getVipLevelVal(level)
{switch(level)
{case 1:return 0;break;case 2:return 400;break;case 3:return 800;break;case 4:return 1600;break;case 5:return 3000;break;case 6:return 5000;break;case 7:return 7000;break;default:return((level-7)*2000+7000);break;}};function CheckDefaultShow(sItems)
{var defAV=new QQSHOWAV();var userArr=sItems.split("#");var defArr=defAV._arrDefShow[userArr[1].substr(0,5)];var itemArr=userArr[2].split("|");var iFlag=0;for(var i=0;i<itemArr.length;i++)
{iFlag=0;var itemSpcArr=itemArr[i].split("_");if(itemSpcArr[1]>=406&&itemSpcArr[1]<=448)
{for(var j=0;j<defArr.length;j++)
{if(itemSpcArr[1]==defArr[j][0])
{iFlag++
if(itemSpcArr[0]!=defArr[j][1])
{return 1;}}}
if(iFlag==0)
{return 1;}}}
return 0;}
function openFloatDiv(no,shtml,classstyle)
{var x=0;var y=0;var mainDoc=top.mainfra.document;var iBodyX=mainDoc.documentElement.offsetLeft;var iBodyY=mainDoc.documentElement.offsetTop;for(var i=1;i<9;i++)
{if(mainDoc.getElementById("FLOAT_DIV_ID"+no))
closeFloatDiv(no);}
if(!mainDoc.getElementById("FLOAT_DIV_ID"+no))
{var oDiv=mainDoc.createElement("div");oDiv.id="FLOAT_DIV_ID"+no;oDiv.style.display="none";oDiv.style.position="absolute";oDiv.style.zIndex=199;mainDoc.body.appendChild(oDiv);}
mainDoc.getElementById("FLOAT_DIV_ID"+no).innerHTML=shtml.escNone();var objRBInfoTips=mainDoc.getElementById("FLOAT_DIV_ID"+no);objRBInfoTips.setAttribute("class",classstyle);objRBInfoTips.setAttribute("className",classstyle);objRBInfoTips.style.position="absolute";objRBInfoTips.style.left=(x)+"px";objRBInfoTips.style.top=(y+38)+"px";objRBInfoTips.style.display="";}
function closeFloatDiv(no)
{var mainDoc=top.mainfra.document;if(!arguments[0]||(arguments[0]==0))
{for(var i=1;i<9;i++)
{if(!mainDoc.getElementById("FLOAT_DIV_ID"+i))
continue;mainDoc.getElementById('FLOAT_DIV_ID'+i).style.display='none';mainDoc.getElementById('FLOAT_DIV_ID'+i).innerHTML="";mainDoc.getElementById('FLOAT_DIV_ID'+i).removeNode(true);}}
else
{if(!mainDoc.getElementById("FLOAT_DIV_ID"+no))
return;mainDoc.getElementById('FLOAT_DIV_ID'+no).style.display='none';mainDoc.getElementById('FLOAT_DIV_ID'+no).innerHTML="";mainDoc.getElementById('FLOAT_DIV_ID'+no).removeNode(true);}}
function createIframe()
{var myiframe=$("isdqqshow_hiddeniframe");if(!myiframe)
{myiframe=$C("iframe");myiframe.id="isdqqshow_hiddeniframe";myiframe.name="isdqqshow_hiddeniframe";myiframe.style["visibility"]="hidden";document.body.appendChild(myiframe);myiframe.src="http://show.qq.com/prox.html";}
return myiframe;}
function GetJs(url,loadFn,loadFn2,charset)
{this.bExec=false;this.sUrl=url;this.sCharset=charset?charset:"gb2312";this.fnOnload=function()
{if(!this.bExec)
{loadFn();this.bExec=true;}};};GetJs.prototype.init=function()
{var t=this;var oScript=document.createElement("SCRIPT");oScript.onload=function()
{t.fnOnload();};oScript.onerror=function()
{t.bExec=true;};oScript.onreadystatechange=function()
{if((oScript.readyState!="loaded")&&(oScript.readyState!="complete"))return;oScript.onreadystatechange=null;t.fnOnload();};oScript.setAttribute("TYPE","text/javascript");oScript.setAttribute("charset",t.sCharset);oScript.src=t.sUrl;document.getElementsByTagName("HEAD")[0].appendChild(oScript);};var ISDQQSHOW_VAR;var JsLoader={load:function(sUrl,parm,fCallback,failback,syfalse)
{var _script;if(!fCallback)
{alert("必须指定返回函数名！")}
if(!failback)
{failback=function(s){alert(s)};}
_script=document.createElement("script");_script.setAttribute("type","text/javascript");_script.setAttribute("src",sUrl);document.getElementsByTagName("head")[0].appendChild(_script);if(document.all)
{_script.onreadystatechange=function()
{if(this.readyState=="loaded"||this.readyState=="complete")
{if(this.parentNode)
{this.parentNode.removeChild(this);}
if(!syfalse)
{if(typeof(ISDQQSHOW_VAR)!="undefined"&&typeof(ISDQQSHOW_VAR.error)!="undefined"&&ISDQQSHOW_VAR.error==0)
{fCallback(parm);}
else
{failback(ISDQQSHOW_VAR.error)}
ISDQQSHOW_VAR=null;}
else
{fCallback(parm);}}};}
else
{_script.onload=function()
{if(this.parentNode)
{this.parentNode.removeChild(this);}
if(!syfalse)
{if(typeof(ISDQQSHOW_VAR)!="undefined"&&ISDQQSHOW_VAR&&ISDQQSHOW_VAR.error==0)
{fCallback(parm);}
else
{failback(ISDQQSHOW_VAR);}
ISDQQSHOW_VAR=null;}
else
{fCallback(parm);}};}}};function qqshowAjax(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type,win)
{if(!url){alert("缺少必要参数 url func fail");return;}
ferror=isNull(ferror,function(s){})
israndom=isNull(israndom,true);paramstr=isNull(paramstr,"");isfalse=isNull(isfalse,true);method=isNull(method,"POST");content=isNull(content,"");type=isNull(type,2);if(!top.xmlhttplist)
{top.xmlhttplist=[];}
var ajaxurl;if(israndom)
{if(url.indexOf("?")==-1)
{ajaxurl=url+"?rand="+Math.random()+"&"+paramstr;}
else
{ajaxurl=url+"&rand="+Math.random()+"&"+paramstr;}}
else
{if(url.indexOf("?")==-1)
{ajaxurl=url+"?"+paramstr;}
else
{ajaxurl=url+"&"+paramstr;}}
if("POST"==method.toUpperCase())
{method="POST";var urlist=url.split("?");ajaxurl=urlist[0];content+=(paramstr?("&"+paramstr):"");if(urlist.length>0)
{if(content!="")
{content+="&";}
content+=((urlist[1]==undefined)?"":urlist[1]);}}
else
{method="GET";content=null;}
this.xmlhttp=this.xmlhttprequest(win);this.func=func;this.fail=fail;this.url=ajaxurl;this.ferror=ferror;this.israndom=israndom;this.paramstr=paramstr;this.method=method;this.content=content;this.isfalse=isfalse;this.type=type;this.start();}
qqshowAjax.prototype.xmlhttprequest=function()
{var wind=top;var newxmlhttp;if(window.location.toString().indexOf("http://show.qq.com")==0)
{wind=window;}
var len=top.xmlhttplist.length;if(len>0)
{for(var i=0;i<len;i++)
{if(top.xmlhttplist[i].readyState==0&&(typeof(top.xmlhttplist[i].status)=="unknown"||(typeof(top.xmlhttplist[i].status)=="number"&&top.xmlhttplist[i].status==200)))
{return top.xmlhttplist[i];}}}
try{if(wind.XMLHttpRequest)
{newxmlhttp=new wind.XMLHttpRequest()
top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}
else if(wind.ActiveXObject)
{try{newxmlhttp=new wind.ActiveXObject("Msxml2.XMLHTTP");top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}catch(e){try{newxmlhttp=new wind.ActiveXObject("Microsoft.xmlhttp");top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}catch(E){}}}
else if(top.XMLHttpRequest)
{newxmlhttp=new top.XMLHttpRequest()
top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}
else if(top.ActiveXObject)
{try{newxmlhttp=new wind.ActiveXObject("Msxml2.XMLHTTP");top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}catch(e){try{newxmlhttp=new wind.ActiveXObject("Microsoft.xmlhttp");top.xmlhttplist.push(newxmlhttp);return newxmlhttp;}catch(E){}};}
else if(window.ActiveXObject)
{try{newxmlhttp=new window.ActiveXObject("Msxml2.XMLHTTP");return newxmlhttp;}catch(e){try{newxmlhttp=new window.ActiveXObject("Microsoft.xmlhttp");return newxmlhttp;}catch(E){}}}
else
{return null;}}catch(e)
{return null;}}
qqshowAjax.prototype.start=function()
{var func=this.func;var fail=this.fail;var ferror=this.ferror;if(!this.xmlhttp)
{if(_MSIE())
{ajaxStartProx(this.url,this.func,this.fail,this.ferror,this.israndom,this.paramstr,this.method,this.content,this.isfalse,this.type);}
return;}
var xmlhttp=this.xmlhttp;var type=this.type;xmlhttp.open(this.method,this.url,this.isfalse);xmlhttp.setRequestHeader("cache-control","no-cache");xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.setRequestHeader("If-Modified-Since","0");xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200||xmlhttp.status==206||xmlhttp.status==304)
{try{if(type!=1)
{var doc=xmlhttp.responseXML;if(doc.getElementsByTagName("QQSHOW").length>0)
{if(doc.getElementsByTagName("QQSHOW")[0].getAttribute("code")==0)
{if(typeof(func)=="function")
{func.call(xmlhttp,doc);}}
else
{fail.call(xmlhttp,doc);}}
else
{ferror.call(xmlhttp,xmlhttp.status);}}
else
{if(typeof(func)=="function")
{func.call(xmlhttp,xmlhttp);}}}
finally
{xmlhttp.abort();delete xmlhttp;}}
else
{ferror.call(xmlhttp,xmlhttp.status);}
xmlhttp.abort();delete xmlhttp;if(typeof(CollectGarbage)=="function"&&_MSIE78())
{CollectGarbage();}}}
if(this.content!=null)
{xmlhttp.setRequestHeader("Content-Length",this.content.length);}
xmlhttp.send(this.content);}
xmlhttplists=[];function qqshowAjaxBase(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type)
{if(!url){alert("缺少必要参数 url func fail");return;}
ferror=isNull(ferror,function(s){})
israndom=isNull(israndom,true);paramstr=isNull(paramstr,"");isfalse=isNull(isfalse,true);method=isNull(method,"POST");content=isNull(content,"");type=isNull(type,2);if(!xmlhttplists)
{xmlhttplists=[];}
var ajaxurl;if(israndom)
{if(url.indexOf("?")==-1)
{ajaxurl=url+"?rand="+Math.random()+"&"+paramstr;}
else
{ajaxurl=url+"&rand="+Math.random()+"&"+paramstr;}}
else
{if(url.indexOf("?")==-1)
{ajaxurl=url+"?"+paramstr;}
else
{ajaxurl=url+"&"+paramstr;}}
if("POST"==method.toUpperCase())
{method="POST";var urlist=url.split("?");ajaxurl=urlist[0];content+=(paramstr?("&"+paramstr):"");if(urlist.length>0)
{if(content!="")
{content+="&";}
content+=((urlist[1]==undefined)?"":urlist[1]);}}
else
{method="GET";content=null;}
this.xmlhttp=this.xmlhttprequest();this.func=func;this.fail=fail;this.url=ajaxurl;this.ferror=ferror;this.israndom=israndom;this.paramstr=paramstr;this.method=method;this.content=content;this.isfalse=isfalse;this.type=type;this.start();}
qqshowAjaxBase.prototype.xmlhttprequest=function()
{var newxmlhttp;var len=xmlhttplists.length;if(len>0)
{for(var i=0;i<len;i++)
{if(xmlhttplists[i].readyState==0&&(typeof(xmlhttplists[i].status)=="unknown"||(typeof(xmlhttplists[i].status)=="number"&&xmlhttplists[i].status==200)))
{return xmlhttplists[i];}}}
try{if(window.ActiveXObject)
{try
{newxmlhttp=new ActiveXObject("Msxml2.XMLHTTP");return newxmlhttp;}
catch(e){try{newxmlhttp=new ActiveXObject("Microsoft.xmlhttp");return newxmlhttp;}catch(E){}}}
else
{return null;}}catch(e)
{return null;}}
qqshowAjaxBase.prototype.start=function()
{var func=this.func;var fail=this.fail;var ferror=this.ferror;if(!this.xmlhttp)
{alert("无法建立请求对象！")
return;}
var xmlhttp=this.xmlhttp;var type=this.type;xmlhttp.open(this.method,this.url,this.isfalse);xmlhttp.setRequestHeader("cache-control","no-cache");xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.setRequestHeader("If-Modified-Since","0");xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200||xmlhttp.status==206||xmlhttp.status==304)
{try{if(type!=1)
{var doc=xmlhttp.responseXML;if(doc.getElementsByTagName("QQSHOW").length>0)
{if(doc.getElementsByTagName("QQSHOW")[0].getAttribute("code")==0)
{if(typeof(func)=="function")
{func.call(xmlhttp,doc);}}
else
{fail.call(xmlhttp,doc);}}
else
{ferror.call(xmlhttp,xmlhttp.status);}}
else
{if(typeof(func)=="function")
{func.call(xmlhttp,xmlhttp);}}}
finally
{xmlhttp.abort();delete xmlhttp;}}
else
{ferror.call(xmlhttp,xmlhttp.status);}
xmlhttp.abort();delete xmlhttp;if(typeof(CollectGarbage)=="function"&&_MSIE78())
{CollectGarbage();}}}
if(this.content!=null)
{xmlhttp.setRequestHeader("Content-Length",this.content.length);}
xmlhttp.send(this.content);}
function ajaxStartProx(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type,win)
{var xmlhttp=new top.qqshowAjaxBase(url,func,fail,ferror,israndom,paramstr,method,content,isfalse,type)
return xmlhttp;};function tween(obj,type,freque,distance,posx,posy)
{this.obj=obj;this.type=type;this.distance=distance;this.start=posx;this.end=posy;this.freque=freque;this.toward=(posx<posy?true:false);this.position=obj.style.position;this.timeid=null;this.go();}
tween.prototype.go=function()
{this.obj.style.position="absolute";if(this.type==0)
{this.obj.style.top=this.start+"px";}
else if(this.type==1)
{this.obj.style.left=this.start+"px";}
this.timeid=setInterval(this.move.bind(this),this.freque)}
tween.prototype.move=function()
{var pos=this.start;var object=this.obj;if(this.toward)
{if((pos+this.distance)>this.end)
{pos=this.end;clearInterval(this.timeid);if(this.type==0)
{object.style.top=pos+"px";}
else
{object.style.left=pos+"px";}
this.obj.style.position=this.position;this.obj.style.visibility="visible";return;}}
else
{if((pos-this.distance)<this.end)
{pos=this.end;clearInterval(this.timeid);if(this.type==0)
{object.style.top=pos+"px";}
else
{object.style.left=pos+"px";}
this.obj.style.position=this.position;this.obj.style.visibility="visible";return;}}
if(this.type==0)
{if(this.toward)
{pos+=this.distance;}
else
{pos-=this.distance;}
object.style.top=pos+"px";this.start=pos;}
else
{if(this.toward)
{pos+=this.distance;}
else
{pos-=this.distance;}
this.start=pos;object.style.left=pos+"px";}}
function checkState(wind,func)
{var funct=function(){};if(typeof(func)=="function")
{funct=func;}
if(typeof(wind)!="undefined")
{var doc=wind.document;if(doc)
{if(_MSIE())
{if(doc.readyState=="loaded"||doc.readyState=="complete")
{funct();return true;}
else
{funct=function()
{if(this.readyState=="loaded"||this.readyState=="complete")
{func();}}
addEventListener(doc,"onreadystatechange",funct.bind(doc));}}
else
{func();}}
else
{addEventListener(wind,"onload",func);}}
return false;}
function checkEvn()
{var myframes=top.document.getElementsByTagName("frame");var sideFrame=top.document.getElementById("sideFrame");if(sideFrame&&sideFrame.parentNode.cols=="204,*")
{return true;}
return false;}
function chooseClass(obj,class1,class2)
{var child=obj.parentNode.childNodes;var len=child.length;if(obj.className!=class1)
{for(var i=0;i<len;i++)
{if(child[i]!=obj&&child[i].className==class1)
{child[i].className=class2;}}
obj.className=class1;}}
function qqshowSelect(contain,id,ioptions,index,className)
{this.html="";this.id=id;this.contain=contain;this.index=(isNaN(index)?0:parseInt(index,10));if(typeof(g_mallid)=="number")
{if(g_mallid<1)
{g_mallid=1;}
this.index=g_mallid-1;}
this.options=ioptions?ioptions:[];this.init(className);}
qqshowSelect.prototype.init=function(classNamex)
{var classname="selector";if(this.options.length<=0)
{classname="main_weekly_select selector";}
if(classNamex)
{classname=classNamex;}
var shtml='<div class="'+classname+'" id="'+this.id+'" ><span name="'+this.id+'" >请选择</span><button type="button" >&#9660;</button><ul style="display:none;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>';var dixx=$C("div");dixx.innerHTML=shtml.escNone();this.contain.appendChild(dixx);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.setIndex(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=value;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=index;var objx=$(this.id);var lis=objx.getElementsByTagName("li");var span=objx.getElementsByTagName("span");if(lis[index])
{span[0].innerHTML=lis[index].innerHTML.escNone();}}
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+"px";}
qqshowSelect.prototype.setWidth=function(h)
{$(this.id).style.width=h+"px";}
qqshowSelect.prototype.onselect=function()
{}
function setItemBanner(id,sBannerText,sAID,oOption)
{var oInfo=oOption||{};var sText="全场5万多件普通QQ秀免费！";if(typeof(sBannerText)!="undefined"&&sBannerText!="")
{sText=sBannerText;}
var sOpenVipLink="http://paycenter.qq.com/qqshow/?pageshow=acct";if(typeof(sAID)!="undefined")
{sOpenVipLink=sOpenVipLink+"&aid="+sAID;}
var shtml='<div class="vip_free_tips"><p class="tips_content"><strong>红钻特权</strong><span>'+sText+'</span></p><p class="vip_enter"><a onclick="javascript:SendPGV(\'ISD.QQshow.VipMain.XY_ZT\');" href="'+sOpenVipLink+'" title="开通红钻，免费穿5万多件QQ秀" target="_blank">开通红钻</a></p></div>';if(typeof(oInfo.style)!="undefined")
{if(oInfo.style=="20091028")
{shtml='<p class="get_vip"><strong class="ico_vip">红钻特权：'+sText+'</strong> <a onclick="javascript:SendPGV(\'ISD.QQshow.VipMain.XY_ZT\');" href="'+sOpenVipLink+'" title="开通红钻，免费穿5万多件QQ秀" target="_blank">开通红钻</a></p>';}}
if($(id))
{$(id).innerHTML=shtml.escNone();}}
function qqshowNav(index1,index2,contain,sn1,sn2)
{this.index1=index1;this.index2=index2;this.contain=contain;this.sn1=sn1;this.sn2=sn2;this.show();}
qqshowNav.prototype.show=function()
{if(this.index1==null||this.index2==null)return;var tmpHtml="";if((this.sn1!=null)&&(this.sn1!=""))
{if(this.sn1=="#")
tmpHtml+="<a href='#'>"+this.index1+"</a>";else
tmpHtml+="<a href='javascript:top.topfra.PageChange("+this.sn1+")'>"+this.index1+"</a>";}
else
tmpHtml+=this.index1;tmpHtml+=" > ";if((this.sn2!=null)&&(this.sn2!=""))
{if(this.sn2=="#")
tmpHtml+="<a href='#'>"+this.index2+"</a>";else
tmpHtml+="<a href='javascript:top.topfra.PageChange("+this.sn2+")'>"+this.index2+"</a>";}
else
tmpHtml+=this.index2;if(this.contain)
{this.contain.innerHTML=tmpHtml.escNone();}
else
{document.write('<p class="path_links" id="ID_Path">'+tmpHtml.escNone()+'</p>');}}
function CheckAcess(fra)
{try{if(!fra||!fra.document||!fra.document.body||!fra.document.getElementsByTagName("body"))
return false;else
{if(_MSIE())
{if(fra.document.readyState=="loaded"||fra.document.readyState=="complete")
return true;else
return false;}
else
return true;}}
catch(e){return false;}}
function GetPGVJs(fn)
{if(GetPGVJs._b===true)
{try
{fn()}
catch(e)
{}
return;}
GetPGVJs._b=true;var sUrl="http://pingjs.qq.com/ping.js?v=1";var o=new GetJs(sUrl,fn);o.init();}
function SendPV(keyPathTag,nodeIndex)
{if(typeof(pgvMain)=="function")
{pgvMain("pathtrace",{keyPathTag:keyPathTag||"",nodeIndex:nodeIndex||"",statIframe:true,virtualDomain:"show.qq.com"});}
else
GetPGVJs(function(){pgvMain("pathtrace",{keyPathTag:keyPathTag||"",nodeIndex:nodeIndex||"",statIframe:true,virtualDomain:"show.qq.com"});});}
function SendPGV(CORD)
{if(typeof(pgvSendClick)=="function")pgvSendClick({statIframe:true,virtualDomain:"show.qq.com",hottag:CORD});else
GetPGVJs(function(){pgvSendClick({statIframe:true,virtualDomain:"show.qq.com",hottag:CORD});});}
function PutOnHead(sHeadShow,iType,cSex,iHeadUin,iId,sMallNo)
{top.leftfra&&top.leftfra.ShopTryHead&&top.leftfra.ShopTryHead(sHeadShow,iType,cSex,iHeadUin,iId,sMallNo);};function MakeIntoString(S){S=StringReplace("\\","\\\\",S);S=StringReplace("\"","\\\"",S);S=StringReplace("\n","\\n",S);return S;}
function BitsToBytes(i){o=42;if(i.charAt(0)=='1')
o+=32;if(i.charAt(1)=='1')
o+=16;if(i.charAt(2)=='1')
o+=8;if(i.charAt(3)=='1')
o+=4;if(i.charAt(4)=='1')
o+=2;if(i.charAt(5)=='1')
o+=1;if(o>=92)
o++;return String.fromCharCode(o);}
function CompressCode(ov)
{ov=compress(ov);var Letters=new Array(256);var LetterCodes=new Array(256);for(i=0;i<256;i++)
{Letters[i]=0;}
for(i=0;i<ov.length;i++)
{if((i&0xFF)==0){}
Math.floor((100*i)/ov.length)+"%"
Letters[ov.charCodeAt(i)]++;}
var NodeLetter=new Array(512);var NodeCount=new Array(512);var NodeChild1=new Array(512);var NodeChild2=new Array(512);NextParent=0;for(i=0;i<256;i++)
{if(Letters[i]>0)
{NodeLetter[NextParent]=i;NodeCount[NextParent]=Letters[i];NodeChild1[NextParent]=-1;NodeChild2[NextParent]=-1;NextParent++;}}
SmallestNode2=1;while(SmallestNode2!=-1)
{SmallestNode1=-1;SmallestNode2=-1;for(i=0;i<NextParent;i++)
{if(NodeCount[i]>0)
{if(SmallestNode1==-1)
{SmallestNode1=i;}
else if(SmallestNode2==-1)
{if(NodeCount[i]<NodeCount[SmallestNode1])
{SmallestNode2=SmallestNode1;SmallestNode1=i;}
else
{SmallestNode2=i;}}
else if(NodeCount[i]<=NodeCount[SmallestNode1])
{SmallestNode2=SmallestNode1;SmallestNode1=i;}}}
if(SmallestNode2!=-1)
{NodeCount[NextParent]=NodeCount[SmallestNode1]+
NodeCount[SmallestNode2];NodeCount[SmallestNode1]=0;NodeCount[SmallestNode2]=0;NodeChild1[NextParent]=SmallestNode2;NodeChild2[NextParent]=SmallestNode1;NextParent++;}}
var FinalNodes=Array(NextParent);var DepthIndex=Array(256);Depth=0;NextFinal=0;DepthIndex[Depth]=SmallestNode1;while(Depth>=0)
{if(NodeChild1[DepthIndex[Depth]]>-1&&NodeChild2[DepthIndex[Depth]]>-1)
{idx=NodeChild1[DepthIndex[Depth]];NodeChild1[DepthIndex[Depth]]=-2-NextFinal;Depth++;DepthIndex[Depth]=idx;NextFinal++;}
else if(NodeChild1[DepthIndex[Depth]]<0&&NodeChild2[DepthIndex[Depth]]>-1)
{idx=NodeChild1[DepthIndex[Depth]];idx=0-idx;idx-=2;FinalNodes[idx]=-NextFinal;idx=NodeChild2[DepthIndex[Depth]];NodeChild2[DepthIndex[Depth]]=-2
Depth++;DepthIndex[Depth]=idx;}
else if(NodeChild1[DepthIndex[Depth]]<-1&&NodeChild2[DepthIndex[Depth]]<-1)
{Depth--;}
else if(NodeChild1[DepthIndex[Depth]]==-1&&NodeChild2[DepthIndex[Depth]]==-1)
{FinalNodes[NextFinal]=NodeLetter[DepthIndex[Depth]];NextFinal++;Depth--;}
else
{alert('错误的压缩串');return;}}
var CodeIndex=new Array(256);DepthIndex[0]=0;CodeIndex[0]="";Depth=0;while(Depth>=0)
{if(FinalNodes[DepthIndex[Depth]]<0)
{c=CodeIndex[Depth];idx=DepthIndex[Depth];DepthIndex[Depth+1]=DepthIndex[Depth]+1;CodeIndex[Depth+1]=c+'0';DepthIndex[Depth]=0-FinalNodes[idx];CodeIndex[Depth]=c+'1';Depth++;}
else
{LetterCodes[FinalNodes[DepthIndex[Depth]]]=CodeIndex[Depth];Depth--;}}
bits="";bytes="";for(i=0;i<ov.length;i++)
{if((i&0xFF)==0)
{}
bits+=LetterCodes[ov.charCodeAt(i)];while(bits.length>5)
{bytes+=BitsToBytes(bits);bits=bits.slice(6,bits.length);}}
bytes+=BitsToBytes(bits);S="";encodedNodes="";for(i=0;i<FinalNodes.length;i++){var x,y;x=FinalNodes[i]+512;y=x&0x3F;x>>=6;x&=0x3F;x+=42;y+=42;if(x>=92)
x++;if(y>=92)
y++;encodedNodes+=String.fromCharCode(x)+String.fromCharCode(y);}
while(encodedNodes.length>74)
{S+=encodedNodes.slice(0,74)+"";encodedNodes=encodedNodes.slice(74,encodedNodes.length);}
S+=encodedNodes+" ";while(bytes.length>74)
{S+=''+bytes.slice(0,74)+"";bytes=bytes.slice(74,bytes.length);}
S+=bytes+" ";S+=ov.length;S=S.replace(/\+/g,"x");S=S.replace(/\-/g,"y")
S=S.replace(/\*/g,"z")
S=S.replace(/\./g,"u")
S=S.replace(/%/g,"w")
S=S.replace(/\s/g,"%20")
return escape(S);}
function decodeCompress(str)
{str=unescape(str);str=str.replace(/x/g,"+");str=str.replace(/y/g,"-")
str=str.replace(/z/g,"*")
str=str.replace(/u/g,".");str=str.replace(/w/g,"%");str=str.replace(/%20/g," ");var mystr=(str).split(" ");if(mystr.length!=3){return;}
var a=mystr[0];var l=new Array();while(a.length)
{l.push((Y(a.charCodeAt(0))<<6)+Y(a.charCodeAt(1))-512);a=a.slice(2,a.length)}
d=mystr[1];c=mystr[2];e=b=a=0;o="";function Y(y){if(y>92)y--;return y-42}
function B(){if(a==0){b=Y(d.charCodeAt(e++));a=6;}
return((b>>--a)&0x01);}
while(c--)
{i=0;while(l[i]<0)
{if(B())i=-l[i];else i++;}
o+=String.fromCharCode(l[i]);}
return(decompress(o));}
function compress(str)
{var stx=str;stx=stx.replace(/y/g,"yy").replace(/t/g,"yt").replace(/s/g,"ys").replace(/r/g,"yr").replace(/q/g,"yq").replace(/p/g,"yp").replace(/o/g,"yo").replace(/n/g,"yn").replace(/m/g,"ym").replace(/l/g,"yl").replace(/k/g,"yk").replace(/u/g,"yu").replace(/a/g,"ya").replace(/b/g,"yb").replace(/c/g,"yc").replace(/d/g,"yd").replace(/e/g,"ye").replace(/f/g,"yf").replace(/g/g,"yg").replace(/h/g,"yh").replace(/i/g,"yi").replace(/j/g,"yj").replace(/z/g,"yz");stx=stx.replace(/_0_0_0_0_0_0_0_0_0_0_0/g,"t");stx=stx.replace(/_0_0_0_0_0_0_0_0_0_0/g,"s");stx=stx.replace(/_0_0_0_0_0_0_0_0_0/g,"r");stx=stx.replace(/_0_0_0_0_0_0_0_0/g,"q");stx=stx.replace(/_0_0_0_0_0_0_0/g,"p");stx=stx.replace(/_0_0_0_0_0_0/g,"o");stx=stx.replace(/_0_0_0_0_0/g,"n");stx=stx.replace(/_0_0_0_0/g,"m");stx=stx.replace(/_0_0_0/g,"l");stx=stx.replace(/_0_0/g,"k");stx=stx.replace(/_0_/g,"u");stx=stx.replace(/_0/g,"a");stx=stx.replace(/_1/g,"b");stx=stx.replace(/_2/g,"c");stx=stx.replace(/_3/g,"d");stx=stx.replace(/_4/g,"e");stx=stx.replace(/_5/g,"f");stx=stx.replace(/_6/g,"g");stx=stx.replace(/_7/g,"h");stx=stx.replace(/_8/g,"i");stx=stx.replace(/_9/g,"j");stx=stx.replace(/0\.00/g,"z");return stx;}
function decompress(str)
{var stx="";for(var i=0;i<str.length;i++)
{if(str.charAt(i)=="y")
{stx+=str.charAt(i+1);i++;}
else if(str.charAt(i)=="t"){stx+="_0_0_0_0_0_0_0_0_0_0_0";}
else if(str.charAt(i)=="s"){stx+="_0_0_0_0_0_0_0_0_0_0";}
else if(str.charAt(i)=="r"){stx+="_0_0_0_0_0_0_0_0_0";}
else if(str.charAt(i)=="q"){stx+="_0_0_0_0_0_0_0_0";}
else if(str.charAt(i)=="p"){stx+="_0_0_0_0_0_0_0";}
else if(str.charAt(i)=="o"){stx+="_0_0_0_0_0_0";}
else if(str.charAt(i)=="n"){stx+="_0_0_0_0_0";}
else if(str.charAt(i)=="m"){stx+="_0_0_0_0";}
else if(str.charAt(i)=="l"){stx+="_0_0_0";}
else if(str.charAt(i)=="k"){stx+="_0_0";}
else if(str.charAt(i)=="u"){stx+="_0_";}
else if(str.charAt(i)=="a"){stx+="_0";}
else if(str.charAt(i)=="b"){stx+="_1";}
else if(str.charAt(i)=="c"){stx+="_2";}
else if(str.charAt(i)=="d"){stx+="_3";}
else if(str.charAt(i)=="e"){stx+="_4";}
else if(str.charAt(i)=="f"){stx+="_5";}
else if(str.charAt(i)=="g"){stx+="_6";}
else if(str.charAt(i)=="h"){stx+="_7";}
else if(str.charAt(i)=="i"){stx+="_8";}
else if(str.charAt(i)=="j"){stx+="_9";}
else if(str.charAt(i)=="z"){stx+="0.00";}
else{stx+=str.charAt(i)}}
return stx;}/*  |xGv00|8446dd8c4b6b013c9dc01b6217a747f7 */