var bshare_shost_name = "https://static.bshare.cn", bshare_button_host = "https://bshare.optimix.cn", bshare_web_host = "https://www.bshare.cn"; (function(e, g) { if (!e.bshareutil || !e.bsharecontrol) { var l = g.documentelement, d = navigator; e.buzz = {}; e.bsharecontrol = { count: 0, viewed: !1, bshareload: !1, clicked: !1 }; var h = e.bshareutil = { requestedscripts: [], encode: encodeuricomponent, isie6: /msie|msie 6/.test(d.useragent), isie7: /msie 7/.test(d.useragent), isie8: /msie 8/.test(d.useragent), isie9: /msie 9/.test(d.useragent), isie: /microsoft internet explorer/.test(d.appname), isst: g.compatmode == "css1compat", isqk: function() { return h.isie6 || h.isie && !h.isst }, eleinviewport: function(a) { if (a.getboundingclientrect) return a = a.getboundingclientrect(), a.top >= 0 && a.left >= 0 && a.bottom <= (e.innerheight || l.clientheight) && a.right <= (e.innerwidth || l.clientwidth); for (var b = a.offsettop, c = a.offsetleft, f = a.offsetwidth, k = a.offsetheight; a.offsetparent;) a = a.offsetparent, b += a.offsettop, c += a.offsetleft; return b >= e.pageyoffset && c >= e.pagexoffset && b + k <= e.pageyoffset + e.innerheight && c + f <= e.pagexoffset + e.innerwidth }, getelembyid: function(a) { return g.getelementbyid(a) }, createelement: function(a, b, c, f, k) { a = g.createelement(a); if (b) a.id = b; if (c) a.classname = c; if (f) a.style.csstext = f; if (k) a.innerhtml = k; return a }, formatparam: function(a, b) { return typeof a == "number" ? +b : typeof a == "boolean" ? /^true$/i.test(b) : b }, isundefined: function(a) { return typeof a == "undefined" }, arraycontains: function(a, b, c) { for (var f = a.length; f--;) if (!h.isundefined(b) && a[f] === b || !h.isundefined(c) && c.test(a[f])) return !0; return !1 }, loadscript: function(a, b) { var c = h.requestedscripts; if (!h.arraycontains(c, a)) / (bsmore | bshares887)(org) ? \.js / .test(a) && c.push(a), b = b || function() {}, c = h.createelement("script"), c.src = a, c.type = "text/javascript", c.charset = "utf-8", c.onload = b, c.onreadystatechange = function() { /complete|loaded/.test(this.readystate) && b() }, g.getelementsbytagname("head")[0].appendchild(c) }, loadstyle: function(a) { var b = h.createelement("style"); b.type = "text/css"; b.stylesheet ? b.stylesheet.csstext = a : b.appendchild(g.createtextnode(a)); g.getelementsbytagname("head")[0].appendchild(b) }, getoffset: function(a) { for (var b = { x: a.offsetleft, y: a.offsettop, h: a.offsetheight, w: a.offsetwidth }; a = a.offsetparent; b.x += a.offsetleft, b.y += a.offsettop); return b }, getelem: function(a, b, c, f) { for (var a = a.getelementsbytagname(b), b = [], k = 0, d = 0, e = a.length; k < e; k++) { var g = a[k]; if (!c || g.classname.indexof(c) != -1) b.push(g), typeof f == "function" && f(g, d++) } return b }, gettext: function(a) { return h.isie ? a.innertext : a.textcontent }, insertafter: function(a, b) { var c = b.parentnode; c.lastchild === b ? c.appendchild(a) : c.insertbefore(a, b.nextsibling) }, getwh: function() { return { h: (h.isst ? l : g.body).clientheight, w: (h.isst ? l : g.body).clientwidth } }, stopprop: function(a) { a = a || e.event || {}; a.stoppropagation ? a.stoppropagation() : a.cancelbubble = !0 }, getscript: function(a) { for (var b = g.getelementsbytagname("script"), c = [], f = 0, k = b.length; f < k; f++) { var d = b[f].src; d && d.search(a) >= 0 && /bshare.(cn|com|me)|static.(local|dev)/i.test(d) && c.push(b[f]) } return c }, parseoptions: function(a, b) { var c = {}; if (a = /\?(.*)|#(.*)/.exec(a)) for (var a = a[0].slice(1).replace("+", " "), f = a.split(/[&;]/g), k = 0, d = f.length; k < d; k++) { var e = f[k].split("="), g = decodeuricomponent(e[0]), h = b ? e[1] : null; if (!b) try { h = decodeuricomponent(e[1]) } catch (l) {} c[g] = h } return c }, submitform: function(a, b, c, f) { var f = f || "post", k = h.createelement("form"); g.body.appendchild(k); k.method = f; k.target = c; k.setattribute("accept-charset", "utf-8"); k.action = a; for (var d in b) if (typeof b[d] != "function") a = h.createelement("input"), a.type = "hidden", a.name = d, a.value = b[d], k.appendchild(a); if (h.isie) g.charset = "utf-8"; k.submit(); g.body.removechild(k) }, replaceparam: function(a, b, c) { return b ? c.replace(a, h.encode(b)) : c.replace(a, "") }, ready: function(a) { if (g.addeventlistener) g.addeventlistener("domcontentloaded", function() { g.removeeventlistener("domcontentloaded", arguments.callee, !1); a.call() }, !1), e.addeventlistener("load", a, !1); else if (g.attachevent) { g.attachevent("onreadystatechange", function() { g.readystate == "complete" && (g.detachevent("onreadystatechange", arguments.callee), a.call()) }); e.attachevent("onload", a); var b = !1; try { b = e.frameelement === null } catch (c) {} l.doscroll && b && function() { try { l.doscroll("left") } catch (b) { settimeout(arguments.callee, 10); return } a.call() }() } else e.onload = a }, createbuzzobject: function(a, b) { if (e[a]) return e[a]; b.namespace = a; var c = e[a] = { shost: e.bshare_shost_name, bhost: e.bshare_button_host, whost: e.bshare_web_host, defaultconfig: b, params: { type: 0, publisheruuid: "", url: "", title: "", summary: "", content: "", pic: "", pics: "", video: "", vtag: "", vuid: "", vemail: "", product: "", price: "0", brand: "", tag: "", category: "", template: "1", popcss: "", apvuid: "", apts: "", apsign: "" }, isready: !1, completed: !1, curb: 0, preb: -1, entries: [], counters: [], viewinfo: null }; c.config = {}; c.elems = { powerby: '
bshare
' }; for (var f in c.defaultconfig) c.config[f] = c.defaultconfig[f]; c.imagebasepath = c.shost + "/frame/images/"; c.jsbasepath = c.shost + "/b/"; c.addentry = function(a) { if (typeof c.counters == "number") c.counters = []; c.entries.push(a); c.counters.push(0) }; return e[a] }, parsebuzzoptions: function(a, b, c, f, k) { var i; i = (a = h.getscript(b)[a]) ? h.parseoptions(a.src) : {}, a = i; k && (a = k(a)); for (var d in a) if (!h.isundefined(a[d]) && !(a[d] === null || typeof c[d] == "number" && a[d] === "")) h.isundefined(c[d]) ? h.isundefined(f[d]) || (f[d] = h.formatparam(f[d], a[d])) : c[d] = h.formatparam(c[d], a[d]) } } } })(window, document); (function(e, g, l) { var d = g.bshareutil, h = g.bsharecontrol; if (!(h.count > 0)) { var a = d.createbuzzobject(e, { lang: "zh", height: 0, width: 0, image: "", bgc: "none", fgc: "#333", poptxtc: "#666", popbgc: "#f2f2f2", sn: !1, logo: !0, style: 1, fs: 0, inline: !1, beta: !1, popjs: "", pophcol: 2, pop: 0, mdiv: 0, poph: "auto", bps: "", bps2: "", showsharecount: !0, icon: !0, text: null, promote: !1 }), b = a.config, c = a.params; a.boxconfig = { position: 0, boxheight: 408, boxwidth: 548, closetop: 8, closeright: 20, hastop: !0, hasframe: !0, hasmore: !0 }; a.boxconfigec = { position: 0, boxheight: 404, boxwidth: 650, closetop: 10, closeright: 16, hasframe: !0 }; a.boxconfigwx = { id: "bswxbox", position: 0, boxheight: 245, boxwidth: 220, closetop: 8, closeright: 20, hastop: !0 }; a.customization = {}; a.loadoptions = function() { d.parsebuzzoptions(0, /button(lite)?(org)?\.js|bshare_load/, b, c, function(b) { if (!d.isundefined(g.bshareopt)) for (var c in g.bshareopt) b[c] = g.bshareopt[c]; if (!d.arraycontains(a.langs, b.lang)) b.lang = "zh"; if (b.h && b.w && b.img) b.height = b.h, b.width = b.w, b.image = b.img; b.bgc = b.bgcolor || void 0; b.fgc = b.textcolor || void 0; b.logo = !(b.logo && /^false$/i.test(b.logo)); b.pophcol = b.pophcol || void 0; if (b.style) b.style = /^(-1|0|1|2|3|4|5|10|11|999)$/.test(b.style) ? +b.style : void 0; if (b.bp) b.style && b.style == 2 ? b.bps2 = b.bp.split(",") : b.bps = b.bp.split(","); b.showsharecount = b.style && /3|4|5/.test(b.style) ? !1 : !(b.ssc && /^false$/i.test(b.ssc.tostring())); b.type = g.bshare_button_type || b.type; b.publisheruuid = b.uuid || void 0; return b }); for (var f in a.defaultconfig) a.defaultconfig[f] !== b[f] && (a.customization[f] = b[f]); if (c.type != 15) c.popcss = ""; if (g.location.href.indexof(a.whost + "/morestyles") < 0) b.promote = !1 }; a.writebutton = function() { var c = "", e = { 0: 0, 1: [110, 85], 10: [90, 51], 11: [82, 82] }, g = { 0: 16, 1: 24, 10: 21, 11: 49 }, h = a.imagebasepath, i = b.style, m = b.image, o = b.showsharecount, n = b.width, p = b.height; /^(3|4|5)$/.test(i) || (c = '
'); i > 1 && i < 6 ? a.writebsharediv(c) : i == -1 ? (d.getelem(l, "div", "bshare-custom", function(b) { if (!b.childnodes[0].classname || b.childnodes[0].classname.indexof("bspromo") < 0) { var c = d.createelement("div", "", "bspromo bspromo" + (a.islite ? 2 : 1)); b.insertbefore(c, b.childnodes[0]) } }), (b.beta || b.popjs) && a.writebsharediv('
' + b.text + "
", "")) : i >= 0 && (i != 999 && (m = h + "logo_square_s.gif", i != 0 && (m = h + "button_custom" + i + "-" + (b.lang == "en" ? "en" : "zh"), o && (m += "-c"), i == 10 && (n = /blue|red|green|grey|orange/.test(b.bgc) ? b.bgc : "orange", m += "-" + n), m += ".gif"), n = e[i][o ? 0 : 1], p = g[i]), c += '
' + (b.text === null ? "\u5206\u4eab" : b.text) + "
", o && (c += '
 
')) : (c += ";background:transparent url(" + m + ") no-repeat;text-align:center;width:" + n + 'px;">', o && i != 999 && (c += ''), c += ""), c += '
', a.writebsharediv(c, "font-size:12px;height:" + p + "px;width:" + n + "px;")) }; a.more = function() { return typeof a.morediv == "function" ? (a.morediv(), !0) : !1 }; a.load = function(f) { if (!f) { if (b.mdiv < 0) return; var e = 0, q = setinterval(function() { a.more() || e >= 30 ? clearinterval(q) : ++e }, 100); return !1 } c.target = f || ""; a.click(); a.disappear(); a.prepare(); if (!a.loadplus || !a.loadplus()) { var j; if (f == "bsharesync") j = [a.whost, "/bsyncshare?site=", f].join(""), a.updatecounter(), a.sharestats(f), d.submitform(j, c, "_blank"); else if (f == "email") j = [a.bhost, "/bshareemail"].join(""), a.sharestats(f), d.submitform(j, c, "_blank"); else if (f == "clipboard") d.copy2clipboard(), a.sharestats(f); else if (f == "favorite") d.add2bookmark(), a.sharestats(f); else if (f == "printer") d.add2printer(), a.sharestats(f); else if (f == "weixin") { j = a.bhost + "/barcode?site=weixin"; for (var i in c)!/content|target/.test(i) && typeof c[i] != "function" && (j += "&" + i + "=" + d.encode(c[i])); l.getelementbyid("bswxbox") || a.createbox(a.boxconfigwx); a.getframe(a.boxconfigwx).innerhtml = ''; a.display(!1, a.boxconfigwx) } else { if (h.bshareload) for (i in j = a.bhost + "/bshare_redirect?site=" + f, c)!/content|target/.test(i) && typeof c[i] != "function" && (j += "&" + i + "=" + d.encode(c[i])); else(j = g.bs_purl_map[f]) || alert(a.il8n.loadfailed), f == "gmw" ? j = d.replaceparam("${url}", c.url.replace("https://", ""), j) : c.url && (j = d.replaceparam("${url}", c.url, j)), j = d.replaceparam("${title}", c.title, j), j = d.replaceparam("${content}", c.summary, j), j = d.replaceparam("${img}", c.pic, j), j = d.replaceparam("${video}", c.video, j); g.open(j, "", "height=600,width=800,top=100,left=100,screenx=100,screeny=100,scrollbars=yes,resizable=yes") } } }; a.show = function() { a.load() }; a.onload = function() { d.getelem(l, "a", "bsharediv", function(b, c) { d.getelem(b, "div", "buzzbutton", function(b) { b.onclick = function(b) { return function(c) { a.more(c, b); return !1 } }(c) }) }); var c = b.showsharecount; if (b.style == 0) { var e = d.getelem(l, "div", "buzzbutton")[0].offsetwidth; c && (e += 41); d.getelem(l, "a", "bsharediv", function(a) { a.style.width = e + "px" }) } var h = a.entries.length; if (c && h > 0) { for (var c = "", j = 0; j < h; j++) { var i = a.entries[j]; if (typeof i.url == "string") { if (d.isie && c.length + i.url.length > 2e3) break; c != "" && (c += "|"); c += i.url } } c != "" && (c += "|"); c += g.location.href; a.count(c) } }; a.renderbutton = function() { d.loadstyle("a.bsharediv,#bspanel,#bsmorepanel,#bsharef{border:none;background:none;padding:0;margin:0;font:12px helvetica,calibri,tahoma,arial,\u5b8b\u4f53,sans-serif;line-height:14px;}#bspanel div,#bsmorepanel div,#bsharef div{display:block;}.bsrlogo .bspopupawd,.bsrlogosel .bspopupawd,.bslogo .bspopupawd,.bslogosel .bspopupawd{line-height:16px !important;}a.bsharediv div,#bsfloattab div{*display:inline;zoom:1;display:inline-block;}a.bsharediv img,a.bsharediv div,a.bsharediv span,a.bsharediv a,#bsharef table,#bsharef tr,#bsharef td{text-decoration:none;background:none;margin:0;padding:0;border:none;line-height:1.2}a.bsharediv span{display:inline;float:none;}div.buzzbutton{cursor:pointer;font-weight:bold;}.buzzbutton .sharecount a{color:#333}.bsstyle1 .sharecount a{color:#fff}span.bsharetext{white-space:nowrap;}span.bsharetext:hover{text-decoration:underline;}a.bsharediv .bspromo,div.bshare-custom .bspromo{display:none;position:absolute;z-index:100;}a.bsharediv .bspromo.bspromo1,div.bshare-custom .bspromo.bspromo1{width:51px;height:18px;top:-18px;left:0;line-height:16px;font-size:12px !important;font-weight:normal !important;color:#fff;text-align:center;background:url(" + a.imagebasepath + "bshare_box_sprite2.gif) no-repeat 0 -606px;}div.bshare-custom .bspromo.bspromo2{background:url(" + a.imagebasepath + "bshare_promo_sprite.gif) no-repeat;cursor:pointer;}"); a.writebutton(); c.type == 15 && a.filterecplats() }; a.loadbuttonstyle = function() { if (c.type != 15) { var f, e = b.style; if (b.beta) f = a.jsbasepath + "styles/bshares888.js?v=20150603"; else if (b.popjs) f = b.popjs; else if (b.style != -1 && (f = a.jsbasepath + "styles/bshares" + (e > 1 && e < 6 ? e : 1) + ".js?v=20150603", b.pop == -1 && (e <= 1 || e >= 6))) f = ""; f && d.loadscript(f) } }; a.international = function(c) { b.lang == "zh" ? c() : d.loadscript(a.jsbasepath + "langs/bs-lang-" + b.lang + ".js?v=20150603", c) }; a.start = function() { d.loadengine && (d.loadengine(e), a.loadoptions(), a.international(function() { if (!a.completed) { if (d.isundefined(b.text) || b.text === null) b.text = b.style == 0 ? a.il8n.sharetextshort : a.il8n.sharetext; c.type != 1 && a.renderbutton(); d.createsharebox(e); if (c.type == 15) a.boxconfig = a.boxconfigec; a.createbox(); b.mdiv >= 0 && c.type != 15 && d.loadscript(a.jsbasepath + "components/bsmore.js?v=20150603"); if (c.type == 1) return a.load(), !1; a.loadbuttonstyle(); a.onload(); a.prepare(0); settimeout(function() { h.viewed || a.view(); settimeout(function() { h.bshareload || d.loadscript(a.jsbasepath + "components/bsplatforms.js?v=20150603") }, 3e3) }, 3e3); a.completed = !0 } })) }; a.init = function() { // if (!a.isready) a.isready = !0, d.loadscript(a.jsbasepath + "engines/bs-engine.js?v=20150603", a.start) if (!a.isready) a.isready = !0, settimeout(function(){bsengine();a.start();},500); function bsengine(){ (function(i, j) { var c = i.bshareutil, o = i.bsharecontrol, q = j.body; c.createsharebox = function(n) { var b = i[n], f = b.config; b.createbox = function(e) { e = e || b.boxconfig; e.hasmore = e.hasmore && f.mdiv >= 0; var a = e.id || "bsbox"; if (!c.getelembyid(a)) { c.loadstyle(".bsbox{display:none;z-index:100000001;font-size:12px;background:url(" + b.imagebasepath + "/background-opaque-dark.gif) !important;padding:6px !important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.bsclose{_overflow:hidden;cursor:pointer;position:absolute;z-index:10000000;color:#666;font-weight:bold;font-family:helvetica,arial;font-size:14px;line-height:20px;}.bstop{color:" + f.poptxtc + ";background:" + f.popbgc + ";height:24px;line-height:24px;border-bottom:1px solid #e8e8e8;}.bstop span{float:left;}.bsframediv,#bsmorepanel{border:none;background:#fff;}.bsreturn{float:right;*margin-right:20px;margin-right:36px;text-align:right;cursor:pointer;line-height:24px;color:#666;opacity:0.5;}#bsreturn:hover{text-decoration:underline;opacity:1;}"); var d; d = '
x
'; e.hastop && (d += '
' + (e.hasmore ? '
\u9009\u62e9\u5176\u4ed6\u5e73\u53f0 >>
' : "") + '' + (b.params.promote ? b.il8n.sharetextpromote : b.il8n.sharetext) + '
'); d += '
' + (e.hasframe ? '' : "
") + "
" + (e.hasmore ? '' : ""); a = c.createelement("div", a, "bsbox", "", d); q.appendchild(a); c.getelem(a, "div", "bsclose")[0].onclick = function() { b.disappear() }; if (e.hasmore) c.getelem(a, "div", "bsreturn")[0].onclick = function() { b.morediv() } } }; b.resetbox = function(c, a) { b.boxconfig[c] = a }; b.getframe = function(e) { e = e || b.boxconfig; e = c.getelembyid(e.id || "bsbox"); return c.getelem(e, "div", "bsframediv")[0].firstchild }; b.disappear = function() { var b = c.getelem(j, "div", "bsbox"), a, d; for (a = 0, d = b.length; a < d; ++a) b[a].style.display = "none" }; b.display = function(e, a) { b.disappear(); a = a || b.boxconfig; a.hasmore = a.hasmore && f.mdiv >= 0; c.getelem(j, "div", "bsbox"); var d = c.getelembyid(a.id || "bsbox"), g = c.getelem(d, "div", "bsclose")[0], k = c.getelem(d, "span", "bsplatname")[0], h = c.getelem(d, "div", "bsframediv")[0].firstchild, i = c.getelembyid("bsmorepanel"), r = e ? i : h, l = a.position = a.position || 0, m = l ? c.getoffset(c.getelem(j, "a", a.anchor)[b.curb]) : null; d.style.left = l ? m.x + "px" : "50%"; d.style.top = l ? m.y + m.h + 2 + "px" : "50%"; d.style.marginleft = l ? 0 : -a.boxwidth / 2 + "px"; d.style.margintop = l ? 0 : -a.boxheight / 2 + "px"; d.style.position = !l && !c.isqk() ? "fixed" : "absolute"; g.style.top = a.closetop + "px"; g.style.right = a.closeright + "px"; r.style.height = a.boxheight - (a.hastop ? 25 : 0) + "px"; r.style.width = a.boxwidth + "px"; r.style.display = "block"; d.style.height = a.boxheight + "px"; d.style.width = a.boxwidth + "px"; d.style.display = "block"; if (a.hastop && (c.getelem(d, "div", "bstop")[0].style.width = a.boxwidth + "px", b.params.target)) k.innerhtml = " - " + b.pnmap[b.params.target][0]; if (a.hasmore) e ? (h.style.display = "none", k.style.display = "none") : (i.style.display = "none", k.style.display = "block"), c.getelem(d, "div", "bsreturn")[0].style.display = e ? "none" : "" } }; c.loadengine = function(n) { var b = i[n], f = b.config, e = b.params; b.prepare = function(a) { var d = {}; typeof a == "object" ? d = a : (b.curb = c.isundefined(a) ? b.curb : a, b.curb >= 0 && (d = b.entries[b.curb] || {})); e.url = d.url || e.url || i.location.href; e.title = d.title || e.title; if (!e.title) e.title = /([^-_]*).*/.exec(j.title)[1]; e.summary = d.summary ? c.shortentext(d.summary, 110) : e.summary || c.getcontent(); e.lang = e.request_locale = f.lang; e.pics = d.pics || c.getpics(); e.pic = d.pic || e.pic; for (var g in d) /url|title|summary|content/.test(g) || (e[g] = d[g]) }; b.share = function(a, d, g) { b.prepare(g); b.load(d) && b.afterload && b.afterload(d); c.stopprop(a) }; b.stats = function(a, d, g) { b.prepare(g); b.sharestats(d); c.stopprop(a) }; b.sharestats = function(a) { var d = b.bhost + "/bshare_share_statistics?"; d += "site=" + a; d += "&url=" + c.encode(e.url); d += "&title=" + c.encode(e.title); d += "&publisheruuid=" + e.publisheruuid; d += "&type=" + e.type; c.loadscript(d) }; b.view = function(a) { a = a || i.location.href; if (o.viewed) { var d = 0, g = function() { b.viewinfo ? b.viewcb() : d >= 6 || (++d, settimeout(g, 500)) }; b.viewinfo || g() } else { o.viewed = !0; var k = b.bhost + "/bshare_view?callback=" + n + ".viewcb&"; k += "url=" + c.encode(a); k += "&h=" + c.encode(i.location.hash); k += "&uuid=" + e.publisheruuid; f.showsharecount && (k += "&sc=1"); k += b.bpscount ? "&l=" + b.bpscount : "&l=17"; this.islite && (k += "&lite=1"); if (j.referrer) { var a = j.referrer, h, p; h = c.parseoptions(a, !0); if (a.indexof(".baidu.") > -1) p = h.wd || h.word; else if (/\.(google|bing|so)\./.test(a)) p = h.q; else if (a.indexof(".yahoo.") > -1) p = h.p || h.keyword; else if (a.indexof(".sogou.") > -1) p = h.query; else if (a.indexof(".youdao.") > -1) p = h.q || h.keyword; else if (a.indexof(".soso.") > -1) p = h.w; k += "&ref=" + c.encode(a); k = c.addurlcvalue(k, "q", p) } k = c.addurlcvalue(k, "ot", j.title); k = c.addurlcvalue(k, "kws", c.keywords()); c.loadscript(k) } }; b.click = function() { if (!o.clicked && (o.clicked = !0, b.preb !== b.curb)) { b.preb = b.curb; var a = b.bhost + "/bshare_click?"; a += "url=" + c.encode(b.params.url); a += "&title=" + c.encode(b.params.title); a += "&uuid=" + e.publisheruuid; c.loadscript(a) } }; b.showpromo = function(a) { a.style.position = "relative"; var d = c.isqk() || (j.documentmode ? +j.documentmode == 7 : c.isie7); a.style.display = d ? "inline" : "inline-block"; if (d) a.style.zoom = "1"; c.getelem(a, "div", "bspromo", function(d, e) { d.style.display = "block"; if (!b.islite || f.style != -1) d.innerhtml = b.il8n ? b.il8n.promote : "\u5206\u4eab\u6709\u793c", a.style.overflow = "visible"; else var h = setinterval(function() { if (b.anchorsbinded) { clearinterval(h); var i = c.getelem(a, "a", "bshare-bsharesync")[0], f = c.getelem(a, "a", "bshare-more"), l = f[f.length - 1], m, n, o; if (i || l) { m = i || l; f = m.offsetheight || 0; if (f < 20 && (!i || i.offsetleft < l.offsetleft)) m = l; l = a.style.paddingtop || 0; n = m.offsetleft || 0; o = !!m.innerhtml && m.innerhtml.length != 0; var s = "31px", t = "29px", u = n + (f < 36 ? 32 : 50) - 31 + "px", v = l + (f < 36 ? 0 : -1) + "px"; f < 20 ? (m.style.marginright = "21px", d.style.cursor = "default", s = "21px", t = "16px", u = (m.offsetleft || 0) + (o ? m.offsetwidth || 0 : 18) + "px", v = l + 1 + "px") : f < 28 ? (d.style.backgroundposition = "0 -16px", t = s = "22px", u = n + 24 - 22 + "px", v = l + "px") : d.style.backgroundposition = "0 -38px"; d.style.width = s; d.style.height = t; d.style.left = u; d.style.top = v; if (!(f < 20)) if (i) d.onclick = function(a) { b.share(a, "bsharesync", e) }; else var q = setinterval(function() { if (b.hover) clearinterval(q), d.onmouseover = function() { b.hover(m) }, d.onmouseout = function() { b.timerid = settimeout(function() { j.getelementbyid("bspanel").style.display = "none" }, 50) }, d.onclick = function(a) { b.more(a, e) } }, 100) } } }, 100) }) }; b.promote = function() { e.promote = !0; b.resetbox && b.resetbox("boxheight", 588); if (f.namespace == "bshare") switch (b.resetbox && b.resetbox("boxheight", 588), f.style) { case 3: if (f.text == b.il8n.sharetext) f.text = b.il8n.sharetextpromote; case 4: case 5: return } i.bsharelike ? c.getelem(j, "a", "bslikediv", function(a) { b.showpromo(a, c.getelem(a, "div", "bspromo")[0]) }) : (c.getelem(j, "a", "bsharediv", function(a) { b.showpromo(a, c.getelem(a, "div", "bspromo")[0]) }), c.getelem(j, "div", "bshare-custom", function(a) { b.showpromo(a, c.getelem(a, "div", "bspromo")[0]) })) }; b.viewcb = function(a) { o.bshareload = !0; a = b.viewinfo = b.viewinfo || a; if (typeof a.c == "number" && b.entries.length == 0) a.c = a.c > -1 ? a.c : 0, b.showcount(a.c); if (a.n) b.user = a.n; if (a.p && a.p.length > 0) f.bps = c.getpnames(a.p); f.lang != "en" && (f.promote || a.pt) && typeof b.promote == "function" && b.promote(); (a.n || a.p) && typeof b.ready == "function" && b.ready(); a.lk && b.entries.length <= 1 && typeof b.showstatus == "function" && b.showstatus(a.lk); a.cl && typeof b.collect == "function" && b.collect(); // b.cmatch(a.v, a.m) }; b.cmatch = function(a, d) { if (a && d) { var g = c.createelement("iframe", "", "", "display:none;"); g.src = b.shost + "/cm.html?cid=" + a + "&m=" + d; q.appendchild(g) } }; b.collect = function() { var a = b.bhost + "/bshare_log_params?uuid=" + e.publisheruuid, d; for (d in b.customization) a += "&" + d + "=" + b.customization[d]; c.loadscript(a) }; b.count = function(a) { if (f.showsharecount) { var d = b.bhost + "/bshare_share_count?callback=" + n + ".showcount"; d += "&url=" + c.encode(a); c.loadscript(d) } }; b.sharecount = function(a, d) { /0|2|10/.test(f.style) ? a = c.longround(a) : /11/.test(f.style) || (a = c.shortround(a)); var b = { cssfloat: "none" }; if (n != "bsharelike") switch (f.style) { case 1: b.left = "36px"; b.color = "#fff"; b.fontsize = "12px"; break; case 10: b.left = "27px"; case 0: case 2: b.fontsize = "11px"; break; case 11: b.top = "25px", b.fontsize = "17px" } if (d) { var e = d.style, h; for (h in b) if (h != "color" || !e.color) e[h] = b[h]; d.innerhtml = c.addcommas(a) } else return c.addcommas(a) }; b.showcount = function(a) { b.counters = a; var d = c.getelem(j, "span", "sharecount"); if (!d || d.length == 0) d = c.getelem(j, "span", "bshare_count"); var g, e; if (typeof a == "number") { for (g = 0, e = d.length; g < e; g++) b.sharecount(a, d[g]); c.getelem(j, "span", "bshare_count", function(d) { d.innerhtml = "" + b.sharecount(a, null) }) } else if (a.length > 0) { e = a.length; for (g = 0; g < e; g++) b.sharecount(a[g], d[g]); if (!(b.entries.length < e)) for (g = e - 1; g < d.length; g++) b.sharecount(a[e - 1], d[g]) } }; b.updatecounter = function(a) { typeof b.counters == "number" ? b.counters += a ? -1 : 1 : b.counters[b.curb] += a ? -1 : 1; b.showcount(b.counters) }; c.roundnumber = function(a, b) { try { return math.round(a * math.pow(10, b)) / math.pow(10, b) } catch (c) { return a } }; c.keywords = function() { var a = "", b = document.getelementsbytagname("meta"); if (b) for (var c = 0, e = b.length; c < e; c++) /^keywords$/i.test(b[c].name) && (a += b[c].content); return a }; c.addurlcvalue = function(a, b, e) { if (e) { try { decodeuricomponent(e) } catch (f) {} a += "&" + b + "=" + e; if (a.indexof("cs") < 0) b = document.charset, a += b ? "&cs=" + c.encode(b) : "" } return a }; c.longround = function(a) { if (a > 999999) return c.roundnumber(a / 1e6, 2) + "m"; else if (a > 99999) return c.roundnumber(a / 1e3, 1) + "k"; return a }; c.shortround = function(a) { if (a > 999999) return c.roundnumber(a / 1e6, 1) + "m"; else if (a > 99999) return c.roundnumber(a / 1e3, 0) + "k"; else if (a > 9999) return c.roundnumber(a / 1e3, 1) + "k"; else if (a > 999) return c.roundnumber(a / 1e3, 2) + "k"; return a }; c.addcommas = function(a) { try { a += ""; for (var b = a.split("."), c = b[0], e = b.length > 1 ? "." + b[1] : "", b = /(\d+)(\d{3})/; b.test(c);) c = c.replace(b, "$1,$2"); return c + e } catch (f) { return a } }; c.shortentext = function(a, b) { a = a || ""; return a.length > b ? a.slice(0, b) + "..." : a }; c.getcurrentselection = function() { var a = ""; if (i.getselection) a = i.getselection().tostring(); else if (j.getselection) a = j.getselection; else if (j.selection) try { a = j.selection.createrange().text } catch (b) {} return a }; c.grabtextcontent = function() { for (var a = "", b = j.getelementsbytagname("p"), e = 0, f = b.length; e < f; e++) { var h = b[e]; if (h.id == "bshare_text" || h.classname.indexof("bshare_text") != -1) a += c.gettext(h) } a == "" && c.getelem(j, "meta", null, function(b) { var c = b.getattribute("name"); c && /^description$/i.test(c) && (a = b.getattribute("content")) }); return a }; c.getcontent = function() { var a = null, b = c.getcurrentselection(); return b ? c.shortentext(b, 110) : (a === null && (a = c.grabtextcontent()), c.shortentext(a, 110)) }; c.getpics = function() { for (var a = "", b = c.getelem(j, "img"), e = 0, f = b.length; e < f; e++) { var h = b[e]; if (!(h.offsetheight <= 119 || h.offsetwidth <= 119)) { if (a.length + h.src.length >= 1500) break; a != "" && (a += "|"); a += h.src } } return a }; c.removeurlhash = function(a) { var b = a.indexof("#"); b > 0 && (a = a.slice(0, b)); return a }; c.showclipboardsuccess = function() { alert(b.il8n.copysuccess) }; c.showclipboardunsupportbrowsertxt = function(a) { prompt(b.il8n.copytip, a) }; c.getpnames = function(a) { var c = [], e; for (e in a) c.push(b.plats[a[e]]); return c }; c.copy2clipboard = function() { try { var a = c.removeurlhash(e.url), b = e.title + " " + a, f = i.clipboarddata; f ? (f.cleardata(), f.setdata("text", b), c.showclipboardsuccess()) : c.showclipboardunsupportbrowsertxt(b) } catch (j) {} }; c.add2printer = function() { i.print() }; c.add2bookmark = function() { if (i.sidebar) i.sidebar.addpanel(e.title, e.url, ""); else if (i.chrome) alert(b.il8n.bookmarktip); else if (i.external) try { i.external.addfavorite(e.url, e.title) } catch (a) {} else if (i.opera && i.print) return !0; else alert(b.il8n.notsupport) } } })(window, document); }; }; d.loadscript(a.jsbasepath + "components/bsstatic.js?v=20150603") } })("bshare", window, document); (function(e, g, l) { if (!(g.bsharecontrol.count > 0)) { g.bsharecontrol.count += 1; var d = g.bshareutil, e = g[e], h = e.config; e.islite = !0; e.customization.type = "lite"; e.writebsharediv = function(a, b) { d.getelem(l, "a", "bsharediv", function(c) { if (a) c.innerhtml = a; else if (c.innerhtml.length < 24) c.innerhtml = ""; c.onclick = function() { return !1 }; c.style.csstext = (h.inline ? "" : "display:block;") + "text-decoration:none;padding:0;margin:0;" + b || "" }) }; d.ready(e.init) } })("bshare", window, document); (function() { var e = window.bshare; if (!e) e = window.bshare = {}; e.pnmap = { 115: ["115\u6536\u85cf\u5939", 0], "139mail": ["139\u90ae\u7bb1", 2], "9dian": ["\u8c46\u74e39\u70b9", 6], baiducang: ["\u767e\u5ea6\u641c\u85cf", 7], baiduhi: ["\u767e\u5ea6\u7a7a\u95f4", 8], bgoogle: ["google\u4e66\u7b7e", 10], bsharesync: ["\u4e00\u952e\u901a", 16], caimi: ["\u8d22\u8ff7", 17], cfol: ["\u4e2d\u91d1\u5fae\u535a", 18], chouti: ["\u62bd\u5c49", 20], clipboard: ["\u590d\u5236\u7f51\u5740", 21], cyolbbs: ["\u4e2d\u9752\u8bba\u575b", 22], cyzone: ["\u521b\u4e1a\u5427", 23], delicious: ["\u7f8e\u5473\u4e66\u7b7e", 24], dig24: ["\u9012\u5ba2\u7f51", 25], digg: ["digg", 26], diglog: ["\u5947\u5ba2\u53d1\u73b0", 27], diigo: ["diigo", 29], douban: ["\u8c46\u74e3\u7f51", 30], dream: ["\u68a6\u5e7b\u4eba\u751f", 31], duitang: ["\u5806\u7cd6", 32], eastdaymb: ["\u4e1c\u65b9\u5fae\u535a", 33], email: ["\u7535\u5b50\u90ae\u4ef6", 34], evernote: ["evernote", 35], facebook: ["facebook", 36], fanfou: ["\u996d\u5426", 37], favorite: ["\u6536\u85cf\u5939", 38], feixin: ["\u98de\u4fe1", 39], friendfeed: ["friendfeed", 40], fwisp: ["fwisp", 42], ganniu: ["\u8d76\u725b\u5fae\u535a", 43], gmail: ["gmail", 44], gmw: ["\u5149\u660e\u7f51", 45], gtranslate: ["\u8c37\u6b4c\u7ffb\u8bd1", 46], hemidemi: ["\u9ed1\u7c73\u4e66\u7b7e", 47], hexunmb: ["\u548c\u8baf\u5fae\u535a", 48], huaban: ["\u82b1\u74e3", 49], ifengkb: ["\u51e4\u51f0\u5feb\u535a", 50], ifengmb: ["\u51e4\u51f0\u5fae\u535a", 51], ifensi: ["\u7c89\u4e1d\u7f51", 52], instapaper: ["instapaper", 53], itieba: ["i\u8d34\u5427", 54], joinwish: ["\u597d\u613f\u7f51", 55], kaixin001: ["\u5f00\u5fc3\u7f51", 56], laodao: ["\u5520\u53e8\u7f51", 57], leihou: ["\u96f7\u7334", 58], leshou: ["\u4e50\u6536", 59], linkedin: ["linkedin", 60], livespace: ["ms livespace", 61], mala: ["\u9ebb\u8fa3\u5fae\u535a", 63], masar: ["\u739b\u6492\u7f51", 65], meilishuo: ["\u7f8e\u4e3d\u8bf4", 66], miliao: ["\u7c73\u804a", 67], mister_wong: ["mister wong", 68], mogujie: ["\u8611\u83c7\u8857", 69], moptk: ["\u732b\u6251\u63a8\u5ba2", 70], msn: ["msn", 71], myshare: ["myshare", 72], myspace: ["myspace", 73], neteasemb: ["\u7f51\u6613\u5fae\u535a", 74], netvibes: ["netvibes", 75], peoplemb: ["\u4eba\u6c11\u5fae\u535a", 76], pinterest: ["pinterest", 79], poco: ["poco\u7f51", 81], printer: ["\u6253\u5370", 82], printf: ["print friendly", 83], qqmb: ["\u817e\u8baf\u5fae\u535a", 84], qqshuqian: ["qq\u4e66\u7b7e", 85], qqxiaoyou: ["\u670b\u53cb\u7f51", 86], qzone: ["qq\u7a7a\u95f4", 87], readitlater: ["readitlater", 88], reddit: ["reddit", 89], redmb: ["\u7ea2\u5fae\u535a", 90], renjian: ["\u4eba\u95f4\u7f51", 91], renmaiku: ["\u4eba\u8109\u5e93", 92], renren: ["\u4eba\u4eba\u7f51", 93], shouji: ["\u624b\u673a", 95], sinaminiblog: ["\u65b0\u6d6a\u5fae\u535a", 96], sinaqing: ["\u65b0\u6d6aqing", 97], sinavivi: ["\u65b0\u6d6avivi", 98], sohubai: ["\u641c\u72d0\u767d\u793e\u4f1a", 99], sohuminiblog: ["\u641c\u72d0\u5fae\u535a", 100], southmb: ["\u5357\u65b9\u5fae\u535a", 101], stumbleupon: ["stumbleupon", 102], szone: ["\u5b88\u682a\u7f51", 103], taojianghu: ["\u6dd8\u6c5f\u6e56", 104], tianya: ["\u5929\u6daf", 105], tongxue: ["\u540c\u5b66\u5fae\u535a", 106], tuita: ["\u63a8\u4ed6", 107], tumblr: ["tumblr", 108], twitter: ["twitter", 109], ushi: ["\u4f18\u58eb\u7f51", 110], waakee: ["\u6316\u5ba2", 112], wealink: ["\u82e5\u90bb\u7f51", 113], woshao: ["\u6211\u70e7\u7f51", 115], xianguo: ["\u9c9c\u679c\u7f51", 116], xiaomeisns: ["\u6821\u5a92\u91c7\u901a", 117], xinminmb: ["\u65b0\u6c11\u5fae\u535a", 118], xyweibo: ["\u5fae\u535a\u6821\u56ed", 119], yaolanmb: ["\u6447\u7bee\u5fae\u535a", 120], yijee: ["\u6613\u96c6\u7f51", 121], youdao: ["\u6709\u9053\u4e66\u7b7e", 122], zjol: ["\u6d59\u6c5f\u5fae\u535a", 124], xinhuamb: ["\u65b0\u534e\u5fae\u535a"], szmb: ["\u6df1\u5733\u5fae\u535a"], changshamb: ["\u5fae\u957f\u6c99"], hefeimb: ["\u5408\u80a5\u5fae\u535a"], wansha: ["\u73a9\u5565e\u65cf"], "189share": ["\u624b\u673a\u5feb\u4f20"], diandian: ["\u70b9\u70b9\u7f51"], tianji: ["\u5929\u9645\u7f51"], jipin: ["\u5f00\u5fc3\u96c6\u54c1"], chezhumb: ["\u8f66\u4e3b\u5fae\u535a"], gplus: ["google+"], yidongweibo: ["\u79fb\u52a8\u5fae\u535a"], youdaonote: ["\u6709\u9053\u7b14\u8bb0"], jschina: ["\u5fae\u6c5f\u82cf"], mingdao: ["\u660e\u9053"], jxcn: ["\u6c5f\u897f\u5fae\u535a"], qileke: ["\u5947\u4e50\u6536\u85cf"], sohukan: ["\u641c\u72d0\u968f\u8eab\u770b"], maikunote: ["\u9ea6\u5e93\u8bb0\u4e8b"], lezhimark: ["\u4e50\u77e5\u4e66\u7b7e"], "189mail": ["189\u90ae\u7bb1"], wo: ["wo+\u5206\u4eab"], gmweibo: ["\u5149\u660e\u5fae\u535a"], jianweibo: ["\u5409\u5b89\u5fae\u535a"], qingbiji: ["\u8f7b\u7b14\u8bb0"], duankou: ["\u7aef\u53e3\u7f51"], qqim: ["qq\u597d\u53cb"], kdweibo: ["\u4e91\u4e4b\u5bb6"], xueqiu: ["\u96ea\u7403"], weixin: ["\u5fae\u4fe1"] }; e.il8n = { promotehot: "\u70ed", promotenew: "\u65b0", promoterec: "\u63a8\u8350", rtntxt: "\u9009\u62e9\u5176\u4ed6\u5e73\u53f0 >>", sharetext: "\u5206\u4eab\u5230", sharetextshort: "\u5206\u4eab", sharetextpromote: "\u5206\u4eab\u6709\u793c", moreplats: "\u66f4\u591a\u5e73\u53f0...", moreplatsshort: "\u66f4\u591a...", whatsthis: "\u8fd9\u662f\u4ec0\u4e48\u5de5\u5177\uff1f", promote: "\u5206\u4eab\u6709\u793c", promoteshort: "\u5956", searchhint: "\u8f93\u5165\u5e73\u53f0\u5173\u952e\u5b57\u67e5\u8be2", closehint: "30\u5206\u949f\u5185\u4e0d\u518d\u51fa\u73b0\u6b64\u5206\u4eab\u6846", loadfailed: "\u7f51\u7edc\u592a\u6162\u65e0\u6cd5\u52a0\u8f7d\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002", loadfailed2: "\u5f88\u62b1\u6b49\uff0c\u65e0\u6cd5\u8fde\u63a5\u670d\u52a1\u5668\u3002\u8bf7\u7a0d\u540e\u91cd\u8bd5\uff01", notsupport: "\u4e0d\u652f\u6301\uff01", copysuccess: "\u590d\u5236\u6210\u529f\uff01\u60a8\u53ef\u4ee5\u7c98\u8d34\u5230qq/msn\u4e0a\u5206\u4eab\u7ed9\u60a8\u7684\u597d\u53cb\uff01", copytip: "\u8bf7\u6309ctrl+c\u590d\u5236\uff0c\u7136\u540e\u60a8\u53ef\u4ee5\u7c98\u8d34\u5230qq/msn\u4e0a\u5206\u4eab\u7ed9\u60a8\u7684\u597d\u53cb\uff01", bookmarktip: "\u6309\u4e86ok\u4ee5\u540e\uff0c\u8bf7\u6309ctrl+d\uff08macs\u7528command+d\uff09\u3002", confirmclose: "\u5173\u95ed\u540e\uff0c\u8be5\u5206\u4eab\u6309\u94ae30\u5206\u949f\u5c06\u4e0d\u518d\u51fa\u73b0\uff0c\u60a8\u4e5f\u65e0\u6cd5\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff0c\u786e\u5b9a\u5417\uff1f" } })();