var bdShare=bdShare||{};bdShare._LogPool=bdShare._LogPool||[];if(!bdShare.ApiPVLogger){(function(h){var e,b=e={version:"1.5.2.2"};b.guid="$BAIDU$";b.$$=window[b.guid]=window[b.guid]||{global:{}};b.browser=b.browser||{};(function(){var k=navigator.userAgent;b.browser.safari=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(k)&&!/chrome/i.test(k)?+(RegExp["\x241"]||RegExp["\x242"]):undefined})();b.browser.ie=b.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?(document.documentMode||+RegExp["\x241"]):undefined;b.browser.opera=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(navigator.userAgent)?+(RegExp["\x246"]||RegExp["\x242"]):undefined;b.dom=b.dom||{};(function(){var k=b.dom.ready=function(){var m=false,n=[],q;if(document.addEventListener){q=function(){document.removeEventListener("DOMContentLoaded",q,false);p()}}else{if(document.attachEvent){q=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",q);p()}}}}function p(){if(!p.isReady){p.isReady=true;for(var r=0,s=n.length;r<s;r++){n[r]()}}}function l(){try{document.documentElement.doScroll("left")}catch(r){setTimeout(l,1);return}p()}function o(){if(m){return}m=true;if(document.readyState==="complete"){p.isReady=true}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",q,false);window.addEventListener("load",p,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",q);window.attachEvent("onload",p);var s=false;try{s=window.frameElement==null}catch(r){}if(document.documentElement.doScroll&&s){l()}}}}}o();return function(r){p.isReady?r():n.push(r)}}();k.isReady=false})();e.undope=true;var i={cite:0,img:1,addto:2};var f=(function(){var k=[];return function(l){var o="bdsharelog__"+(new Date()).getTime(),m=k[o]=new Image();m.onload=(m.onerror=function(){k[o]=null});m.src=l;m=null}})();var d=function(n){var l=/(\d+\-[a-zA-Z\d]+\-\d+\-\d+\-[a-f\d]+)/ig,k=(location.href.match(l)||"").toString();var m="http://nsclick.baidu.com/v.gif?pid=307&type=3071&sign="+k+"&desturl="+encodeURIComponent(document.referrer)+"&";f(m+n)};function c(m,l){var k=[];for(var n in l){k.push(m+"_"+n+"="+l[n])}return k.join("&")}function a(){var n=bdShare._LogPool||[],k=n.length;if(k>0){var p=[],q="",o=null,m=[0,0,0,0,0,0,0,0];for(var l=0;l<k;l++){o=n[l];m[i[o.key]]=1;if(o.api.linkid){q=o.api.linkid;delete o.api.linkid}p.push(c(o.key,o.api))}p.unshift("linkid="+q);p.unshift("apitype="+parseInt(m.reverse().join(""),2));d(p.join("&"))}}var j=false;function g(){j=true;e.dom.ready(a)}h.ApiPVLogger={add:function(l,k){bdShare._LogPool.push({key:l,api:k})}};if(!j){g()}})(bdShare)};