function pubshare(e){var b=encodeURIComponent(window.location.href);var g=encodeURIComponent(document.title);var f="http://service.weibo.com/share/share.php?title="+g+"&url="+b+"&source=bookmark&appkey=&pic=&ralateUid=";var a="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+b+"&title="+g+"&pics=&summary=";var d="http://www.53bk.com/share/weixin?url="+b+"&title="+g+"&pics=";var c="";$("#pub_nowhref").html('<a class="no" rel="nofollow" id="pub_nowlink" target="_blank"></a>');switch($(e)[0].id){case"pub_sina":c=f;break;case"pub_qq":c=a;break;case"pub_weixin":if(isWeixin()){c=d;$("#weixin_tip").fadeIn(500);$("#share").stop(true,true).animate({top:"100%",opacity:0,marginTop:"0rem"},"slow");$("#share").addClass("datenone")}else{alert("\u8bf7\u5148\u5728\u5fae\u4fe1\u6d4f\u89c8\uff0c\u518d\u5206\u4eab\u6587\u7ae0\u0021")}return;break}$("#pub_nowlink").attr("href",c);$("#pub_nowlink")[0].click()}function showboxinit(){$(document).on("click","#pub_sina,#pub_qq,#pub_weixin",function(a){a.preventDefault();pubshare(this)});$("#newspapercontent img").each(function(a){if($(this).parent()[0].tagName.toLowerCase()=="p"){$(this).parent().css("text-indent","0em")}else{if($(this).parent().parent()[0].tagName.toLowerCase()=="p"){$(this).parent().parent().css("text-indent","0em")}}});$("#newspapercontent img").css("cursor","pointer");$(document).on("click","#sharetop",function(){if($("#share").hasClass("datenone")){$("#share").removeClass("datenone");$("#wrap3").fadeIn(1500);var a=document.documentElement.clientHeight;var d=$(document).scrollTop()+"px";var b=$("#share").outerHeight();var c=($(window).height()-b)/2;if((a-b)>0){c=((a-b)/2+$(document).scrollTop())+"px"}$("#share").stop(true,true).animate({top:c,opacity:1},"slow")}else{$("#wrap3").fadeOut("normal");$("#share").stop(true,true).animate({top:"100%",opacity:0,marginTop:"0rem"},"slow");$("#share").addClass("datenone")}});$(document).on("click","#wrap3,#sclose,#weixin_tip",function(){$("#wrap3").fadeOut(500);$("#weixin_tip").fadeOut(500);$("#share").stop(true,true).animate({top:"100%",opacity:0,marginTop:"0rem"},"slow");$("#share").addClass("datenone")});$(document).on("click","#zoomtu",function(){$("#zoomtu").fadeOut(500);var a=document.querySelector("meta[name=viewport]");a.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")});$(document).on("click","#newspapercontent img",function(){var j=$(this).attr("src");if(j.indexOf("sound.png")>-1){return false}var k=0;var h=0;var e=new Image();e.setAttribute("src",j);k=e.width;h=e.height;var b=document.documentElement.clientHeight;var g=document.documentElement.clientWidth;var c=0;var l=0;c=h*(g/k);l=g;var i="<img src='"+j+"' style='width:100%;' alt=''  border='0'  />";var a=$("#zoomtu");var f=$("#scroller");f.html(i);var d=$("#scroller img");d.css("margin-top","-"+(h/k)*g/2+"px");a.fadeIn("slow");ImagesZoom.init({elem:"#zoomtu"})});$(document).on("click","#zoomtu .oneCloseBtn",function(){$("#wrap").hide();$("#zoomtu").slideUp("slow")})};