(function(){var b=document,e=window.bShareUtil,p=window.bShareControl,a=window.bShare,q=a.config,j=a.iL8n,l=a.pnMap,v=q.poptxtc,w=q.popbgc,m=a.imageBasePath,c,x=function(){var a=b.createElement("div");a.className="bsClear";return a},u=function(){e.getElem(b.getElementById("bsLogoList"),"img","bsPlatImg",function(a){if(!a.src){var b=a.parentNode.parentNode.id.split("-")[1];a.src=m+"/logos/mp2/"+b+".gif"}});var a=b.getElementById("searchBox");a.value="";a.focus();e.filterPlats("");e.stopProp()},y=function(){e.loadScript(a.bhost+
"/bshare_load_sites?request_locale="+(a.lang||"zh")+"&lite=false&uuid="+a.params.publisherUuid+"&callback=bShare.morecb");setTimeout(function(){b.getElementById("bsMorePanel").childNodes.length===0&&a.morecb()},1E3)};a.morecb=function(f){if(b.getElementById("bsMorePanel").childNodes.length===0){var d=l,k=b.getElementById("bsMorePanel"),z=a.params.promote,g=[],n,h;try{d=f.contents.p;for(c=0,h=d.length;c<h;++c)g.push(d[c].name)}catch(m){for(c in d)g.push(c)}var r=b.createElement("div"),f=b.createElement("div"),
d=b.createElement("span");h=b.createElement("input");var o=b.createElement("div"),s=b.createElement("ul"),t=b.createElement("div");r.className="bsSearchDiv";f.className="bFind-wrapper-top";d.className="bFind-placeholder";h.id="searchBox";h.className="bFind";h.type="text";h.setAttribute("placeholder",j.searchHint);h.setAttribute("maxlength",25);h.onkeyup=function(){return e.filterPlats(this.value)};f.appendChild(d);f.appendChild(h);r.appendChild(f);o.className="bsPlatDiv";s.id="bsLogoList";var p=function(b){a.share(b,
this.parentNode.id.split("-")[1]);return!1},f=function(c){if(l[c]&&(n=l[c][0])){var f=b.createElement("li"),d=b.createElement("a"),h=b.createElement("img"),g=b.createElement("div"),i=b.createElement("div");k.appendChild(r);k.appendChild(o);k.appendChild(t);f.id="bp-"+c;d.className="bsPlatIcon";d.title=n;d.onclick=p;h.className="bsPlatImg";g.className="bsPlatName";g.innerHTML=n;g.title=n;i.className="bsHot";if(z&&e.hasElem(a.arrayIsAwd,c))i.className="bsAwd";else if(e.hasElem(a.arrayIsHot,c))i.className=
"bsPromoM bsHot",i.innerHTML=j.promoteHot;else if(e.hasElem(a.arrayIsNew,c))i.className="bsPromoM bsNew",i.innerHTML=j.promoteNew;else if(e.hasElem(a.arrayIsRec,c))i.className="bsPromoM bsRec",i.innerHTML=j.promoteRec;f.appendChild(i);d.appendChild(h);f.appendChild(d);f.appendChild(g);s.appendChild(f)}};for(c=0;c<g.length;c++)f(g[c]);o.appendChild(s);o.appendChild(x());t.className="bsFooterDiv";if(q.logo)t.innerHTML=a.elems.powerBy;u()}};a.moreDiv=function(c,d){var e=d;if(a.entries.length>1)e=a.curb;
a.prepare(e);a.display(!0);b.getElementById("bsMorePanel").childNodes.length>0?u():p.bShareLoad?y():a.morecb()};e.filterPlats=function(a){if(a==="")return e.getElem(b.getElementById("bsLogoList"),"li","",function(a){a.style.display=""}),!0;var d=a.replace(/^\s+|\s+$/,"").toLowerCase();for(c in l){var k=l[c][0].toLowerCase(),j=c.toLowerCase(),g="bp-"+c;if(b.getElementById(g))j.indexOf(a)>-1||j.indexOf(d)>-1||k.indexOf(a)>-1||k.indexOf(d)>-1?b.getElementById(g).style.display="":b.getElementById(g).style.display=
"none"}return!0};e.loadStyle('div.bsClear{clear:both;height:0px;line-height:0px;overflow:hidden;font-size:0;}.bsSearchDiv{padding:5px 15px;background-color:#fafafa;}.bFind-wrapper-top{background:#fff;border-color:#ccc #aaa #aaa #ccc;border-style:solid;border-width:1px;height:16px;padding:4px;margin:0;}.bFind-placeholder{background:url("'+a.shost+'/css/images/search-icon.gif") no-repeat;display:block;float:left;height:16px;width:16px;}.bFind{background:none;border:none;float:left;font-size:11px !important;height:16px !important;margin-left:3px;outline:none;padding:0;width:400px;}.bsPlatDiv{height:322px;background:#fff;overflow:auto;padding:0 15px;}#bsLogoList{display:block;list-style:none;overflow:hidden;margin:0;padding:0;}#bsLogoList li{float:left;display:block;width:71px;text-align:center;font-size:12px;height:80px;margin:0 !important;}#bsLogoList .bsPlatIcon{cursor:pointer;display:block !important;text-align:center;}#bsLogoList .bsPlatImg{width:32px;height:32px;border:none !important;display:inline-block;}#bsLogoList .bsPlatImg:hover{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px;box-shadow: 0 0 15px #a7a8ac;}#bsLogoList .bsPlatName{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;color:#333 !important;margin-top:2px;line-height:140%;*width:70px;}#bsLogoList .bsPromoM{text-align:center;}.bsFooterDiv{height:24px;line-height:24px;padding:0 15px;border-top:1px solid #e8e8e8;background:'+
w+";text-align:right;}a.bsLogoLink{color:"+v+";}.bsLogoLink:hover{text-decoration:underline;}.bsPromoM{background:url("+m+"/bshare_box_sprite2.gif) no-repeat top left;}.bsNew, .bsHot, .bsRec, .bsAwd{background-position: 0 -552px;width:19px;margin: 5px auto 1px;line-height:16px;height:18px;font-size:12px;color:#fff;overflow:hidden;}.bsNew{background-position:0 -570px;}.bsRec{width:30px;background-position:0 -588px;}.bsAwd{background:url("+m+"/promot/promote.gif) no-repeat;width:19px;height:18px;argin:5px auto 1px;}")})();
