2009scape-website/s7.addthis.com/js/200/addthis_widget.js

2 lines
17 KiB
JavaScript
Raw Normal View History

/* (c) 2008, 2009, 2010 Add This, LLC */
var addthis_conf={ver:200};function addthis_invoke(e,c,d,f){addthis_config.username=f||_ate.pub();addthis_share.url=(c||b.addthis_url);addthis_share.title=(d||b.addthis_title);var b=window,g=addthis_share.url.toLowerCase(),a=addthis_share.title.toLowerCase();if(g===""||g==="[url]"){addthis_share.url=location.href}if(a===""||a==="[title]"){addthis_share.title=document.title}_ate.as(e);return false};if(!window._ate){var _atd="www.addthis.com/index.html",_atr="http://s7.addthis.com/",_atn="http://l.addthiscdn.com/",_euc=encodeURIComponent,_duc=decodeURIComponent,_atc={dr:0,ver:250,loc:0,enote:"",cwait:500,tamp:-1,xamp:0,camp:1,vamp:1,famp:0.02,pamp:0.2,damp:1,abf:!!window.addthis_do_ab};(function(){try{var E=window.location;if(E.protocol.indexOf("file")===0){_atr="http:"+_atr}if(E.hostname.indexOf("localhost")!=-1){_atc.loc=1}}catch(K){}var I=navigator.userAgent.toLowerCase(),L=document,o=window,G=L.location,N={win:/windows/.test(I),xp:/windows nt 5.1/.test(I)||/windows nt 5.2/.test(I),osx:/os x/.test(I),chr:/chrome/.test(I),iph:/iphone/.test(I),ipa:/ipad/.test(I),saf:/safari/.test(I),web:/webkit/.test(I),opr:/opera/.test(I),msi:(/msie/.test(I))&&!(/opera/.test(I)),ffx:/firefox/.test(I),ff2:/firefox\/2/.test(I),ie6:/msie 6.0/.test(I),ie7:/msie 7.0/.test(I),mod:-1},f={vst:[],rev:"78805",bro:N,show:1,dl:G,upm:!!o.postMessage&&(""+o.postMessage).toLowerCase().indexOf("[native code]")!==-1,camp:_atc.camp-Math.random(),xamp:_atc.xamp-Math.random(),vamp:_atc.vamp-Math.random(),pamp:_atc.pamp-Math.random(),afamp:_atc.afamp-Math.random(),ab:"-",seq:1,inst:1,wait:500,tmo:null,cvt:[],avt:null,sttm:new Date().getTime(),max:4294967295,sid:0,sub:!!window.at_sub,dbm:0,uid:null,spt:"static/r07/widget20.png",api:{},imgz:[],hash:window.location.hash};L.ce=L.createElement;L.gn=L.getElementsByTagName;window._ate=f;var t=function(r,p,q,d){if(!r){return q}if(r instanceof Array||(r.length&&(typeof r!=="function"))){for(var l=0,a=r.length,b=r[0];l<a;b=r[++l]){q=p.call(d||r,q,b,l,r)}}else{for(var e in r){q=p.call(d||r,q,r[e],e,r)}}return q},z=Array.prototype.slice,B=function(b){return z.apply(b,z.call(arguments,1))},A=function(a){return(""+a).replace(/(^\s+|\s+$)/g,"")},J=function(a,b){return t(B(arguments,1),function(e,d){return t(d,function(p,l,i){p[i]=l;return p},e)},a)},m=function(b,a){return t(b,function(i,e,d){d=A(d);if(d){i.push(_euc(d)+"="+_euc(A(e)))}return i},[]).join(a||"&")},j=function(b,a){return t((b||"").split(a||"&"),function(p,r){try{var l=r.split("="),i=A(_duc(l[0])),d=A(_duc(l.slice(1).join("=")));if(i){p[i]=d}}catch(q){}return p},{})},P=function(){var a=B(arguments,0),d=a.shift(),b=a.shift();return function(){return d.apply(b,a.concat(B(arguments,0)))}},F=function(b,e,a,d){if(!e){return}if(we){e[(b?"detach":"attach")+"Event"]("on"+a,d)}else{e[(b?"remove":"add")+"EventListener"](a,d,false)}},k=function(d,a,b){F(0,d,a,b)},g=function(d,a,b){F(1,d,a,b)},c={reduce:t,slice:B,strip:A,extend:J,toKV:m,fromKV:j,bind:P,listen:k,unlisten:g};f.util=c;J(f,c);(function(r,w,Q){var p,S=r.util;function s(V,U,X,T,W){this.type=V;this.triggerType=U||V;this.target=X||T;this.triggerTarget=T||X;this.data=W||{}}S.extend(s.prototype,{constructor:s,bubbles:false,preventDefault:S.noop,stopPropagation:S.noop,clone:function(){return new this.constructor(this.type,this.triggerType,this.target,this.triggerTarget,S.extend({},this.data))}});function i(T,U){this.target=T;this.queues={};this.defaultEventType=U||s}function a(T){var U=this.queues;if(!U[T]){U[T]=[]}return U[T]}function q(T,U){this.getQueue(T).push(U)}function e(U,V){var W=this.getQueue(U),T=W.indexOf(V);if(T!==-1){W.splice(T,1)}}function b(T,X,W,V){var U=this;if(!V){setTimeout(function(){U.dispatchEvent(new U.defaultEventType(T,T,X,U.target,W))},10)}else{U.dispatchEvent(new U.defaultEventType(T,T,X,U.target,W))}}function R(U){for(var V=0,X=U.target,W=this.getQueue(U.type),T=W.length;V<T;V++){W[V].call(X,U.clone())}}function d(U){if(!U){return}for(var T in l){U[T]=S.bind(l[T],this)}return U}var l={constructor:i,getQueue:a,addEventListener:q,removeEventListener:e,dispatchEvent:R,fire:b,decorate:d};S.