$(function(){addsubshare()});function addsubshare(){var a="share53bk_sub";var c=document.getElementById(a);var d=document.getElementById("share53bk_more");if(c==null){var g=document.createElement("div");g.id=a;g.setAttribute("name",a);d.appendChild(g);c=document.getElementById(a);$("#"+a).addClass("share53bk_sub")}var f="<ul>";f+='<li><a class="s_button s_copy" rel="nofollow">\u590d\u5236\u7f51\u5740</a></li>';f+='<li><a class="s_button s_all" rel="nofollow">\u4e00\u952e\u5206\u4eab</a></li>';f+='<li><a class="s_button s_qzone" rel="nofollow">\u0051\u0051\u7a7a\u95f4</a></li>';f+='<li><a class="s_button s_tsina" rel="nofollow">\u65b0\u6d6a\u5fae\u535a</a></li>';f+='<li><a class="s_button s_tqq" rel="nofollow">\u817e\u8baf\u5fae\u535a</a></li>';f+='<li><a class="s_button s_pengyou" rel="nofollow">\u670b\u53cb\u7f51</a></li>';f+='<li><a class="s_button s_renren" rel="nofollow">\u4eba\u4eba\u7f51</a></li>';f+='<li><a class="s_button s_weixin" rel="nofollow">\u5fae\u4fe1</a></li>';f+='<li><a class="s_button s_tieba" rel="nofollow">\u767e\u5ea6\u8d34\u5427</a></li>';f+='<li><a class="s_button s_hibaidu" rel="nofollow">\u767e\u5ea6\u7a7a\u95f4</a></li>';f+='<li><a class="s_button s_cangbaidu" rel="nofollow">\u767e\u5ea6\u6536\u85cf</a></li>';f+='<li><a class="s_button s_t163" rel="nofollow">\u7f51\u6613\u5fae\u535a</a></li>';f+='<li><a class="s_button s_ifeng" rel="nofollow">\u51e4\u51f0\u5fae\u535a</a></li>';f+='<li class="last"><a class="s_button s_view" rel="nofollow">\u67e5\u770b\u66f4\u591a</a><a class="no" rel="nofollow" id="s_nowlink" target="_blank"></a></li>';f+="</ul>";$("#"+a).html('<div class="s_sub_title">\u5206\u4eab\u5230</div><div class="s_sub_con">'+f+'</div><div class="s_sub_bottom"><a href="http://www.53bk.com/" target="_blank" class="no">53bk.com</a></div>');var b=encodeURIComponent(window.location.href);var e=encodeURIComponent(document.title);$(".share53bk .s_button").each(function(j){$(this).attr("title","\u5206\u4eab\u5230"+$(this).html());$(this).attr("target","_blank");var h=$(this).attr("class").split(" ")[1];var k="";switch(h){case"s_copy":k=b;break;case"s_all":k="http://s.jiathis.com/?webid=ishare&url="+b+"&title="+e+"&su=1";break;case"s_qzone":k="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+b+"&title="+e+"&pics=&summary=";break;case"s_tsina":k="http://service.weibo.com/share/share.php?title="+e+"&url="+b+"&source=bookmark&appkey=&pic=&ralateUid=";break;case"s_tqq":k="http://share.v.t.qq.com/index.php?c=share&a=index&title="+e+"&url="+b+"&appkey=&site=www.53bk.com&pic=";break;case"s_renren":k="http://widget.renren.com/dialog/share?resourceUrl="+b+"&srcUrl="+b+"&title="+e+"&pic=&description=";break;case"s_t163":k="http://t.163.com/article/user/checkLogin.do?source=53bk.com&info="+e+"+"+b+"&images=";break;case"s_tieba":k="http://tieba.baidu.com/f/commit/share/openShareApi?title="+e+"&comment=&pic=&url="+b+"";break;case"s_hibaidu":k="http://hi.baidu.com/pub/show/share?url="+b+"&title="+e+"";break;case"s_pengyou":k="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url="+b+"";break;case"s_cangbaidu":k="http://cang.baidu.com/do/add?it="+e+"&iu="+b+"&fr=ien#nw=1";break;case"s_ifeng":k="http://t.ifeng.com/interface.php?sourceUrl="+b+"&title="+e+"&_c=share&_a=share&pic=";break;case"s_view":k="http://s.share.baidu.com/mshare?click=1&url="+b+"&uid=590750&to=mshare&type=text&relateUid=&pic=&title="+e+"&key=&sign=on&desc=&comment=&searchPic=0&l=&linkid=&sloc=&apiType=0&buttonType=0&firstime=";break;default:break}$(this).attr("data-href",k);$(this).click(function(m){m.preventDefault();if(h=="s_copy"){window.clipboardData.setData("Text",window.location.href);return false}if(h=="s_weixin"){var n="http://www.53bk.com/share/weixin";var i=createformopen(n);createinput("url",b,i);createinput("title",e,i);createinput("pic","",i);createinput("action","save",i);document.body.appendChild(i);i.submit();return false}var l=$(this).attr("data-href");$("#s_nowlink").attr("href",l);$("#s_nowlink")[0].click()})});$(".share53bk .s_sub_con li").hover(function(){if(!$(this).hasClass("hover")){$(this).addClass("hover")}},function(){if($(this).hasClass("hover")){$(this).removeClass("hover")}});$(".share53bk .s_more").hover(function(){if(!$(this).hasClass("share_sub_show")){$(this).addClass("share_sub_show")}},function(){if($(this).hasClass("share_sub_show")){$(this).removeClass("share_sub_show")}})};