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