function isWeixin(){var a=navigator.userAgent.toLowerCase();if(a.match(/MicroMessenger/i)=="micromessenger"){return true}else{return false}}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(){$("#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");$("#sharetop").click(function(){if($("#share").hasClass("datenone")){$("#share").removeClass("datenone");$("#wrap3").fadeIn(1500);var a=($(window).height()-$("#share").outerHeight())/2;$("#share").stop(true,true).animate({top:a,opacity:1},"slow")}else{$("#wrap3").fadeOut("normal");$("#share").stop(true,true).animate({top:"100%",opacity:0,marginTop:"0rem"},"slow");$("#share").addClass("datenone")}});$("#wrap3,#sclose,#weixin_tip").click(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(){$("#wrap").hide();$("#zoomtu").slideUp("slow");var a=document.querySelector("meta[name=viewport]");if(isWeixin()){}else{if(!isphone()){a.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes")}}myScroll.destroy()});$("#newspapercontent img").on("click",function(){var h=document.querySelector("meta[name=viewport]");h.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=6.0, user-scalable=1");$("#wrap").show();var l=$(this).attr("src");var n=0;var j=0;var e=new Image();e.setAttribute("src",l);n=e.width;j=e.height;var b=document.documentElement.clientHeight;var i=document.documentElement.clientWidth;var c=0;var p=0;c=j*(i/n);p=i;var k="<img src='"+l+"' style='width:100%;' alt=''  border='0'  />";var a=$("#zoomtu");var g=$("#scroller");g.html(k);var d=$("#scroller img");a.css("height",b+$(document).scrollTop()*2+"px");if(c>b){g.css("height",b+$(document).scrollTop()*2+"px");var m=n*(b/j);$("#scroller img").css("height",b+"px");$("#scroller img").css("width",m+"px");var f=(i-m)/2+"px";d.css("margin-left",f);d.css("margin-top",$(document).scrollTop()+"px")}else{g.css("height",b+$(document).scrollTop()*2+"px");var o=((b-c)/2+$(document).scrollTop())+"px";d.css("margin-top",o)}a.fadeIn("slow")});$("#zoomtu").on("click",".oneCloseBtn",function(){$("#wrap").hide();$("#zoomtu").slideUp("slow")})});