window.dianshangji_tb_debug=!1;window.dianshangji_tb_smsg_debug=!1;window.dianshangji_tb_version="2016-07-06";
if(typeof sogouExplorer!="undefined")try{window.dianshangji_cdr={goingurl_:null,pendingurls_:[],debug_:window.dianshangji_tb_debug,debug:function(b){this.debug_&&console.debug(b)},sendRequest:function(b,a){var d=this;d.goingurl_?d.pendingurls_.push({url:b,callback:a}):(d.goingurl_={url:b,callback:a},d.debug("sendRequest "+b),sogouExplorer.extension.sendRequest(b,function(f){try{d.debug("responseText ("+b+") = "+f.substr(0,100)),typeof f=="undefined"&&(f=null),a(f)}catch(j){d.debug("cdr exception: "+
j+", requestUrl = "+b)}d.goingurl_=null;d.pendingurls_.length>0&&(f=d.pendingurls_[0],d.pendingurls_.splice(0,1),d.sendRequest(f.url,f.callback))}),setTimeout(function(){if(d.goingurl_&&d.goingurl_.url==b){try{a(null)}catch(f){d.debug("cdr exception2: "+f+", requestUrl = "+b)}d.goingurl_=null;if(d.pendingurls_.length>0){var j=d.pendingurls_[0];d.pendingurls_.splice(0,1);d.sendRequest(j.url,j.callback)}}},3E4))},getTabUrl:function(b){this.sendRequest("getmytab://",function(a){b({id:a.id,url:a.url,
title:a.title})})}}}catch(e$$7){}
try{if(window.top==window.self)window.dianshangji_oadaemon={tabId_:0,callerTabId_:0,callerMsgId_:0,init:function(b,a,d){console.log("oadaemon init at "+location.href+", self tab id = "+b+", caller tab id = "+a+", caller msg id = "+d);if(!this.tabId_)this.tabId_=b,this.callerTabId_=a,this.callerMsgId_=d,this.keepalive()},keepalive:function(){var b=this;setTimeout(function(){b.keepalive()},5E3);var a=(new Date).getTime();window.dianshangji_cdr.sendRequest(JSON.stringify({url:"setstorage://oadaemontab/"+b.tabId_+
"_"+a}),function(){})},sendResponse:function(b){console.log("oadaemon send data to caller tab = "+this.callerTabId_+", data = "+b);window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:this.callerTabId_,code:'window.postMessage("'+this.callerMsgId_+"_"+escape(b)+'","*");'}}),function(){})},popupid_:0,toclose_:null,popup:function(b,a,d,f,j){this.toclose_&&this.toclose_();var e=++this.popupid_,h=window.innerWidth,g=window.innerHeight;b<0&&(b=h+b*2);a<0&&(a=g+a*2);var n=
document.createElement("div"),o="position:fixed;left:0px;top:0px;width:100%;height:100%;background-color:gray;opacity:0.5;filter:alpha(opacity:50);";o+=typeof j!="undefined"?"z-index:"+j+";":"z-index:99;";n.style.cssText=o;document.body.appendChild(n);var k=document.createElement("div");k.innerHTML='<div style="font-size:14px;background-color:#0072c6;color:white;text-align:center;height:28px;line-height:28px;"><span id="caption_'+e+'">'+d+'</span></div><div style="height:'+(a-28-4)+'px;overflow-y:auto;">'+
f+'</div><div style="height:4px;"></div>';o="background-color:white;border:2px solid #0072c6;position:fixed;left:"+(h-b)/2+"px;top:"+(g-a)/2+"px;width:"+b+"px;height:"+a+"px;";o+=j?"z-index:"+(j+1)+";":"z-index:100;";k.style.cssText=o;document.body.appendChild(k);this.toclose_=function(){try{document.body.removeChild(k),document.body.removeChild(n)}catch(a){}}}}}catch(e$$9){}
try{if(window.top==window.self&&location.href.match(/^https:\/\/sec.taobao.com\/query\.htm/))try{if(!document.getElementById("dsjlib_querytoken")){if(window.dianshangji_tb_debug){var script=document.createElement("script");script.id="dsj_querytoken";script.src="https://cdn.dianshangji.com/dsjlib/querytoken.js";script.type="text/javascript";script.charset="utf-8";document.body.appendChild(script)}else window.dianshangji_cdr.sendRequest("https://cdn.dianshangji.com/dsjlib/querytoken.js",function(b){if(b){var a=
document.createElement("script");a.id="dsjlib_querytoken";a.text=b;a.type="text/javascript";a.charset="utf-8";document.body.appendChild(a)}});localStorage.removeItem("dsjlib_querytoken");var checkquerytoken=function(){var b=localStorage.getItem("dsjlib_querytoken");null==b?setTimeout(checkquerytoken,1E3):(localStorage.removeItem("dsjlib_querytoken"),window.dianshangji_cdr.sendRequest("setstorage://dsjlib_querytoken/"+JSON.stringify({timestamp:(new Date).getTime(),token:b}),function(){}))};checkquerytoken()}}catch(e$$10){}else if(window.top==
window.self&&(location.href.match(/^http:\/\/[0-9a-zA-Z\.]+\.taobao\.com\//)||location.href.match(/^http:\/\/[0-9a-zA-Z\.]+\.tmall\.com\//)||location.href.match(/^https:\/\/[0-9a-zA-Z\.]+\.taobao\.com\//)||location.href.match(/^https:\/\/[0-9a-zA-Z\.]+\.tmall\.com\//)||location.href.match(/^https:\/\/detail\.yao\.95095\.com\//)||location.href.match(/^https:\/\/detail\.tmall\.hk\//)||location.href.match(/^https:\/\/items\.alitrip\.com\//)||location.href.match(/^https:\/\/item\.alitrip\.com\//)||location.href.match(/^https:\/\/detail\.alitrip\.com\//))){if((location.href.match(/^http:\/\/s\.taobao\.com\//)||
location.href.match(/^https:\/\/s\.taobao\.com\//))&&typeof window.dianshangji_s_taobao_com=="undefined")window.dianshangji_s_taobao_com={extractItemIds:function(){var b=this,a=document.getElementById("mainsrp-itemlist");if(a){var a=document.evaluate('descendant-or-self::*[@trace="msrp_auction"]',a,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),d=[];for(i=0;i<a.snapshotLength;i++){var f=a.snapshotItem(i).getAttribute("data-nid");if(f){var f=parseInt(f),j=!1;for(t in d)if(d[t]==f){j=!0;break}j||
d.push(f)}}console.log("extracted itemids at "+location.href+" : "+JSON.stringify(d));window.dianshangji_oadaemon.sendResponse(JSON.stringify(d))}else setTimeout(function(){b.extractItemIds()},2E3)}};if(typeof window.dianshangji_menu=="undefined")window.dianshangji_menu={ids:"dsjmenu_item-history,dsjmenu_item-day-top20wcount,dsjmenu_item-hour-top20wcount,dsjmenu_item-day-tsearch,dsjmenu_item-catmap-top20wcount,dsjmenu_itemcompetition,dsjmenu_itemrecomm,dsjmenu_title2word,dsjmenu_title2item,dsjmenu_tsearch,dsjmenu_quick_tsearch,dsjmenu_msearch,dsjmenu_quick_msearch,dsjmenu_sellersearch,dsjmenu_plotitemhistory,dsjmenu_recentword,dsjmenu_tmatchporta,dsjmenu_quick_tmatchporta,dsjmenu_tmatchportb,dsjmenu_quick_tmatchportb,dsjmenu_tmatchall,dsjmenu_quick_tmatchall,dsjmenu_top20wmi,dsjmenu_tsearchtrend,dsjmenu_tsearchlocal,dsjmenu_tmatchlocal,dsjmenu_item-page-day-wordcount,dsjmenu_item-page-day-wordcount,dsjmenu_seller-page-day-wordcount,dsjmenu_seller-item-day-sale,dsjmenu_seller-item-day-port,dsjmenu_item-day-port-sale,dsjmenu_item-word-ports,dsjmenu_seller-word-ports,dsjmenu_word-marketstat,dsjmenu_word-token,dsjmenu_item-word-day-port,dsjmenu_item-page-day-adwordcount,dsjmenu_seller-page-day-adwordcount,dsjmenu_item-adword-ports,dsjmenu_seller-adword-ports,dsjmenu_shop-page-day-adwordcount,dsjmenu_item-page-day-adwordcount,dsjmenu_seller-page-day-adwordcount,dsjmenu_item-adword-ports,dsjmenu_seller-adword-ports,dsjmenu_shop-page-day-adwordcount,dsjmenu_tsearchportsold,dsjmenu_catprop,dsjmenu_itemphpitem,dsjmenu_itemshu".split(","),
gethtml:function(b,a,d,f){a="";a+="<table>";a+='<tr><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_item-history" style="color:white;font-weight:normal;font-size:12px;">\u6807\u9898\u4f18\u5316\u8fc7\u7a0b</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_item-day-top20wcount" style="color:white;font-weight:normal;font-size:12px;">\u76f4\u901a\u8f66\u5c55\u793a\u8d8b\u52bf</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_item-day-tsearch" style="color:white;font-weight:normal;font-size:12px;">\u8fd1\u671f\u6392\u540d\u8d8b\u52bf</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_item-catmap-top20wcount" style="color:white;font-weight:normal;font-size:12px;">\u6309\u54c1\u7c7b\u9009\u8bcd</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_itemcompetition" style="color:white;font-weight:normal;font-size:12px;">\u7ade\u4e89\u5bf9\u624b\u5206\u6790</a></td></tr>';
a+='<tr><td style="padding-left:8px;padding-right:8px;"><a target=_blank style="color:white;font-weight:normal;font-size:12px;" href="http://www.dianshangji.com/table.htm?type=item-seller&key='+b+'">\u5e97\u94fa\u8425\u9500\u60c5\u62a5</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="color:white;font-weight:normal;font-size:12px;" id="dsjmenu_itemrecomm">\u5173\u8054\u8bcd\u63a8\u8350</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_title2word" style="color:white;font-weight:normal;font-size:12px;">\u6807\u9898\u5173\u952e\u8bcd\u89e3\u6790</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_title2item" style="color:white;font-weight:normal;font-size:12px;">\u641c\u7d22\u9009\u8bcd\u65b9\u6848</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tsearch" style="color:white;font-weight:normal;font-size:12px;">\u81ea\u7136\u641c\u7d22\u6392\u540d</a></td></tr></tr><tr><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_sellersearch" style="color:white;font-weight:normal;font-size:12px;">\u5e02\u573a\u4efd\u989d\u7edf\u8ba1</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_plotitemhistory" style="color:white;font-weight:normal;font-size:12px;">\u9500\u91cf\u4ef7\u683c\u8d70\u52bf\u56fe</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tmatchporta" style="color:white;font-weight:normal;font-size:12px;">\u9996\u9875\u76f4\u901a\u8f66\u4f4d</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tmatchportb" style="color:white;font-weight:normal;font-size:12px;">\u6b21\u9875\u76f4\u901a\u8f66\u4f4d</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tmatchall" title="\u53ef\u4e00\u952e\u6279\u91cf\u590d\u5236\u5f53\u524d\u5b9d\u8d1d\u7684\u8fd1\u671f\u6240\u6709\u76f4\u901a\u8f66\u9009\u8bcd" style="color:white;font-weight:normal;font-size:12px;">\u8fd1\u671f\u76f4\u901a\u8f66\u9009\u8bcd</a></td></tr><tr><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_top20wmi" style="color:white;font-weight:normal;font-size:12px;">\u53d1\u6563\u5f0f\u5feb\u901f\u9009\u8bcd</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tsearchtrend" style="color:white;font-weight:normal;font-size:12px;">\u5f15\u6d41\u8bcd\u6bcf\u5468\u53d8\u5316</a></td>';
a+=d?'<td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tsearchlocal" style="color:white;font-weight:normal;font-size:12px;">\u5b9a\u5236\u6392\u540d\u76d1\u6d4b</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tmatchlocal" style="color:white;font-weight:normal;font-size:12px;">\u5b9a\u5236\u76f4\u901a\u8f66\u76d1\u6d4b</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="dsjmenu_tsearchportsold" style="color:white;font-weight:normal;font-size:12px;">\u8f6c\u5316\u7387\u6a2a\u5411\u6bd4\u8f83</a></td></tr>':
"<td></td><td></td><td></td></tr>";a+='<tr><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="color:white;font-weight:normal;font-size:12px;" id="dsjmenu_msearch">\u624b\u673a\u7aef\u641c\u7d22\u6392\u540d</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="color:white;font-weight:normal;font-size:12px;" id="dsjmenu_catprop">\u4ea7\u54c1\u7ade\u4e89\u5206\u6790</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="font-weight:normal;font-size:12px;color:white;" id="dsjmenu_itemphpitem">\u540c\u884c\u5b9d\u8d1d\u6e20\u9053</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="color:white;font-weight:normal;font-size:12px;" id="dsjmenu_itemshu">\u5b9d\u8d1d\u641c\u7d22\u6307\u6570</a></td><td style="padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" style="color:white;font-weight:normal;font-size:12px;" id="dsjmenu_makecookie">\u4e2a\u6027\u5316&larr;&rarr;\u65e0\u75d5</a></td></tr></table>';
a+='<div style="clear:both;width:500px;text-align:left;margin-top:5px;">&nbsp;&nbsp;<span style="background:white;"><a style="color:#74a4d1;font-weight:bold;font-size:12px;" id="opendianshangjienterprise" href="javascript:void(0)">&nbsp;&nbsp;\u8fd0\u8425\u81ea\u52a8\u5316&nbsp;&nbsp;</a></span></div>';a+='<table id="dsjmenuoaclienttable" style="clear:both;display:block;"><tr style="border-top:solid 1px white;"><td style="width:84px;padding-left:8px;padding-right:8px;"></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_tsearchdc" style="font-weight:normal;color:white;font-size:12px;">\u5f15\u6d41\u8bcd\u70ed\u5ea6&nbsp;</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_shopdc" style="font-weight:normal;color:white;font-size:12px;">\u5e97\u94fa\u5f15\u6d41\u8bcd&nbsp;</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_shopprice" style="font-weight:normal;color:white;font-size:12px;">\u540c\u884c\u4ef7\u683c\u76d1\u63a7</a></td><td style="width:84px;padding-left:8px;padding-right:8px;">';
a+='<a href="javascript:void(0)" id="oaclientmenu_shopcat" style="font-weight:normal;color:white;font-size:12px;" title="\u652f\u6301\u6dd8\u5b9dC\u5e97\u548c\u5929\u732b\u5e97\u7684\u6309\u7c7b\u76ee\u505a\u6708\u9500\u91cf\u7edf\u8ba1\u5e76\u7ed8\u5236\u9500\u552e\u989d\u5206\u5e03\u56fe\u8868">\u5e97\u94fa\u6708\u8425\u6536\u7ed3\u6784</a>';a+="</td></tr>";a+='<tr><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_s1688" style="font-weight:normal;color:white;font-size:12px;" title="\u6307\u5b9a\u5e97\u94fa/\u5b9d\u8d1d\u548c\u4e00\u6279\u5173\u952e\u8bcd\uff0c\u5b9e\u65f6\u67e5\u8be2s.1688.com\u9875\u9762">\u67e5\u8be21688\u6392\u540d</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_aliexpress" style="font-weight:normal;color:white;font-size:12px;" title="\u6307\u5b9a\u901f\u5356\u901a\u5e97\u94fa\u7f51\u5740/\u5b9d\u8d1d\u7f51\u5740\u548c\u4e00\u6279\u5173\u952e\u8bcd\uff0c\u5b9e\u65f6\u67e5\u8be2www.aliexpress.com\u7684\u641c\u7d22\u5f15\u64ce\uff0c\u6700\u591a250\u9875">\u67e5\u8be2\u901f\u5356\u901a\u6392\u540d</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_searchjd" style="font-weight:normal;color:white;font-size:12px;" title="2016-04-08\u66f4\u65b0\uff1a\u652f\u6301\u4eac\u4e1c\u5168\u7403\u8d2d">\u67e5\u8be2\u4eac\u4e1c\u6392\u540d</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_searchsuning" style="font-weight:normal;color:white;font-size:12px;" title="\u6307\u5b9a\u82cf\u5b81\u5b9d\u8d1d\u548c\u4e00\u6279\u5173\u952e\u8bcd\uff0c\u5b9e\u65f6\u67e5\u8be2search.suning.com\u9875\u9762">\u67e5\u8be2\u82cf\u5b81\u6392\u540d</a></td><td style="width:84px;padding-left:8px;padding-right:8px;"><a href="javascript:void(0)" id="oaclientmenu_searchgome" style="font-weight:normal;color:white;font-size:12px;" title="\u6307\u5b9a\u56fd\u7f8e\u5b9d\u8d1d\u548c\u4e00\u6279\u5173\u952e\u8bcd\uff0c\u5b9e\u65f6\u67e5\u8be2search.gome.com.cn\u9875\u9762">\u67e5\u8be2\u56fd\u7f8e\u6392\u540d</a></td></tr>';
a+="</table>";f&&(a+='<div style="clear:both;width:500px;text-align:left;margin-top:5px;">&nbsp;&nbsp;<span style="background:white;"><a style="color:#74a4d1;font-weight:bold;font-size:12px;" target=_blank href="http://www.dianshangji.com/speedup.htm">&nbsp;&nbsp;\u6211\u7684\u5927\u6570\u636e&nbsp;&nbsp;</a></span>',a+="</div>");return a},getarg:function(b,a,d,f,j,e,h){var g=null;switch(b){case "seller-page-day-wordcount":case "seller-item-day-sale":case "seller-item-day-port":case "seller-word-ports":case "seller-page-day-adwordcount":case "seller-adword-ports":case "shop-page-day-adwordcount":case "seller-page-day-adwordcount":case "dsjmenu_seller-adword-ports":case "shop-page-day-adwordcount":case "tsearchlocal":case "tmatchlocal":g=
d;break;case "word-token":case "word-marketstat":g=10;break;case "title2word":case "title2item":case "sellersearch":case "top20wmi":g=f;break;case "tmatchall":g=window.dianshangji_coder.encode(a.toString());break;case "quick_tmatchall":g=window.dianshangji_coder.encode(a.toString());b=b.substr(6);break;case "quick_tsearch":case "quick_tmatchporta":case "quick_tmatchportb":case "quick_msearch":b=b.substr(6)}b="plot.htm?func="+b+"&item="+a+"&cdr=true";j!="www.dianshangji.com"&&(b+="&mb="+j);typeof g!=
"undefined"&&null!=g&&(b+="&param="+encodeURIComponent(g));b+="&i="+encodeURIComponent(e)+"&n="+encodeURIComponent(h);b+="&en="+dianshangji_tb.isenterprise_+"&ver="+dianshangji_tb.version_;b+="&manifest="+encodeURIComponent(JSON.stringify(dianshangji_tb.manifest_));b+="&showpic=true";return b}};if(typeof window.dianshangji_coder=="undefined")window.dianshangji_coder={keyStr:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/=",encode:function(b){var a="",d,f,j="",e,h,g="",n=0;do d=b.charCodeAt(n++),
f=b.charCodeAt(n++),j=b.charCodeAt(n++),e=d>>2,d=(d&3)<<4|f>>4,h=(f&15)<<2|j>>6,g=j&63,isNaN(f)?h=g=64:isNaN(j)&&(g=64),a=a+this.keyStr.charAt(e)+this.keyStr.charAt(d)+this.keyStr.charAt(h)+this.keyStr.charAt(g);while(n<b.length);return a}};if(typeof window.dianshangji_tb=="undefined"){window.dianshangji_tb={version_:window.dianshangji_tb_version,debug_:!1,debugplot_:!1,plotargs_:{},manifest_:{},isenterprise_:!0,retryTimes:0,bgframe2_:!1,bigdata2_:!1,newpage_:!1,clientid_:"",appconf_:null,words_:null,
itemid_:null,sellerid_:null,nick_:"unknownnick",shelve_:null,itemtitle_:null,tabid_:null,activeserver_:"",servers_:["182.254.159.206","203.195.202.132"],menu_:{timeout_:500,closetimer_:0,ddmenuitem_:0,open:function(b){this.cancelclosetime();if(this.ddmenuitem_)this.ddmenuitem_.style.visibility="hidden";this.ddmenuitem_=document.getElementById(b);this.ddmenuitem_.style.visibility="visible"},close:function(){if(this.ddmenuitem_)this.ddmenuitem_.style.visibility="hidden"},closetime:function(){var b=
this;this.closetimer_=window.setTimeout(function(){b.close()},this.timeout_)},cancelclosetime:function(){if(this.closetimer_)window.clearTimeout(this.closetimer_),this.closetimer_=null}},debug:function(b){this.debug_&&console.log("[tb]"+b)},log:function(b){this.debug_&&console.log("[tb]"+b)},channels_:{taobaohome:{name:"\u6dd8\u5b9d\u9996\u9875",sites:[/^http:\/\/www.taobao.com\//]},tmallhome:{name:"\u5929\u732b\u9996\u9875",sites:[/^http:\/\/www.tmall.com\//]},tejia:{name:"\u5929\u5929\u7279\u4ef7",
sites:[/^http:\/\/tejia.taobao.com\//,/^http:\/\/www.taobao.com\/market\/tejia\//,/^http:\/\/qing.taobao.com\//,/^http:\/\/zhi.taobao.com\//]},trial:{name:"\u514d\u8d39\u8bd5\u7528",sites:[/^http:\/\/try.taobao.com\//,/^http:\/\/www.taobao.com\/market\/try\//,/^http:\/\/www.taobao.com\/go\/act\/try\//]},qiang:{name:"\u6dd8\u5b9d\u62a2\u62cd",sites:[/^http:\/\/qiang.taobao.com/,/^http:\/\/www.taobao.com\/market\/p\//,/^http:\/\/qing.taobao.com/,/^http:\/\/zhi.taobao.com\//]},taojinbi:{name:"\u6dd8\u91d1\u5e01",
sites:[/^http:\/\/taojinbi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/taojinbi\//]},ye:{name:"\u591c\u62a2\u8d2d",sites:[/^http:\/\/ye.taobao.com\//,/^http:\/\/ye.taobao.com\/go\/market\/ye\//,/^http:\/\/ye.taobao.com\/market\/ye\//,/^http:\/\/www.taobao.com\/go\/market\/ye\//,/^http:\/\/www.taobao.com\/market\/ye\//]},ju:{name:"\u805a\u5212\u7b97",sites:[/^http:\/\/ju.taobao.com\//,/^http:\/\/www.taobao.com\/market\/ju\//,/^http:\/\/act.ju.taobao.com\/market\/ju\//,/^http:\/\/act.ju.taobao.com\/go\/market\/ju\//,
/^http:\/\/mingpin.taobao.com\//]},nvxie:{name:"\u5973\u978b",sites:[/^http:\/\/nvxie.taobao.com\//,/^http:\/\/www.taobao.com\/market\/nvxie\//,/^http:\/\/www.taobao.com\/market\/ladyshoes\//,/^http:\/\/nvxie.taobao.com\/market\/ladyshoes\//,/^http:\/\/nvbao.taobao.com\/go\/market\/nvxie\//]},nanxie:{name:"\u7537\u978b",sites:[/^http:\/\/nanxie.taobao.com\//,/^http:\/\/www.taobao.com\/market\/nanxie\//,/^http:\/\/www.taobao.com\/market\/manshoes\//,/^http:\/\/nanxie.taobao.com\/market\/manshoes\//,
/^http:\/\/nvbao.taobao.com\/go\/market\/nanxie\//]},xie:{name:"\u978b\u9774",sites:[/^http:\/\/xie.taobao.com\//,/^http:\/\/www.taobao.com\/market\/xie\//]},mei:{name:"\u7f8e\u5986",sites:[/^http:\/\/mei.taobao.com\//,/^http:\/\/www.taobao.com\/market\/mei\//]},bao:{name:"\u7bb1\u5305",sites:[/^http:\/\/bao.taobao.com\//,/^http:\/\/www.taobao.com\/market\/nvbao\//,/^http:\/\/www.taobao.com\/market\/nanbao\//,/^http:\/\/nvbao.taobao.com\//,/^http:\/\/nanbao.taobao.com\//,/^http:\/\/nvbao.taobao.com\/go\/market\/bao\//,
/^http:\/\/nanbao.taobao.com\/go\/market\/bao\//]},nvzhuang:{name:"\u5973\u88c5",sites:[/^http:\/\/nz.taobao.com\//,/^http:\/\/www.taobao.com\/market\/nvzhuang\//,/^http:\/\/www.taobao.com\/go\/market\/nvzhuang\//]},neiyi:{name:"\u5185\u8863",sites:[/^http:\/\/neiyi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/neiyi\//]},nanzhuang:{name:"\u7537\u88c5",sites:[/^http:\/\/nanzhuang.taobao.com\//,/^http:\/\/www.taobao.com\/market\/nanzhuang\//,/^http:\/\/www.taobao.com\/go\/market\/nanzhuang\//]},
pei:{name:"\u914d\u4ef6",sites:[/^http:\/\/pei.taobao.com\//,/^http:\/\/www.taobao.com\/market\/fspj\//,/^http:\/\/www.taobao.com\/go\/market\/fspj\//]},bling:{name:"\u914d\u9970",sites:[/^http:\/\/bling.taobao.com\//,/^http:\/\/www.taobao.com\/market\/peishi\//,/^http:\/\/www.taobao.com\/market\/shipin\//]},baobao:{name:"\u6bcd\u5a74",sites:[/^http:\/\/baobao.taobao.com\//,/^http:\/\/www.taobao.com\/market\/baobao\//,/^http:\/\/www.taobao.com\/go\/market\/baobao\//]},car:{name:"\u6c7d\u8f66",sites:[/^http:\/\/car.taobao.com\//,
/^http:\/\/www.taobao.com\/market\/car\//,/^http:\/\/www.taobao.com\/go\/market\/car\//]},"3c":{name:"\u6570\u7801",sites:[/^http:\/\/3c.taobao.com\//,/^http:\/\/www.taobao.com\/market\/3c\//]},cdj:{name:"\u6f6e\u7535\u8857",sites:[/^http:\/\/cdj.taobao.com\//,/^http:\/\/www.taobao.com\/market\/3cdj\//,/^http:\/\/www.taobao.com\/market\/3c\/cdjqqdq.php/]},house:{name:"\u5bb6\u5c45",sites:[/^http:\/\/home.taobao.com\//,/^http:\/\/www.taobao.com\/market\/home\//]},jia:{name:"\u5bb6\u88c5",sites:[/^http:\/\/jia.taobao.com\//,
/^http:\/\/www.taobao.com\/market\/jia\//]},sport:{name:"\u8fd0\u52a8\u6237\u5916",sites:[/^http:\/\/sport.taobao.com\//,/^http:\/\/www.taobao.com\/market\/sport\//,/^http:\/\/www.taobao.com\/market\/huwai\//,/^http:\/\/taotelaisi.taobao.com\//]},jiadian:{name:"\u5bb6\u7535",sites:[/^http:\/\/jiadian.taobao.com\//,/^http:\/\/www.taobao.com\/market\/jiadian\//]},baihuo:{name:"\u767e\u8d27",sites:[/^http:\/\/baihuo.taobao.com\//,/^http:\/\/www.taobao.com\/market\/baihuo\//,/^http:\/\/www.taobao.com\/go\/market\/baihuo\//]},
china:{name:"\u7279\u8272\u4e2d\u56fd",sites:[/^http:\/\/china.taobao.com\//,/^http:\/\/www.taobao.com\/market\/china\//,/^http:\/\/[a-z0-9]+.china.taobao.com\//,/^http:\/\/china.chi.taobao.com\//]},chi:{name:"\u6c47\u5403",sites:[/^http:\/\/ny.taobao.com\//,/^http:\/\/chi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/chi\//,/^http:\/\/tiaoshi.chi.taobao.com\//,/^http:\/\/world.chi.taobao.com\//,/^http:\/\/chufang.chi.taobao.com\//],filters:[/^http:\/\/china.chi.taobao.com\//]},tese:{name:"\u7279\u8272",
sites:[/^http:\/\/tese.taobao.com\//,/^http:\/\/www.taobao.com\/market\/tese\//,/^http:\/\/www.taobao.com\/go\/market\/tese\//]},star:{name:"\u661f\u5e97",sites:[/^http:\/\/star.taobao.com\//,/^http:\/\/www.taobao.com\/market\/star\//,/^http:\/\/www.taobao.com\/go\/market\/star\//,/^http:\/\/www.taobao.com\/go\/act\/star\//]},gmall:{name:"\u5168\u7403\u8d2d",sites:[/^http:\/\/www.taobao.com\/market\/gmall\//,/^http:\/\/g.taobao.com\//,/^http:\/\/www.taobao.com\/go\/market\/gmall\//,/^http:\/\/g.taobao.com\/market\/gmall\//]},
hi:{name:"\u4f17\u7b79",sites:[/^http:\/\/hi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/hi\//,/^http:\/\/www.taobao.com\/go\/market\/hi\//]},secondhand:{name:"\u4e8c\u624b",sites:[/^http:\/\/2.taobao.com\//,/^http:\/\/www.taobao.com\/market\/2\//]},acg:{name:"\u52a8\u6f2b",sites:[/^http:\/\/acg.taobao.com\//,/^http:\/\/www.taobao.com\/market\/acg\//,/^http:\/\/www.taobao.com\/go\/market\/acg\//]},baoxian:{name:"\u4fdd\u9669",sites:[/^http:\/\/baoxian.taobao.com\//,/^http:\/\/www.taobao.com\/go\/chn\/baoxian\//,
/^http:\/\/www.taobao.com\/go\/act\/baoxian\//]},licai:{name:"\u7406\u8d22",sites:[/^http:\/\/licai.taobao.com\//,/^http:\/\/www.taobao.com\/market\/baobao\//,/^http:\/\/www.taobao.com\/go\/chn\/licai\//]},caipiao:{name:"\u5f69\u7968",sites:[/^http:\/\/caipiao.taobao.com\//,/^http:\/\/www.taobao.com\/go\/chn\/caipiao\//,/^http:\/\/www.taobao.com\/go\/act\/lottery\//]},enjoy:{name:"\u82b1\u9e1f",sites:[/^http:\/\/enjoy.taobao.com\//,/^http:\/\/www.taobao.com\/market\/pet\//,/^http:\/\/www.taobao.com\/market\/xianhua\//]},
fang:{name:"\u623f\u4ea7",sites:[/^http:\/\/fang.taobao.com\//]},hunban:{name:"\u5a5a\u4f34",sites:[/^http:\/\/hunban.taobao.com\//,/^http:\/\/www.taobao.com\/market\/xishi\//,/^http:\/\/www.taobao.com\/go\/market\/xishi\//]},ktv:{name:"\u6dd8\u5b9dktv",sites:[/^http:\/\/ktv.taobao.com\//,/^http:\/\/www.taobao.com\/market\/ktv\//,/^http:\/\/www.taobao.com\/go\/market\/ktv\//,/^http:\/\/www.taobao.com\/market\/living\/ktv\//]},jiatingbaojie:{name:"\u5bb6\u5ead\u4fdd\u6d01",sites:[/^http:\/\/1.life.taobao.com\//]},
life:{name:"\u751f\u6d3b\u670d\u52a1",sites:[/^http:\/\/life.taobao.com\//,/^http:\/\/www.taobao.com\/market\/life\//,/^http:\/\/www.taobao.com\/go\/market\/life\//]},xue:{name:"\u540c\u5b66",sites:[/^http:\/\/xue.taobao.com\//,/^http:\/\/www.taobao.com\/market\/xue\//,/^http:\/\/www.taobao.com\/go\/market\/xue\//,/^http:\/\/xue.taobao.com\/market\/xue\//,/^http:\/\/xue.taobao.com\/go\/market\/xue\//,/^http:\/\/i.xue.taobao.com\//]},wenyu:{name:"\u6587\u5a31",sites:[/^http:\/\/wenyu.taobao.com\//,
/^http:\/\/www.taobao.com\/market\/wenyu\//,/^http:\/\/www.taobao.com\/go\/market\/wenyu\//]},zln:{name:"\u4e2d\u8001\u5e74",sites:[/^http:\/\/zln.taobao.com\//,/^http:\/\/www.taobao.com\/market\/zln\//,/^http:\/\/www.taobao.com\/go\/market\/zln\//]},dapei:{name:"\u642d\u914d",sites:[/^http:\/\/dapei.taobao.com\//,/^http:\/\/www.taobao.com\/market\/dapei\//,/^http:\/\/www.taobao.com\/go\/market\/dapei\//,/^http:\/\/hangyeshequ.taobao.com\/dapei\//]},nanren:{name:"\u7537\u4eba",sites:[/^http:\/\/nanren.taobao.com\//,
/^http:\/\/www.taobao.com\/market\/nanren\//,/^http:\/\/www.taobao.com\/go\/market\/nanren\//]},nvren:{name:"\u5973\u4eba",sites:[/^http:\/\/nvren.taobao.com\//]},qinglv:{name:"\u60c5\u4fa3",sites:[/^http:\/\/qinglv.taobao.com\//]},qiangdiao:{name:"\u8154\u8c03",sites:[/^http:\/\/style.taobao.com\//,/^http:\/\/www.taobao.com\/market\/style\//,/^http:\/\/www.taobao.com\/go\/market\/style\//]},shenghuo:{name:"\u751f\u6d3b\u5bb6",sites:[/^http:\/\/shenghuo.taobao.com\//]},zuitaobao:{name:"\u6700\u6dd8\u5b9d",
sites:[/^http:\/\/www.taobao.com\/market\/promo\/zuitaobao.php/]},zhoumo:{name:"\u5468\u672b",sites:[/^http:\/\/zhoumo.taobao.com\//,/^http:\/\/www.taobao.com\/market\/weekend\//,/^http:\/\/www.taobao.com\/go\/market\/weekend\//]},gongyi:{name:"\u516c\u76ca",sites:[/^http:\/\/gongyi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/gongyi\//,/^http:\/\/www.taobao.com\/go\/market\/gongyi\//]},vip:{name:"\u4f1a\u5458",sites:[/^http:\/\/vip.taobao.com\//]},paimai:{name:"\u62cd\u5356",sites:[/^http:\/\/paimai.taobao.com\//,
/^http:\/\/www.taobao.com\/market\/paimai\//,/^http:\/\/www.taobao.com\/go\/market\/paimai\//,/^http:\/\/zc.paimai.taobao.com\//,/^http:\/\/sf.taobao.com\//]},trip:{name:"\u963f\u91cc\u65c5\u884c",sites:[/^http:\/\/trip.taobao.com\//,/^http:\/\/www.taobao.com\/market\/trip\//,/^http:\/\/www.taobao.com\/go\/market\/trip\//,/^http:\/\/temai.trip.taobao.com\//,/^http:\/\/www.alitrip.com\//]},game:{name:"\u6e38\u620f\u4ea4\u6613",sites:[/^http:\/\/game.taobao.com\//,/^http:\/\/www.taobao.com\/market\/game\//,
/^http:\/\/www.taobao.com\/go\/market\/game\//]},wan:{name:"\u6e38\u620f\u4e2d\u5fc3",sites:[/^http:\/\/wan.taobao.com\//]},yun:{name:"\u963f\u91cc\u5c0f\u667a",sites:[/^http:\/\/yun.taobao.com\//,/^http:\/\/act.yun.taobao.com\//]},laba:{name:"\u5e74\u8d27\u8282",sites:[/^http:\/\/laba.taobao.com\//]},dianying:{name:"\u7535\u5f71",sites:[/^http:\/\/dianying.taobao.com\//,/^http:\/\/www.taobao.com\/market\/dianying\//,/^http:\/\/www.taobao.com\/go\/market\/dianying\//]},ebook:{name:"\u9605\u8bfb",
sites:[/^http:\/\/ebook.taobao.com\//,/^http:\/\/www.taobao.com\/go\/act\/ebook\//,/^http:\/\/shuziitem.taobao.com\//]},music:{name:"\u97f3\u4e50\u9986",sites:[/^http:\/\/music.taobao.com\//,/^http:\/\/music.taobao.com\/market\/music\//]},waimai:{name:"\u6dd8\u70b9\u70b9",sites:[/^http:\/\/waimai.taobao.com\//,/^http:\/\/www.taobao.com\/market\/dd\//,/^http:\/\/www.taobao.com\/go\/market\/dianying\//,/^http:\/\/dd.taobao.com\//]},wt:{name:"\u7f51\u4e0a\u8425\u4e1a\u5385",sites:[/^http:\/\/wt.taobao.com\//]},
gushi:{name:"\u6545\u4e8b",sites:[/^http:\/\/gushi.taobao.com\//,/^http:\/\/www.taobao.com\/market\/promo\/story\//]},tmallnvzhuang:{name:"\u5929\u732b\u5973\u88c5",sites:[/^http:\/\/nvzhuang.tmall.com\//,/^http:\/\/new.nvzhuang.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/fushi\/nvzhuang\/fashion\//,/^http:\/\/www.tmall.com\/go\/market\/fushi\//]},tmallladygo:{name:"\u4fea\u4eba\u8d2d",sites:[/^http:\/\/ladygo.tmall.com\//]},tmallnanzhuang:{name:"\u5929\u732b\u7537\u88c5",sites:[/^http:\/\/nanzhuang.tmall.com\//,
/^http:\/\/new.nanzhuang.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/fushi\/shishang.php/,/^http:\/\/www.tmall.com\/go\/market\/fushi\/shangwu.php/]},tmallnvxie:{name:"\u5929\u732b\u5973\u978b",sites:[/^http:\/\/nvxie.tmall.com\//,/^http:\/\/new.nvxie.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/fushi\/nvxie\/fashion\//]},tmallnanxie:{name:"\u5929\u732b\u7537\u978b",sites:[/^http:\/\/nanxie.tmall.com\//,/^http:\/\/new.nanxie.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/fushi\/nanxie\/fashion\//]},
tmallneiyi:{name:"\u5929\u732b\u5185\u8863",sites:[/^http:\/\/neiyi.tmall.com\//,/^http:\/\/new.neiyi.tmall.com\//]},tmallbag:{name:"\u5929\u732b\u7bb1\u5305",sites:[/^http:\/\/bag.tmall.com\//,/^http:\/\/new.bag.tmall.com\//]},tmallsports:{name:"\u5929\u732b\u8fd0\u52a8",sites:[/^http:\/\/sports.tmall.com\//,/^http:\/\/new.sports.tmall.com\//,/^http:\/\/yundong.tmall.com\//]},tmalldai:{name:"\u5929\u732b\u914d\u9970",sites:[/^http:\/\/dai.tmall.com\//]},tmall3c:{name:"\u5929\u732b\u7535\u5668\u57ce",
sites:[/^http:\/\/3c.tmall.com\//,/^http:\/\/new.3c.tmall.com\//,/^http:\/\/ku.3c.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/3c\/fenqigou.php/,/^http:\/\/www.tmall.com\/go\/market\/promotion-act\/big.php/]},tmallcar:{name:"\u5929\u732b\u6c7d\u8f66",sites:[/^http:\/\/car.tmall.com\//]},tmallmei:{name:"\u5929\u732b\u7f8e\u5986",sites:[/^http:\/\/mei.tmall.com\//,/^http:\/\/act.mei.tmall.com\/go\/market\/mei\//]},tmallhi:{name:"\u5929\u732b\u5986\u95ea\u9753",sites:[/^http:\/\/hi.tmall.com\//]},
tmallbaby:{name:"\u5929\u732b\u6bcd\u5a74",sites:[/^http:\/\/baby.tmall.com\//]},tmalljia:{name:"\u5929\u732b\u5bb6\u88c5",sites:[/^http:\/\/jia.tmall.com\//,/^http:\/\/ju.jia.tmall.com\//,/^http:\/\/diy.jia.tmall.com\//]},tmallmyhome:{name:"\u5929\u732b\u5bb6\u5c45",sites:[/^http:\/\/myhome.tmall.com\//]},tmallmi:{name:"\u5929\u732b\u8ff7\u85cf",sites:[/^http:\/\/mi.tmall.com\//]},tmallyao:{name:"\u5929\u732b\u533b\u836f",sites:[/^http:\/\/yao.tmall.com\//,/^http:\/\/new.bag.tmall.com\//,/^https:\/\/[0-9a-zA-Z]*\.yao\.95095\.com\//]},
tmallfood:{name:"\u5929\u732b\u98df\u54c1",sites:[/^http:\/\/food.tmall.com\//]},tmallchi:{name:"\u5929\u732b\u5403\u4e50\u4f1a",sites:[/^http:\/\/chi.tmall.com\//]},tmallmiao:{name:"\u5929\u732b\u55b5\u9c9c\u751f",sites:[/^http:\/\/miao.tmall.com\//]},tmallhua:{name:"\u5929\u732b\u55b5\u55b5\u82b1\u56ed",sites:[/^http:\/\/hua.tmall.com\//]},tmallbook:{name:"\u5929\u732b\u4e66\u57ce",sites:[/^http:\/\/book.tmall.com\//]},tmallhk:{name:"\u5929\u732b\u56fd\u9645",sites:[/^http:\/\/www.tmall.hk\//]},
tmalloo:{name:"\u5929\u732b\u826f\u65e0\u57a0",sites:[/^http:\/\/oo.tmall.com\//,/^http:\/\/super.taobao.com\//,/^http:\/\/lp.taobao.com\//]},tmallchaoshi:{name:"\u5929\u732b\u8d85\u5e02",sites:[/^http:\/\/chaoshi.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/chaoshiPc\//]},tmallvip:{name:"\u5929\u732b\u4f1a\u5458",sites:[/^http:\/\/vip.tmall.com\//,/^http:\/\/www.tmall.com\/go\/market\/huiyuan\//]},tmall:{name:"\u5929\u732b",sites:[/^http:\/\/nvzhuang.tmall.com\//,/^http:\/\/new.bag.tmall.com\//]},
tmallbrand:{name:"\u5929\u732b\u5c1a\u5929\u732b",sites:[/^http:\/\/brand.tmall.com\//]},tmallkaicang:{name:"\u5929\u732b\u5f00\u4ed3\u65e5",sites:[/^http:\/\/kaicang.tmall.com\//]}},parseInnerText:function(b,a,d,f){typeof d=="string"&&(d=[d]);for(var j=0;j<d.length;j++){a=b.indexOf(d[j],a);if(a<0)return null;a+=d[j].length}if(typeof f=="undefined")return b.substring(a);var d=-1,e;typeof f=="string"&&(f=[f]);for(j=0;j<f.length;j++)if(e=f[j],null!=e){if(d=b.indexOf(e,a),d>=0)break}else{d=b.length;
break}return d<0?null:{text:b.substring(a,d),end:d+(e==null?0:e.length)}},parseQueryStringByAmp:function(b){var a=b.indexOf("?");if(a<0)return{};for(var b=b.substr(a+1).split("&amp;"),a={},d=0;d<b.length;d++){var f=b[d].split("=");f.length==2&&(a[f[0]]=f[1])}return a},parseQueryStringEx:function(b,a){var d=b.indexOf("?");if(d<0)return{};for(var d=b.substr(d+1).split(a),f={},j=0;j<d.length;j++){var e=d[j].split("=");e.length==2&&(f[e[0]]=e[1])}return f},run:function(b){var a=this,d=a.parseTaobaoItemid(location.href);
if(null==d){var f=null,j=null,d=location.href;d.indexOf("?")>0&&(d=d.substr(0,d.indexOf("?")));d.match(/^https:\/\//)&&(d="http://"+d.substr(8));d=="http://www.taobao.com/index.php"?d="http://www.taobao.com/":d=="http://www.tmall.com/index.php"&&(d="http://www.tmall.com/");if(d.indexOf(".php")>0)var e=d.indexOf(".php")+4,f=d.substr(0,e),j=document.title;else if(d.indexOf("http://www.taobao.com/markets/act/")==0||d.indexOf("http://www.taobao.com/markets/promotion/")==0||d.indexOf("http://www.taobao.com/markets/20151212/")==
0)f=d,j=document.title;else if(d.match(/\.com\/$/))for(c in a.channels_){e=a.channels_[c].sites;for(s in e)if(d.match(e[s])){j=a.channels_[c].name;f=d;break}if(f)break}if(f){console.log("channel = "+f+", caption = "+j);var h=[],g=0;setTimeout(function(){if(document.links.length!=g)g=document.links.length,a.findEmbedItems(f,j,h)},3E3);setTimeout(function(){if(document.links.length!=g)g=document.links.length,a.findEmbedItems(f,j,h)},1E4);setTimeout(function(){if(document.links.length!=g)g=document.links.length,
a.findEmbedItems(f,j,h)},3E4);setTimeout(function(){if(document.links.length!=g)g=document.links.length,a.findEmbedItems(f,j,h)},6E4)}}else{a.itemid_=d;e=document.getElementById("J_StrPriceModBox");if(!e&&(e=document.getElementById("J_PromoPrice"),!e)){a.retryTimes++;a.retryTimes<60&&setTimeout(function(){a.run(b)},2E3);return}var e=e.parentElement,n=a.getnick();a.nick_=n;var o=a.getsellerid();a.sellerid_=o;a.getitemtitle();a.debug("dianshangji_tb.pricebox = "+e+", itemid = "+d+", sellerid = "+a.sellerid_);
try{a.displayMenu(e,d,o,n,b)}catch(k){a.debug("displayMenu exception: "+k)}a.retrieveItemIndex(d)}},getsellerid:function(){for(var b=document.getElementsByTagName("meta"),a=0;a<b.length;a++)if(b[a].name=="microscope-data"&&b[a].content.indexOf("userid=")>0){var d=b[a].content.indexOf("userid=");d+=7;var f=b[a].content.indexOf(";",d);return b[a].content.substr(d,f-d)}return null},parseTaobaoItemid:function(b){if(b.indexOf("/item.htm")<0)return null;0==b.indexOf("http://")?b=b.substr(7):0==b.indexOf("https://")&&
(b=b.substr(8));if(b.match(/^item\.taobao\.com/)||b.match(/^detail\.tmall\.com/)||b.match(/^chaoshi\.detail\.tmall\.com/)||b.match(/^detail\.yao\.95095\.com/)||b.match(/^detail\.tmall\.hk/)||b.match(/^items\.alitrip\.com/)||b.match(/^detail\.alitrip\.com/)||b.match(/^item\.alitrip\.com/)){var a="mallstItemId=",d=b.indexOf(a);if(d<0&&(a="itemId=",d=b.indexOf(a),d<0&&(a="item_id=",d=b.indexOf(a),d<0&&(a="&id=",d=b.indexOf(a),d<0&&(a="?id=",d=b.indexOf(a),d<0)))))return null;d+=a.length;a=b.indexOf("&",
d);a<0&&(a=b.indexOf("#",d));if(a<0)a=b.length;b=parseInt(b.substring(d,a));return null==b?null:b}},uniqueSort:function(b){var a={},d=[],f;for(s in b)f=b[s],f in a||(a[f]=!0,d.push(f));return d},findEmbedItems:function(b,a,d){var f=document.links,j,e=[];for(l in f)if(f[l].href){j=null;if(f[l].href.match(/^http:\/\/click.mz.simba.taobao.com\//)){var h=f[l].href.indexOf("item.htm%3Fid%3D");if(h>0){h+=16;var g=f[l].href.indexOf("&",h);g>0&&(j="mz"+f[l].href.substr(h,g-h),h=j.indexOf("%"),h>0&&(j=j.substr(0,
h)))}}else j=this.parseTaobaoItemid(f[l].href);if(j)for(ei in d)if(d[ei]==j){j=null;break}j&&e.push(j)}if(e.length>0){e=this.uniqueSort(e);for(ii in e)d.push(e[ii]);b={url:"indexdb://",postData:{func:"save",dbname:"tbphpitem",doc:{php:b,title:a,items:e,timestamp:(new Date).getTime()},options:{}}};window.dianshangji_cdr.sendRequest(JSON.stringify(b),function(){})}},hextostring:function(b){var a="";for(i=0;i<b.length;i+=3)a+=String.fromCharCode(parseInt(b.substr(i+1,2),16));return a},statusback:function(b,
a,d,f){window.dianshangji_cdr.sendRequest("http://"+this.activeserver_+"/statusback.htm?nick="+encodeURIComponent(b)+"&itemid="+a+"&peer="+encodeURIComponent(d)+"&msg="+encodeURIComponent(f),function(){})},gettabid:function(b){var a=this;window.dianshangji_cdr.sendRequest("getalltabs://",function(d){var f=JSON.parse(d);for(tab in f)if(f[tab].url==location.href){b(f[tab].id);return}a.debug("getalltabs returns "+d+", but location.href = "+location.href);b(0)})},postbbs:function(){},getitemtitle:function(){if(this.itemtitle_)return this.itemtitle_;
var b=document.title.replace("-tmall.com\u5929\u732b","").replace("-\u6dd8\u5b9d\u7f51","");if(b){var a=b.indexOf("\u3011");a>0&&a<6?b=b.substr(a+1):(a=b.indexOf(" "),a>0&&a<=6&&(b=b.substr(a+1)))}return this.itemtitle_=b},callmytab:function(b){window.dianshangji_cdr.sendRequest("getalltabs://",function(a){a=JSON.parse(a);for(tab in a)if(a[tab].url==location.href){window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:a[tab].id,code:b}}),function(){});break}})},recyclepost:function(){},
insertAfter:function(b,a){var d=a.parentNode;d.lastChild==a?d.appendChild(b):d.insertBefore(b,a.nextSibling)},displayMenu:function(b,a,d,f,j){var e=this,h='<div id="dsjmessaging"><div id="dsjmessagingpanel"></div></div>';h+='<a target=_blank href="http://www.dianshangji.com/installation.htm" title="\u5173\u4e8e\u7535\u5546\u8bb0\u5ba2\u6237\u7aef\u8f6f\u4ef6" style="color: #b10000;font-size:12px;font-weight:normal;"><img src="https://cdn.dianshangji.com/dsj16.png" style="border:none;" valign="middle" id="dianshangji_logo"></a>';
h+='<span id="dsjband" style="color: #b10000;font-size:12px;font-weight:normal;">\u7535\u5546\u8bb0</span><span id="dsjmenuhead" style="margin-right:8px;color: #b10000;font-size:12px;">\u60c5\u62a5\u96c6\u5408</span>';h+='<a href="javascript:void(0)" style="margin-left:1px;margin-right:8px;color: #b10000;font-size:12px;font-weight:normal;display:none;" id="dsjmenu_quick_tsearch"></a>';h+='<a href="javascript:void(0)" style="margin-right:4px;color: #b10000;font-size:12px;font-weight:normal;display:none;" id="dsjmenu_quick_tmatchporta"></a>';
h+='<a href="javascript:void(0)" style="margin-right:4px;color: #b10000;font-size:12px;font-weight:normal;display:none;" id="dsjmenu_quick_tmatchportb"></a>';h+='<a href="javascript:void(0)" style="margin-right:4px;color: #b10000;font-size:12px;font-weight:normal;display:none;" id="dsjmenu_quick_tmatchall"></a>';h+='<a href="javascript:void(0)" style="margin-right:4px;color: #b10000;font-size:12px;font-weight:normal;display:none;" id="dsjmenu_quick_msearch"></a>';h+='<span id="dsjcopyword"></span>';
h+='<span id="dsjitemphpweight"></span>';h+='<div id="dsjpostbbs" style="display:none"></div><div id="dsjrecyclebbs" style="display:none;"></div><div style="display:none"><a id="newpageplot" href="javascript:void(0)" target=_blank>&nbsp;</a></div>';h+='<div id="dsjmenu" style="z-index:2147483647;position:absolute;left:0px;padding:8px;color:#74a4d1;background-color:#74a4d1;border:1px solid #aaa;visibility:hidden;;width:520px;"><div id="dsjmenuclose" style="display:none;height:16px;"><span style="float:right;"><a href="javascript:void(0)" >\u5173\u95ed</a></span></div>';
h+=window.dianshangji_menu.gethtml(a,d,e.bgframe2_,e.bigdata2_,!0,j,f,e.appconf_);h+="</div>";e.debug("dianshangji_tb.displayMenu is called");var g=document.createElement("div");g.id="dsjmenucontainer";g.style.cssText="position:relative;min-height: 16px;line-height: 16px;padding: 1px 5px;vertical-align: middle;text-align:left;width:520px;";g.innerHTML=h;e.insertAfter(g,b);try{g.setAttribute("data-dsjversion",window.dianshangji_tb_version)}catch(n){}var o=!1;try{e.debug("call retrieveItemDetail("+
a+")"),e.retrieveItemDetail(a)}catch(k){e.debug("retrieveItemDetail exception: "+k)}try{var p=function(a){window.dianshangji_cdr.sendRequest("opennewtab://"+a,function(a){console.log("opennewtab returns: "+a);window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:parseInt(a),code:"window.dianshangji_tabid="+a+';console.log("tab id set by caller: '+a+'");setTimeout(function(){document.documentElement.setAttribute("dianshangji_tabid", window.dianshangji_tabid);}, 2000);'}}),
function(){})})};document.getElementById("opendianshangjienterprise").addEventListener("click",function(){p("http://www.dianshangji.com/enterprise.htm")});document.getElementById("dsjmenu_makecookie").addEventListener("click",function(){var a=e.getnick();a=="unknownnick"?window.dianshangji_cdr.sendRequest("getstorage://taobaohistorycookie",function(a){var b="unknownnick";a&&(b=e.getnick(a));b=="unknownnick"?window.alert("\u5f53\u524d\u5904\u4e8e\u533f\u540d\u6d4f\u89c8\u6dd8\u5b9d\u6a21\u5f0f"):window.confirm("\u5f53\u524d\u5904\u4e8e\u533f\u540d\u6d4f\u89c8\u6dd8\u5b9d\u6a21\u5f0f\uff0c\u786e\u8ba4\u6062\u590d\u5230\u4e2a\u6027\u5316\u5e10\u53f7\u3010"+
b+"\u3011\u5417\uff1f")&&window.dianshangji_cdr.sendRequest("opennewtab://http://s.taobao.com",function(d){var e="if(window.top==window.self){window.dianshangji_tabid="+d+';console.log("tab id set by caller: '+d+'");setTimeout(function(){document.documentElement.setAttribute("dianshangji_tabid", window.dianshangji_tabid);window.alert("\u6d4f\u89c8\u6dd8\u5b9d\u7f51\u7ad9\uff08taobao.com\uff09\u5c06\u6062\u590d\u5230\u4e2a\u6027\u5316\u5e10\u53f7\u3010'+b+'\u3011");var historycookie="'+a+'";var now = new Date();var i,x,y,ARRcookies=historycookie.split(";");for (i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\\s+|\\s+$/g,""); document.cookie = x + "=" + y + ";Domain=.taobao.com;Path=/;Expires=" + new Date(now.getTime() + 48 * 3600 * 1000).toUTCString();}location.href="http://s.taobao.com/";}, 2000);}';
console.log("code = "+e);window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:parseInt(d),code:e}}),function(){});setTimeout(function(){window.dianshangji_cdr.sendRequest("opennewtab://http://www.tmall.com",function(d){window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:parseInt(d),code:"if(window.top==window.self){window.dianshangji_tabid="+d+';console.log("tab id set by caller: '+d+'");setTimeout(function(){document.documentElement.setAttribute("dianshangji_tabid", window.dianshangji_tabid);window.alert("\u6d4f\u89c8\u5929\u732b\u7f51\u7ad9\uff08tmall.com\uff09\u5c06\u6062\u590d\u5230\u4e2a\u6027\u5316\u5e10\u53f7\u3010'+
b+'\u3011");var historycookie="'+a+'";var now = new Date();var i,x,y,ARRcookies=historycookie.split(";");for (i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\\s+|\\s+$/g,""); document.cookie = x + "=" + y + ";Domain=.tmall.com;Path=/;Expires=" + new Date(now.getTime() + 48 * 3600 * 1000).toUTCString();}location.href="http://www.tmall.com/";}, 2000);}'}}),function(){})})},500)})}):window.confirm("\u5f53\u524d\u5904\u4e8e\u4e2a\u6027\u5316\u6d4f\u89c8\u6dd8\u5b9d\u6a21\u5f0f,\u5e10\u53f7\u3010"+
a+"\u3011\uff0c\u786e\u8ba4\u5207\u6362\u5230\u533f\u540d\u6a21\u5f0f\uff1f")&&window.dianshangji_cdr.sendRequest("setstorage://taobaohistorycookie/"+document.cookie,function(a){window.dianshangji_cdr.sendRequest("opennewtab://http://s.taobao.com",function(b){window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",postData:{tabId:parseInt(b),code:"if(window.top==window.self){window.dianshangji_tabid="+b+';console.log("tab id set by caller: '+b+'");setTimeout(function(){document.documentElement.setAttribute("dianshangji_tabid", window.dianshangji_tabid);window.alert("\u6d4f\u89c8\u6dd8\u5b9d\u7f51\u7ad9(taobao.com\uff09\u5c06\u5207\u6362\u5230\u533f\u540d\u6a21\u5f0f");var historycooke="'+
a+'";var now = new Date();var i,x,y,ARRcookies=document.cookie.split(";");for (i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^s+|s+$/g,""); document.cookie = x + "=0;Domain=.taobao.com;Path=/;Expires=" + new Date(0).toUTCString();}location.href="http://s.taobao.com/";}, 2000);}'}}),function(){})});setTimeout(function(){window.dianshangji_cdr.sendRequest("opennewtab://http://www.tmall.com",function(b){window.dianshangji_cdr.sendRequest(JSON.stringify({url:"calltab://",
postData:{tabId:parseInt(b),code:"if(window.top==window.self){window.dianshangji_tabid="+b+';console.log("tab id set by caller: '+b+'");setTimeout(function(){document.documentElement.setAttribute("dianshangji_tabid", window.dianshangji_tabid);window.alert("\u6d4f\u89c8\u5929\u732b\u7f51\u7ad9\uff08tmall.com\uff09\u5c06\u5207\u6362\u5230\u533f\u540d\u6a21\u5f0f");var historycooke="'+a+'";var now = new Date();var i,x,y,ARRcookies=document.cookie.split(";");for (i=0;i<ARRcookies.length;i++){x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^s+|s+$/g,""); document.cookie = x + "=0;Domain=.tmall.com;Path=/;Expires=" + new Date(0).toUTCString();}location.href="http://www.tmall.com/";}, 2000);}'}}),
function(){})})},500)})});b="tsearchdc,shopdc,shopcat,shopprice,s1688,searchjd,searchsuning,searchgome,aliexpress,newon".split(",");h=function(b){var e="http://www.dianshangji.com/oaclient.htm?func="+b+"&item="+a+"&seller="+d;document.getElementById("oaclientmenu_"+b).addEventListener("click",function(){p(e)})};for(m in b)h(b[m])}catch(r){}document.getElementById("dsjmenuclose").addEventListener("click",function(){o=!1;document.getElementById("dsjmenu").style.visibility="hidden";var a=document.getElementById("J_ShopPromo");
if(a)a.style.visibility="visible"});b=document.getElementById("dsjmenuhead");b.onmouseover=function(){e.menu_.open("dsjmenu")};b.onmouseout=function(){o||e.menu_.closetime()};h=document.getElementById("dsjmenu");h.onmouseover=function(){e.menu_.cancelclosetime()};h.onmouseout=function(){o||e.menu_.closetime()};e.clickmenu=function(){var a=document.getElementById("J_ShopPromo");if(a)a.style.visibility="hidden";a=this.id.substr(8);try{if(e.newpage_&&e.bgframe2_&&e.bigdata2_)window.dianshangji_cdr.sendRequest("setstorage://newpageplotcontext/"+
JSON.stringify({menu:a,item:e.itemid_,seller:e.sellerid_,title:e.itemtitle_,activeserver:e.activeserver_}),function(){var a=document.getElementById("newpageplot");e.menu_.closetime();a.click()});else{o=!0;document.getElementById("dsjmenuclose").style.display="block";switch(a){case "quick_tsearch":case "quick_tmatchporta":case "quick_tmatchportb":case "quick_msearch":case "quick_tmatchall":e.menu_.open("dsjmenu")}var b=window.dianshangji_menu.getarg(a,e.itemid_,e.sellerid_,e.itemtitle_,e.activeserver_,
j,f),d=(new Date).getTime().toString();e.plotargs_[d]=b;window.open(window.dianshangji_tb_debug?"https://cdn.dianshangji.com/plot2embeda_debug.htm#"+d:"https://cdn.dianshangji.com/plot2embeda.htm#"+d)}}catch(g){e.debug("postMessage "+b+" exception: "+g),alert('\u60a8\u7684\u6d4f\u89c8\u5668\u7248\u672c\u65e0\u6cd5\u663e\u793a\u60c5\u62a5\u96c6\u5408\u6570\u636e\u9875\u9762\uff0c\u8bf7\u5347\u7ea7\u5230<a target=_blank href="http://www.dianshangji.com/installation.htm">\u6700\u65b0\u7248\u672c</a>\u540e\u518d\u8bd5')}};
b=window.dianshangji_menu.ids;for(h=0;h<b.length;h++)(g=document.getElementById(b[h]))&&g.addEventListener("click",e.clickmenu)},pickServer:function(b){var a=this;window.dianshangji_cdr.sendRequest("getstorage://_activeserver",function(d){for(i in a.servers_)if(a.servers_[i]==d){b(d);return}d=Math.floor(a.servers_.length*Math.random());b(a.servers_[d])})},retrieveItemDetail:function(b){var a=this,d="http://hws.m.taobao.com/cache/wdetail/5.0/?id="+b+"&ttid=2013@taobao_h5_1.0.0&exParams={}";window.dianshangji_cdr.sendRequest(d,
function(f){try{a.debug("got wdetail of "+d);a.debug("wdetail json = "+f);var j=JSON.parse(f),e=a.getnick(),h=new Date,f=function(a){return a<10?"0"+a:a},g=h.getFullYear()+"-"+f(h.getMonth()+1)+"-"+f(h.getDate()),n={_id:b+"_"+g,wdetail:j,timestamp:h.getTime(),nick:e};window.dianshangji_cdr.sendRequest(JSON.stringify({url:"indexdb://",postData:{func:"put",dbname:"taobaowdetail",doc:n}}),function(b){a.debug("save "+n._id+" returns "+b);b=JSON.parse(b);n._ret=b;document.getElementById("dsjmenuhead").setAttribute("dsj_wdetail",
JSON.stringify(n))})}catch(o){}})},retrieveItemIndex:function(b){var a=this,d=!1;window.addEventListener("message",function(b){if(b.origin=="https://cdn.dianshangji.com"&&(a.log("event.origin = "+b.origin+", event.data = "+b.data),b.data.match(/^plot2embedisready#/))){var d=b.data.substr(18);a.plotargs_.hasOwnProperty(d)&&b.source.postMessage(a.plotargs_[d],"https://cdn.dianshangji.com")}});a.pickServer(function(f){var j="manifest=true";j+="&nick="+encodeURIComponent(a.nick_);a.shelve_&&(j+="&shelve="+
a.shelve_.starts+"_"+a.shelve_.ends);window.dianshangji_tb.clientid_&&(j+="&cid="+window.dianshangji_tb.clientid_);window.dianshangji_cdr.sendRequest("http://"+f+"/itemindex2/"+b+"?"+j,function(e){if(!(null==e||e.length==0)){var h=e.indexOf("=========");if(h>0){var g=e.substr(h+9),e=e.substr(0,h);a.log("text = "+e+", manifest = "+g);try{a.manifest_=JSON.parse(g)}catch(j){}}a.activeserver_=f;d=!0;window.dianshangji_cdr.sendRequest("setstorage://_activeserver/"+f,function(){a.displayItemIndex(b,e)})}})});
setTimeout(function(){d||window.dianshangji_cdr.sendRequest("setstorage://_activeserver/www.dianshangji.com",function(){})},5E3)},displayItemIndex:function(b,a){var d=this,f=(new Date).getTime(),j=function(){setTimeout(j,5E3);if(!(location.href.indexOf("#_"+f)>0))location.href=location.href.match(/#_[0-9]+/)?location.href.replace(/#_[0-9]+/,"#_"+f):location.href+"#_"+f};window.dianshangji_cdr.sendRequest("getstorage://_enableitemwatchdog",function(a){a=="true"&&j()});var e;try{if(a=="{ret:-1}")e=
{item:b};else{e={item:b};var h=a.split(";"),g=h[0].split("_");if(g[0])e.dailytsearch=JSON.parse("["+g[0]+"]");if(g[1])e.dailytsearch1=JSON.parse("["+g[1]+"]");if(g[2])e.dailytsearch2=JSON.parse("["+g[2]+"]");g=h[1].split("_");if(g[0])e.porta={wordnum:parseInt(g[0]),pagesize:10};if(g[1])e.portb={wordnum:parseInt(g[1]),pagesize:10};if(g[2])e.tmatch=parseInt(g[2]);g=h[2].split("_");if(g[0])e.dailymsearch=g[0];if(g[1])e.dailymsearch1=g[1];if(g[2])e.dailymsearch2=g[2];if(h[3])e.itemphpweight=JSON.parse(h[3])}var n=
g="";if(e.hasOwnProperty("dailytsearch")){var o=e.dailytsearch[1];n+="\u6628\u5929\u7b2c"+Math.floor(o/1E3)+"\u9875"+o%1E3+"\u4f4d\uff1b";g+="PC\u7aef\u7b2c"+Math.floor(o/1E3)+"\u9875"+o%1E3+"\u4f4d";e.hasOwnProperty("dailytsearch1")&&(g+=o>e.dailytsearch1[1]?'<span style="color:green">&darr;</span>':o<e.dailytsearch1[1]?'<span style="color:rgb(177,0,0)">&uarr;</span>':'<span style="color:#AAA">-</span>',n+="\u524d\u5929\u7b2c"+Math.floor(e.dailytsearch1[1]/1E3)+"\u9875"+e.dailytsearch1[1]%1E3+"\u4f4d\uff1b");
e.hasOwnProperty("dailytsearch2")&&(g+=o>e.dailytsearch2[1]?'<span style="color:green">&darr;</span>':o<e.dailytsearch2[1]?'<span style="color:rgb(177,0,0)">&uarr;</span>':'<span style="color:#AAA">-</span>',n+="\u5927\u524d\u5929\u7b2c"+Math.floor(e.dailytsearch2[1]/1E3)+"\u9875"+e.dailytsearch2[1]%1E3+"\u4f4d\uff1b")}else g+=e.hasOwnProperty("tsearch")?"\u641c\u7d22\u7b2c"+Math.floor(e.tsearch/1E3)+"\u9875"+e.tsearch%1E3+"\u4f4d":'<span style="color:#AAA">\u81ea\u7136\u641c\u7d22\u65e0\u6392\u540d</span>',
n+="PC\u7aef\u81ea\u7136\u641c\u7d22\u5e73\u5747\u6392\u540d\uff1a\u524d\u5929\u7b2c"+Math.floor(e.tsearch/1E3)+"\u9875"+e.tsearch%1E3+"\u4f4d\uff1b";var k=document.getElementById("dsjmenu_quick_tsearch");k.innerHTML=g;k.setAttribute("title",n);k.style.display="inline";g="";if(e.hasOwnProperty("porta"))k=document.getElementById("dsjmenu_quick_tmatchporta"),k.title="\u76f4\u901a\u8f66\u9996\u9875\u5c55\u793a"+e.porta.wordnum+"\u8bcd",k.innerHTML='\u76f4\u901a\u8f66(<span style="color:rgb(177,0,0)">'+
e.porta.wordnum+"</span>)",k.style.display="inline";else if(e.hasOwnProperty("portb"))k=document.getElementById("dsjmenu_quick_tmatchportb"),k.title="\u76f4\u901a\u8f66\u9996\u9875\u6ca1\u6709\u5c55\u793a\uff0c\u7b2c\u4e8c\u9875\u5c55\u793a"+e.portb.wordnum+"\u8bcd",k.innerHTML='\u76f4\u901a\u8f66(<span style="color:rgb(120,0,0)">'+e.portb.wordnum+"</span>)",k.style.display="inline";else if(e.hasOwnProperty("tmatch"))k=document.getElementById("dsjmenu_quick_tmatchall"),k.title="\u8fd1\u671f\u66fe\u7ecf\u5c55\u793a\u8fc7\u7684\u76f4\u901a\u8f66"+
e.tmatch+"\u8bcd",k.innerHTML='\u76f4\u901a\u8f66(<span style="color:#AAA">'+e.tmatch+"</span>)",k.style.display="inline";try{n=g="";if(e.hasOwnProperty("dailymsearch")){var n="",h=e.dailymsearch.split("|"),p=h[0].split(","),r=h[1].split(","),q=p[1]?parseInt(p[1].substr(1)):-1,x=r[1]?parseInt(r[1].substr(1)):-1;q>=0&&(g+="\u624b\u673a\u7aef\u7b2c"+Math.floor(q/20+1)+"\u9875\u7b2c"+(q%20+1)+"\u4f4d",n="\u6628\u5929\u7b2c"+Math.floor(q/20+1)+"\u9875\u7b2c"+(q%20+1)+"\u4f4d");x>=0&&(g.length>0&&(g+=
","),g+=x==0?"\u76f4\u901a\u8f66\u7f6e\u9876":"\u76f4\u901a\u8f66\u7b2c"+Math.floor((x-1)/2+1)+"\u9875");if(e.hasOwnProperty("dailymsearch1")){var h=e.dailymsearch1.split("|"),p=h[0].split(","),r=h[1].split(","),v=p[1]?parseInt(p[1].substr(1)):-1;r[1]&&parseInt(r[1].substr(1));n+="\uff0c\u524d\u5929";v>=0&&(g+=q>v?'<span style="color:green">&darr;</span>':q<v?'<span style="color:rgb(177,0,0)">&uarr;</span>':'<span style="color:#AAA">-</span>',n+="\u7b2c"+Math.floor(v/20+1)+"\u9875\u7b2c"+(v%20+1)+
"\u4f4d")}if(e.hasOwnProperty("dailymsearch2")){var h=e.dailymsearch2.split("|"),p=h[0].split(","),r=h[1].split(","),w=p[1]?parseInt(p[1].substr(1)):-1;r[1]&&parseInt(r[1].substr(1));n+="\uff0c\u5927\u524d\u5929";w>=0&&(g+=q>w?'<span style="color:green">&darr;</span>':q<w?'<span style="color:rgb(177,0,0)">&uarr;</span>':'<span style="color:#AAA">-</span>',n+="\u7b2c"+Math.floor(w/20+1)+"\u9875\u7b2c"+(w%20+1)+"\u4f4d")}}else g+='<span style="color:#AAA">\u624b\u673a\u7aef\u6628\u5929\u65e0\u6392\u540d</span>',
n+="\u6628\u5929\u65e0\u6392\u540d\uff0c\u70b9\u51fb\u67e5\u770b\u624b\u673a\u7aef\u8fd1\u4e09\u5929\u6392\u540d\u8be6\u7ec6\u6570\u636e";k=document.getElementById("dsjmenu_quick_msearch");k.innerHTML=g;k.setAttribute("title",n);k.style.display="inline"}catch(E){}}catch(A){console&&console.log&&console.log(A)}try{var y=(new Date).getTime().toString(),B='({cid:"'+window.dianshangji_tb.clientid_+'",ver:"'+window.dianshangji_tb_version+'",token:"'+y+'",server:"'+d.activeserver_+'",item:"'+b+'"})',C=
JSON.stringify({cid:window.dianshangji_tb.clientid_,ver:window.dianshangji_tb_version,token:y,server:d.activeserver_,item:b}),u;dianshangji_tb_smsg_debug?u="https://cdn.dianshangji.com/dianshangji/smsg/smsgcode.js":d.manifest_.smsg?u="https://cdn.dianshangji.com/dianshangji/smsg/smsgcode_"+d.manifest_.smsg+".js":(d.manifest_.smsg=((new Date).getTime()/36E5).toFixed(0),u="http://update.dianshangji.com/dianshangji/smsg/smsgcode.js");d.log("smsg code = "+u);if(document.getElementById("dsjmessaging"))if({peerToken_:"",
init:function(a){var b=this;b.cdr=a;a=document.createElement("span");a.id="dsjsmsg_contentscript";document.getElementById("dsjmessaging").appendChild(a);b.page2content=document.createElement("span");b.page2content.id="dsjsmsg_contentscript_page2content";a.appendChild(b.page2content);b.content2page=document.createElement("span");b.content2page.id="dsjsmsg_contentscript_content2page";a.appendChild(b.content2page);b.eventHandler.bind(b.page2content,b.page2content.id,function(){var a=b.page2content.getAttribute("request"),
d=b.page2content.getAttribute("token");b.page2content.setAttribute("request","");b.page2content.setAttribute("token","");b.peerToken_?d==b.peerToken_&&b.cdr.sendRequest(a,function(d){null==d&&(d="");b.sendMessageToPage(a,d)}):b.peerToken_=d})},eventHandler:{bind:function(a,b,d){window.addEventListener?a.addEventListener(b,d,!1):window.attachEvent?a.attachEvent("on"+b,d):a["on"+b]=d},unbind:function(a,b,d){window.removeEventListener?a.removeEventListener(b,d,!1):window.detachEvent?a.detachEvent("on"+
b,d):elem["on"+b]=null},stop:function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation()},dispatch:function(a,b){var d=document.createEvent("HTMLEvents");d.initEvent(b,!1,!1);d.eventType="message";a.dispatchEvent(d)}},sendMessageToPage:function(a,b){var d=this,e=d.content2page.getAttribute("request");null!=e&&e.length>0?setTimeout(function(){d.sendMessageToPage(a,b)},1E3):(d.content2page.setAttribute("request",a),d.content2page.setAttribute("token",y),d.content2page.setAttribute("request2",
b),d.eventHandler.dispatch(d.content2page,d.content2page.id))}}.init(dianshangji_cdr),dianshangji_tb_smsg_debug)document.getElementById("dsjmessaging").setAttribute("data-context",C),setTimeout(function(){var a=document.createElement("script");a.language="javascript";a.charset="utf-8";a.type="text/javascript";a.src=u;document.getElementById("dsjmessaging").appendChild(a)},1E3);else{var z=function(a){a=a.replace("(DIANSHANGJI_SMSG_CONTEXT)",B);document.getElementById("dsjmessaging").setAttribute("data-script",
a);a=document.createElement("script");a.language="javascript";a.charset="utf-8";a.type="text/javascript";a.text='try{var ele = document.getElementById("dsjmessaging");var code = ele.getAttribute("data-script");ele.removeAttribute("data-script", "");eval(code);}catch(e){if(console && console.log) console.log(e);}';document.getElementById("dsjmessaging").appendChild(a)};window.dianshangji_cdr.sendRequest("getstorage://smsg_code",function(a){if(!a||dianshangji_tb_smsg_debug)window.dianshangji_cdr.sendRequest(u,
function(a){if(a&&(a.match(/\(DIANSHANGJI_SMSG_CONTEXT\);\n$/)||a.match(/\(DIANSHANGJI_SMSG_CONTEXT\);$/)))a={version:d.manifest_.smsg,text:a},window.dianshangji_cdr.sendRequest("setstorage://smsg_code/"+JSON.stringify(a),function(){}),z(a.text)});else{var b={version:"2000-01-01",text:""};try{b=JSON.parse(a)}catch(e){}b.version==d.manifest_.smsg?z(b.text):window.dianshangji_cdr.sendRequest(u,function(a){if(a&&(a.match(/\(DIANSHANGJI_SMSG_CONTEXT\);\n$/)||a.match(/\(DIANSHANGJI_SMSG_CONTEXT\);$/)))a=
{version:d.manifest_.smsg,text:a},window.dianshangji_cdr.sendRequest("setstorage://smsg_code/"+JSON.stringify(a),function(){}),z(a.text)})}})}}catch(D){console.log("dsjsmsg exception:"+D)}if(e.hasOwnProperty("itemphpweight")&&e.itemphpweight.length>0){k=function(a,b){var d=a[0],e=a[1],f=a[2],g='<div style="margin-bottom:16px;">',j;f.match(/^mz/)?(j=f.substr(2),g+='<span style="color:rgb(177,0,0);">\u94bb\u5c55\uff1a</span>'):(j=f,g+="\u6765\u6e90\uff1a");var h=j;f=="mzhttp://www.taobao.com/"?h="\u6dd8\u5b9d\u9996\u9875":
h=="http://www.taobao.com/"?h="\u6dd8\u5b9d\u9996\u9875\u4e2a\u6027\u5316\u63a8\u8350":h=="http://www.tmall.com/"&&(h="\u5929\u732b\u9996\u9875");g+='&nbsp;<a target=_blank href="'+j+'" id="dsjitemphpweight'+b+'">'+h+"</a><br>";g+=d==1?"\u66dd\u5149\u7387\uff1a\u5f88\u5c0f\uff0c\u731c\u4f60\u559c\u6b22":"\u66dd\u5149\u7387\uff1a"+(d/e*100).toFixed(2)+"%";g+='<br>\u94fe\u63a5\uff1a<a target=_blank href="'+j+'">'+j+"</a>";g+="</div>";h==j&&setTimeout(function(){window.dianshangji_cdr.sendRequest(j,
function(a){if(a){var d=a.indexOf("<title>");if(d){d+=7;var e=a.indexOf("</title>",d);if(!(e<0||e>d+100))h=a.substr(d,e-d),document.getElementById("dsjitemphpweight"+b).innerText=h}}},!1,!1)},200);return g};h="<div>\u672c\u5b9d\u8d1d\u5728\u7ad9\u5185\u5982\u4e0b\u6e20\u9053\u9875\u9762\u6709\u5c55\u793a<br>";for(pw in e.itemphpweight)h+=k(e.itemphpweight[pw],pw);h+="</div>";k=document.getElementById("dsjitemphpweight");k.style.marginLeft="4px;";k.innerHTML='<span style="color: #b10000;margin-left:1px;font-size:12px;font-weight:normal;">\u6e20\u9053</span><div id="dsjitemphpweightlist" style="background:#f0f0f0;border:1px solid #AAA;display:none">'+
h+"</div>";k.addEventListener("mouseover",function(){document.getElementById("dsjitemphpweightlist").style.display="block"});k.addEventListener("mouseout",function(){document.getElementById("dsjitemphpweightlist").style.display="none"})}},prepareDownload:function(){},needlogin:function(){location.href="https://login.taobao.com/member/login.jhtml?redirectURL="+encodeURIComponent(location.href)},getcookie:function(b,a){if(!a)a=document.cookie;var d,f,j,e=a.split(";");for(d=0;d<e.length;d++)if(f=e[d].substr(0,
e[d].indexOf("=")),j=e[d].substr(e[d].indexOf("=")+1),f=f.replace(/^\s+|\s+$/g,""),f==b)return unescape(j);return null},getChildByClass:function(b,a){if(typeof document.evaluate=="undefined")return null;else{var d=document.evaluate('descendant-or-self::*[@class="'+a+'"]',b,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);return d.snapshotLength!=1?null:d.snapshotItem(0)}},getnick:function(b){try{var a=this.getcookie("_nk_",b);null==a&&(a=this.getcookie("tracknick",b));if(null==a)return"unknownnick";
self.nick_=unescape(a.replace(/\\/g,"%"));return self.nick_}catch(d){return"unknownnick"}},getpeer:function(b){var a=this,d=document.body.innerHTML,f=d.indexOf('data-nick="');if(f<0)setTimeout(function(){a.getpeer(b)},2E3);else{f+=11;var j=d.indexOf('"',f);j>0&&b(decodeURIComponent(d.substr(f,j-f)))}},getitem:function(){return this.parseTaobaoItemid(location.href)},geterrmsg:function(b){try{return b.result.error[0].code==-101?"\u8fde\u63a5\u51fa\u9519\uff0c\u53ef\u80fd\u91cd\u65b0\u767b\u5f55":"\u8fde\u63a5\u51fa\u9519\uff0c\u8bf7\u7a0d\u4faf\u91cd\u8bd5"}catch(a){return"\u7f51\u9875\u51fa\u9519\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"}}};
try{if(typeof window.dianshangji_conf!="undefined")window.dianshangji_tb.isenterprise_=window.dianshangji_conf.isenterprise_;window.dianshangji_cdr.sendRequest("getstorage://_appconf",function(b){if(b!="")window.dianshangji_tb.appconf_=JSON.parse(b)});window.dianshangji_tb.debug_=window.dianshangji_tb_debug;window.dianshangji_tb.version_=window.dianshangji_tb_version;window.dianshangji_cdr.sendRequest("getstorage://_clientid",function(b){window.dianshangji_tb.clientid_=b;window.dianshangji_cdr.sendRequest("getstorage://_featureset",
function(a){a.length>0?(a=JSON.parse(a),window.dianshangji_tb.bgframe2_=a.bgframe2,window.dianshangji_tb.bigdata2_=a.bigdata2,window.dianshangji_tb.newpage_=a.newpage,window.dianshangji_tb.run(b)):window.dianshangji_cdr.sendRequest("getstorage://_feature_bgframe2",function(a){if(a=="2014-09-01")window.dianshangji_tb.bgframe2_=!0;window.dianshangji_cdr.sendRequest("getstorage://_feature_bigdata2",function(a){if(a=="true")window.dianshangji_tb.bigdata2_=!0;window.dianshangji_tb.run(b)})})})})}catch(e$$26){}}}}catch(e$$27){}
window.dianshangji_conf={isenterprise_:!0};
