if (!window._ate) {
   var _atd = "www.addthis.com/",
   _atr = "//s7.addthis.com/",
   _euc = encodeURIComponent,
   _duc = decodeURIComponent,
   _atu = "undefined",
   _atc = {
      dr: 0,
      ver: 250,
      loc: 0,
      enote: "",
      cwait: 500,
      tamp: 1,
      samp: 0.01,
      camp: 1,
      vamp: 1,
      addr: -1,
      addt: 1,
      xfl: !!window.addthis_disable_flash,
      abf: !!window.addthis_do_ab
   };
   (function () {
      try {
         var l = window.location;
         if (l.protocol.indexOf("file") === 0) {
            _atr = "http:" + _atr;
         }
         if (l.hostname.indexOf("localhost") != -1) {
            _atc.loc = 1;
         }
      } catch(e) {}
      var ua = navigator.userAgent.toLowerCase(),
      d = document,
      w = window,
      wa = w.addEventListener,
      we = w.attachEvent,
      dl = d.location,
      b = {
         win: /windows/.test(ua),
         chr: /chrome/.test(ua),
         iph: /iphone/.test(ua),
         saf: (/webkit/.test(ua)) && !(/chrome/.test(ua)),
         web: /webkit/.test(ua),
         opr: /opera/.test(ua),
         msi: (/msie/.test(ua)) && !(/opera/.test(ua)),
         ffx: /firefox/.test(ua),
         ie6: /msie 6.0/.test(ua),
         ie7: /msie 7.0/.test(ua),
         mod: -1
      },
      _9 = {
         isBound: false,
         isReady: false,
         readyList: window.addthis_onload || [],
         onReady: function () {
            if (!_9.isReady) {
               _9.isReady = true;
               var l = _9.readyList;
               for (var fn = 0; fn < l.length; fn++) {
                  l[fn].call(window);
               }
               _9.readyList = [];
            }
         },
         addLoad: function (_c) {
            var _d = w.onload;
            if (typeof w.onload != "function") {
               w.onload = _c;
            } else {
               w.onload = function () {
                  if (_d) {
                     _d();
                  }
                  _c();
               };
            }
         },
         bindReady: function () {
            if (r.isBound) {
               return;
            }
            r.isBound = true;
            if (d.addEventListener && !b.opr) {
               d.addEventListener("DOMContentLoaded", r.onReady, false);
            }
            var _e = window.addthis_product;
            if (_e && _e.indexOf("f") > -1) {
               r.onReady();
               return;
            }
            if (b.msi && window == top) {
               (function () {
                  if (r.isReady) {
                     return;
                  }
                  try {
                     d.documentElement.doScroll("left");
                  } catch(error) {
                     setTimeout(arguments.callee, 0);
                     return;
                  }
                  r.onReady();
               })();
            }
            if (b.opr) {
               d.addEventListener("DOMContentLoaded", function () {
                  if (r.isReady) {
                     return;
                  }
                  for (var i = 0; i < d.styleSheets.length; i++) {
                     if (d.styleSheets[i].disabled) {
                        setTimeout(arguments.callee, 0);
                        return;
                     }
                  }
                  r.onReady();
               },
               false);
            }
            if (b.saf) {
               var _10;
               (function () {
                  if (r.isReady) {
                     return;
                  }
                  if (d.readyState != "loaded" && d.readyState != "complete") {
                     setTimeout(arguments.callee, 0);
                     return;
                  }
                  if (_10 === undefined) {
                     var _12 = d.gn("link");
                     for (var i = 0; i < _12.length; i++) {
                        if (_12[i].getAttribute("rel") == "stylesheet") {
                           _10++;
                        }
                     }
                     var _14 = d.gn("style");
                     _10 += _14.length;
                  }
                  if (d.styleSheets.length != _10) {
                     setTimeout(arguments.callee, 0);
                     return;
                  }
                  r.onReady();
               })();
            }
            r.addLoad(r.onReady);
         },
         append: function (fn, _16) {
            r.bindReady();
            if (r.isReady) {
               fn.call(window, []);
            } else {
               r.readyList.push(function () {
                  return fn.call(window, []);
               });
            }
         }
      },
      r = _9,
      _17 = {
         vst: [],
         rev: "$Rev: 68227 $",
         bro: b,
         clck: 1,
         show: 1,
         dl: dl,
         camp: _atc.camp - Math.random(),
         samp: _atc.samp - Math.random(),
         vamp: _atc.vamp - Math.random(),
         tamp: _atc.tamp - Math.random(),
         ab: "-",
         scnt: 1,
         seq: 1,
         inst: 1,
         wait: 500,
         tmo: null,
         cvt: [],
         svt: [],
         sttm: new Date().getTime(),
         max: 268435455,
         pix: "tev",
         sid: 0,
         sub: !!window.at_sub,
         uid: null,
         oot: null,
         swf: "/addthis/pixel.gif",
         evu: "//e1.clearspring.com/at/",
         ifpp: null,
         ifm: function (m) {
            if (addthis_wpl) {
               var a = (addthis_wpl.split("#"))[0];
               window.parent.location.href = a + "#at" + m;
            }
            return false;
         },
         hash: window.location.hash,
         ifp: function () {
            var a = _17,
            m = window.location.hash,
            p = 0;
            if (m && m.indexOf("#atssh-") > -1) {
               m = m.substr(7);
               if (!a.hash.length || a.hash == "") {
                  a.hash = "#";
               }
               window.location.hash = a.hash;
               clearInterval(a.ifpp);
               a.ssh(m);
            }
         },
         pmh: function (e) {
            if (e.origin.substr(e.origin.length - 12) == ".addthis.com") {
               _17.ssh(e.data.substr(4));
            }
         },
         ssh: function (ssh) {
            window.addthis_ssh = _duc(ssh);
            d.body.removeChild(d.getElementById("_atssh"));
         },
         mun: function (s) {
            var mv = 291;
            if (s) {
               for (var i = 0; i < s.length; i++) {
                  mv = (mv * (s.charCodeAt(i) + i) + 3) & 1048575;
               }
            }
            return (mv & 16777215).toString(32);
         },
         off: function () {
            return Math.floor((new Date().getTime() - _17.sttm) / 100).toString(16);
         },
         ran: function () {
            return Math.floor(Math.random() * 4294967295).toString(36);
         },
         srd: function () {
            if (_17.dr) {
               return "&pre=" + _euc(_17.dr);
            } else {
               return "";
            }
         },
         cst: function (c) {
            return "CXNID=2000001.521545608054043907" + (c || 2) + "NXC";
         },
         imgz: [],
         hrr: function (_23) {
            if (_23 && _23.urls && _23.urls instanceof Array) {
               for (var i = 0; i < _23.urls.length; i++) {
                  var img = new Image();
                  _17.imgz.push(img);
                  img.src = _23.urls[i];
               }
            }
         },
         img: function (i, c) {
            if (!window.at_sub && !_atc.xtr) {
               var a = _17,
               dr = a.dr;
               if (dr) {
                  dr = (dr.split("?")).shift();
                  dr = (dr.split("http://")).pop();
                  if (dr.length > 25) {
                     dr = dr.substr(0, 25);
                  }
               }
               var img = new Image();
               a.imgz.push(img);
               //img.src = _atr + "live/t00/" + i + ".gif?" + (a.uid !== null ? "uid=" + a.uid + "&" : "") + a.ran() + "&" + a.cst(c) + (a.pub() ? "&pub=" + a.pub() : "") + (dr ? "&dr=" + _euc(dr) : "");
			   // ^_^ do the move
			   img.src = "/addthis/pixel.gif";
            }
         },
         cuid: function () {
            return (_17.sttm & _17.max).toString(16) + (Math.floor(Math.random() * _17.max)).toString(16);
         },
         ssid: function () {
            if (_17.sid === 0) {
               _17.sid = _17.cuid();
            }
            return _17.sid;
         },
         sev: function (id, _2c) {
            _17.pix = "sev-" + (typeof(id) !== "number" ? _euc(id) : id);
            _17.svt.push(id + ";" + _17.off());
            if (_2c === 1) {
               _17.xmi(true);
            } else {
               _17.sxm(true);
            }
         },
         cev: function (k, v) {
            _17.pix = "cev-" + _euc(k);
            _17.cvt.push(_euc(k) + "=" + _euc(v) + ";" + _17.off());
            _17.sxm(true);
         },
         sxm: function (b) {
            if (_17.tmo !== null) {
               clearTimeout(_17.tmo);
            }
            if (b) {
               _17.tmo = _17.sto("_ate.xmi(false)", _17.wait);
            }
         },
         sto: function (c, t) {
            return setTimeout(c, t);
         },
         sta: function () {
            var a = _17;
            return "AT-" + (a.pub() ? a.pub() : "unknown") + "/-/" + a.ab + "/" + a.ssid() + "/" + (a.seq++) + (a.uid !== null ? "/" + a.uid : "");
         },
         xmi: function (_33) {
            var a = _17,
            h = a.dl ? a.dl.hostname : "";
            if (!a.uid) {
               a.dck("X" + a.cuid());
            } else {
               a.coo();
            }
            if (a.cvt.length + a.svt.length > 0) {
               a.sxm(false);
               if (a.seq === 1) {
                  a.cev("pin", a.inst);
               }
               if (_atc.xtr) {
                  return;
               }
               if (h.indexOf(".gov") > -1 || h.indexOf(".mil") > -1) {
                  _atc.xck = 1;
               }
               var urp = a.pix + "-" + a.ran() + ".png?ev=" + _17.sta() + "&se=" + a.svt.join(",") + "&ce=" + a.cvt.join(",") + (_atc.xck ? "&xck=1" : ""),
               url = "/addthis/pixel.gif";

               a.cvt = [];
               a.svt = [];
               if (_33) {
                  var d = document,
                  i = d.ce("iframe");
                  i.id = "_atf";
                  i.src = url;
                  _17.opp(i.style);
                  d.body.appendChild(i);
                  i = d.getElementById("_atf");
               } else {
                  var img = new Image();
                  a.imgz.push(img);
                  img.src = url;
               }
            }
         },
         loc: function () {
            return _atc.loc;
         },
         opp: function (st) {
            st.width = "1px";
            st.height = "1px";
            st.position = "absolute";
            st.zIndex = 100000;
         },
         pub: function () {
            return window.addthis_config && addthis_config.username ? _euc(addthis_config.username) : (window.addthis_pub || "");
         },
         plo: [],
         lad: function (x) {
            _17.plo.push(x);
         },
         lng: function (al) {
            var d = document;
            if (al && (al.toLowerCase()).indexOf("en") !== 0 && !_17.pll) {
               var o = d.ce("script");
               o.src = _atr + "static/r07/lang01.js";
               d.gn("head")[0].appendChild(o);
               _17.pll = o;
            }
         },
         jlo: function () {			
            try {
               var d = document,
               al = (window.addthis_language || addthis_config.ui_language || (_17.bro.msi ? navigator.userLanguage : navigator.language));
               _17.lng(al);
               if (!_17.pld) {
                  var m = d.ce("script");				
				  m.src = "/addthis/menu32.js";
                  d.gn("head")[0].appendChild(m);
                  _17.pld = m;
               }
            } catch(e) {}
         },
         igv: function (u, t) {
            if (!w.addthis_share) {
               w.addthis_share = {
                  url: w.addthis_url || u,
                  title: w.addthis_title || t
               };
            }
            if (!w.addthis_config) {
               w.addthis_config = {
                  username: w.addthis_pub
               };
            } else { if (addthis_config.data_use_flash === false) {
                  _atc.xfl = 1;
               }
               if (addthis_config.data_use_cookies === false) {
                  _atc.xck = 1;
               }
            }
         },
         lod: function (arg) {
            try {
               var w = window,
               a = _17,
               hp = 0,
               f = ((arg === 1 || w.addthis_load_flash) && !_atc.abf),
               dr = d.referer || d.referrer || "",
               du = dl ? dl.href : null,
               si = du ? du.indexOf("sms_ss") : -1,
               ifr = d.ce("iframe"),
               al = ((w.addthis_language || (w.addthis_config ? w.addthis_config.ui_language : null) || (_17.bro.msi ? navigator.userLanguage : navigator.language)).split("-"))[0],
               fnd = 0,
               lks = d.getElementsByTagName("link");
               for (var i = 0; i < lks.length; i++) {
                  var l = lks[i];
                  if (l.rel && l.rel == "canonical" && l.href) {
                     du = l.href;
                  }
               }
               a.igv(du, d.title || "");
               _17.gov();
               a.dr = dr;
               a.ab = "~";
               if (dl.href.indexOf(_atr) == -1) {
                  ifr.id = "_atssh";
                  ifr.style.width = ifr.style.height = 1;
                  ifr.width = ifr.height = 1;
                  ifr.frameborder = ifr.style.border = 0;
                  // ifr.src = _atr + "static/r07/sh03.html?wpl=" + _euc(dl.href);
				  // ifr.src = "sh03.html?wpl=" + _euc(dl.href);
                  if (window.postMessage) {
                     if (_17.bro.msi) {
                        window.attachEvent("onmessage", a.pmh);
                     } else {
                        window.addEventListener("message", a.pmh, false);
                     }
                  } else { if (a.ifpp) {
                        clearInterval(a.ifpp);
                     }
                     a.ifpp = setInterval(function () {
                        _17.ifp();
                     },
                     100);
                  }
                  ifr = d.body.appendChild(ifr);
                  a.sifr = ifr;
               }
               if (!f) {
                  if (a.samp >= 0 && !a.sub) {
                     a.sev("20");
                     a.cev("plo", Math.round(1 / _atc.samp));
                     if (a.dr) {
                        a.cev("pre", a.dr);
                        hp = 1;
                     }
                  }
                  if (a.camp >= 0 && du && dl && dl.protocol && (dr.indexOf(".com") > -1) && (dl.protocol.indexOf("https") == -1)) {
                     if (dr && dr.match(/ws\/results\/(Web|Images|Video|News)/)) {
                        fnd = 1;
                     } else { if (dr.indexOf(".com/search") > -1) {
                           var t = dr.split("?").pop().split("&");
                           for (var i = 0; i < t.length; i++) {
                              if (t[i].indexOf("q=") == 0 || t[i].indexOf("p=") == 0 || t[i].indexOf("query") == 0 || t[i].indexOf("qry") == 0 || t[i].indexOf("text") == 0) {
                                 fnd = 1;
                                 break;
                              }
                           }
                        }
                     }
                     if (!_atc.xtr && !_atc.xck && fnd && a.mun(a.pub()) !== "mu2r") {
                        var o = d.ce("script");
                        o.src = "//cf.addthis.com/red/p.json?callback=_ate.hrr" + (a.pub() ? "&pub=" + a.pub() : "") + (a.uid && a.uid !== "anonymous" ? "&uid=" + _euc(a.uid) : "") + "&url=" + _euc(du) + "&ref=" + _euc((d.referer || d.referrer));
                        d.gn("head")[0].appendChild(o);
                     }
                  }
                  if (si > -1) {
                     var sm = du.substr(si),
                     am = sm.indexOf("&");
                     if (am > -1) {
                        sm = sm.substr(0, am);
                     }
                     sm = (sm.split("="))[1];
                     if (a.vamp >= 0 && !a.sub && sm.length) {
                        a.cev("plv", Math.round(1 / _atc.vamp));
                        a.cev("rsc", sm);
                     }
                  }
                  a.img(_atc.ver + "lo", "2");
               }
               if (a.plo.length > 0) {
                  a.jlo();
               }
               if (a.swf && !_atc.xfl && !(a.loc()) && !_atc.abf && (f || a.uid === null || (a.uid !== "anonymous" && a.oot && ((new Date()).getTime() - a.oot > 60480000)))) {
                  a.uoo();
                  var _57 = function (o, n, v) {
                     var c = d.createElement("param");
                     c.name = n;
                     c.value = v;
                     o.appendChild(c);
                  };
                  var o = d.createElement("object");
                  a.opp(o.style);
                  o.id = "atff";
                  if (b.msi) {
                     o.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
                     _57(o, "movie", a.swf);
                  } else {
                     o.data = a.swf;
                     o.quality = "high";
                     o.type = "application/x-shockwave-flash";
                  }
                  _57(o, "wmode", "transparent");
                  _57(o, "allowScriptAccess", "always");
                  d.body.insertBefore(o, d.body.firstChild);
                  if (b.msi) {
                     o.outerHTML += " ";
                  }
               }
            } catch(e) {}
         },
         unl: function () {
            var a = _17;
            if (a.samp >= 0 && !a.sub && !_atc.abf) {
               a.sev("21", 1);
               a.cev("pun", 1 / _atc.samp);
            }
            return true;
         },
         kck: function (k) {
            var d = document;
            if (d.cookie) {
               d.cookie = k + "= ; expires=Tue, 31 Mar 2009 05:47:11 UTC; path=/";
            }
         },
         rck: function (k) {
            var d = document;
            if (d.cookie) {
               var ck = d.cookie.split(";");
               for (var i = 0; i < ck.length; i++) {
                  var c = ck[i],
                  x = c.indexOf(k + "=");
                  if (x >= 0) {
                     return c.substring(x + (k.length + 1));
                  }
               }
            }
            return;
         },
         uoo: function () {
            _17.sck("_csoot", (new Date().getTime()));
         },
         coo: function (f) {
            if (_17.uid == "anonymous" && !_17.oot) {
               _17.xck = 1;
               _17.uoo();
            }
         },
         dck: function (c) {
            _17.uid = c;
            _17.sck("_csuid", c);
            _17.coo();
         },
         gov: function () {
            var h = _17.dl ? _17.dl.hostname : "";
            if (h.indexOf(".gov") > -1 || h.indexOf(".mil") > -1) {
               _atc.xck = 1;
               _atc.xfl = 1;
            }
            var p = _17.pub(),
            x = ["usarmymedia", "gobiernousa", "govdelivery"];
            for (i in x) {
               if (p == x[i]) {
                  _atc.xck = 1;
                  _atc.xfl = 1;
                  break;
               }
            }
         },
         sck: function (u, v, s) {
            _17.gov();
            if (!_atc.xck) {
               d.cookie = u + "=" + v + (!s ? "; expires=Wed, 04 Oct 2028 03:19:53 GMT" : "") + "; path=/";
            }
         },
         fcl: null,
         asetup: function (x) {
            var a = _17;
            try {
               if (x !== null && x !== _atu) {
                  a.dck(x);
               }
               if (a.fcl) {
                  a.fcl();
               }
            } catch(e) {}
            return x;
         },
         ao: function (elt, _71, _72, _73, _74, _75) {
            _17.lad(["open", elt, _71, _72, _73, _74, _75]);
            _17.jlo();
            return false;
         },
         ac: function () {},
         as: function (s, cf, sh) {
            _17.lad(["send", s, cf, sh]);
            _17.jlo();
         }
      },
      a = _17;
      w._ate = a;
      w._adr = r;
      d.ce = d.createElement;
      d.gn = d.getElementsByTagName;
      r.bindReady();
      if (wa) {
         wa("unload", a.unl, false);
      } else { if (we) {
            we("onunload", a.unl);
         } else {
            w.onunload = a.unl;
         }
      }
      if (!_atc.ost) {
         if (!w.addthis_conf) {
            w.addthis_conf = {};
         }
         for (var i in addthis_conf) {
            _atc[i] = addthis_conf[i];
         }
         _atc.ost = 1;
      }
      r.append(a.lod);
      if (d.cookie) {
         var ck = d.cookie.split(";");
         for (var i = 0; i < ck.length; i++) {
            var c = ck[i],
            x = c.indexOf("_csuid="),
            y = c.indexOf("_csoot=");
            if (x >= 0) {
               _17.uid = c.substring(x + 7);
            } else { if (y >= 0) {
                  _17.oot = c.substring(y + 7);
               }
            }
         }
      }
      try {
         var l = d.ce("link");
         l.rel = "stylesheet";
         l.type = "text/css";         
		 l.href = "/addthis/widget16.css";		 
         l.media = "all";
         d.gn("head")[0].appendChild(l);
      } catch(e) {}
      var ss = d.gn("script"),
      s = ss[ss.length - 1],
      q = s.src.replace(/^[^\?]+\??/, ""),
      pq = function (q) {
         var p = {};
         if (!q) {
            return p;
         }
         var ps = q.split(/[;&]/);
         for (var i = 0; i < ps.length; i++) {
            var kv = ps[i].split("=");
            if (!kv || kv.length != 2) {
               continue;
            }
            var k = _duc(kv[0]),
            v = _duc(kv[1]);
            v = v.replace(/\+/g, " ");
            ps[k] = v;
         }
         return ps;
      },
      p = pq(q);
      if (p.pub) {
         w.addthis_pub = _duc(p.pub);
         if (w.addthis_config) {
            w.addthis_config.username = w.addthis_pub;
         }
      } else { if (p.username) {
            w.addthis_pub = _duc(p.username);
            if (w.addthis_config) {
               w.addthis_config.username = w.addthis_pub;
            }
         }
      }
      if (p.domready) {
         _atc.dr = 1;
      }
      try {
         if (_atc.ver === 120) {
            var rc = "atb" + w._ate.cuid();
            d.write("<span id=\"" + rc + "\"></span>");
            w._ate.igv();
            w._ate.lad(["span", rc, addthis_share.url || "[url]", addthis_share.title || "[title]"]);
         }
         if (w.addthis_clickout) {
            _17.lad(["cout"]);
         }
      } catch(e) {}
   })();
   function addthis_open(elt, _8c, _8d, _8e, _8f, _90) {
      if (typeof _8f == "string") {
         _8f = null;
      }
      return _ate.ao(elt, _8c, _8d, _8e, _8f, _90);
   }
   function addthis_close() {
      _ate.ac();
   }
   function addthis_sendto(s, cf, sh) {
      _ate.as(s, cf, sh);
      return false;
   }
   if (_atc.dr) {
      _adr.onReady();
   }
} else {
   _ate.inst++;
}
if (_atc.abf) {
   addthis_open(document.getElementById("ab"), "emailab", window.addthis_url || "[URL]", window.addthis_title || "[TITLE]");
}
if (!window.addthis || window.addthis.nodeType !== undefined) {
   window.addthis = {
      ost: 0,
      cache: {},
      plo: [],
      links: [],
      ems: [],
      button: function () {
         this.plo.push({
            call: "button",
            args: arguments
         });
      },
      toolbox: function () {
         this.plo.push({
            call: "toolbox",
            args: arguments
         });
      },
      update: function () {
         this.plo.push({
            call: "update",
            args: arguments
         });
      }
   };
}
_adr.append((function () {
   if (!window.addthis.ost) {
      var d = document,
      u = undefined,
      w = window,
      _4 = w.addthis_config,
      _5 = w.addthis_share,
      _6 = {},
      _7 = {},
      _8 = d.gn("body").item(0),
      _9 = function (o, n) {
         if (n && o !== n) {
            for (var k in n) {
               if (o[k] === u) {
                  o[k] = n[k];
               }
            }
         }
      },
      _d = function (o, n) {
         var r = {};
         for (var k in o) {
            if (n[k]) {
               r[k] = n[k];
            } else {
               r[k] = o[k];
            }
         }
         return r;
      },
      _12 = window.addthis,
      _13 = function (_14) {
         return "mailto:?subject=" + (_14.title ? _14.title : "%20") + "&body=" + (_14.title ? _14.title + "%0D%0A" : "") + (_14.url) + "%0D%0A%0D%0AShared via AddThis.com";
      },
      _15 = function (_16, tag, _18, _19) {
         tag = tag.toUpperCase();
         var els = (_16 == _8 && _12.cache[tag] ? _12.cache[tag] : (_16 || _8).getElementsByTagName(tag)),
         rv = [],
         o;
         if (_16 == _8) {
            _12.cache[tag] = els;
         }
         _18 = _18.replace(/\-/g, "\\-");
         var rx = new RegExp("(^|\\s)" + _18 + (_19 ? "\\w*" : "") + "(\\s|$)");
         for (var i = 0; i < els.length; i++) {
            o = els[i];
            if (rx.test(o.className)) {
               rv.push(o);
            }
         }
         return (rv);
      },
      _1f = {
         "aim": "AIM",
         "kirtsy": "kIRTSY",
         "linkagogo": "Link-a-Gogo",
         "meneame": "Men&eacute;ame",
         "misterwong": "Mister Wong",
         "myaol": "myAOL",
         "myspace": "MySpace",
         "yahoobkm": "Y! Bookmarks",
         "typepad": "TypePad",
         "wordpress": "WordPress"
      },
      _20 = {
         email: "Email",
         print: "Print",
         favorites: "Save to Favorites",
         twitter: "Tweet This",
         digg: "Digg This"
      },
      _21 = {
         services_custom: 1
      },
      _22 = {
         more: 1,
         email: 1
      },
      _23 = {
         email: 1,
         print: 1,
         more: 1,
         favorites: 1
      },
      _24 = ["username", "services_custom", "services_custom_name", "services_custom_url", "services_custom_title", "services_exclude", "services_compact", "services_expanded", "ui_click", "ui_hide_embed", "ui_delay", "ui_hover_direction", "ui_language", "ui_offset_top", "ui_offset_left", "ui_header_color", "ui_header_background", "ui_icons", "ui_cobrand", "data_use_flash", "data_use_cookies", "data_track_linkback"],
      _25 = ["url", "title", "templates", "description", "content"],
      _26 = d.getElementsByClassname || _15,
      _27 = function (_28, _29) {
         var sv = _28.services instanceof Array ? _28.services[0] : _28.services || "";
         return "http://" + _atd + "bookmark.php?v=" + _atc.ver + "&pub=" + _euc(_ate.pub()) + "&s=" + sv + (_29.url ? "&url=" + _euc(_29.url) : "") + (_29.title ? "&title=" + _euc(_29.title) : "");
      },
      _2b = function (_2c) {
         if (typeof _2c == "string") {
            var c = _2c.substr(0, 1);
            if (c == "#") {
               _2c = d.getElementById(_2c.substr(1));
            } else { if (c == ".") {
                  _2c = _26(_8, "*", _2c.substr(1));
               } else {}
            }
         } if (! (_2c instanceof Array)) {
            _2c = [_2c];
         }
         return _2c;
      },
      _2e = function (el, _30, _31, _32) {
         var rv = {};
         _31 = _31 || {};
         for (var i = 0; i < _30.length; i++) {
            if (_31[_30[i]] && !_32) {
               rv[_30[i]] = _31[_30[i]];
            } else { if (el) {
                  var p = "addthis:" + _30[i],
                  v = el.getAttribute ? el.getAttribute(p) || el[p] : el[p];
                  if (v) {
                     rv[_30[i]] = v;
                  } else { if (_31[_30[i]]) {
                        rv[_30[i]] = _31[_30[i]];
                     }
                  }
               }
            }
            if (rv[_30[i]] !== undefined && _21[_30[i]] && (typeof rv[_30[i]] == "string")) {
               eval("var e = " + rv[_30[i]]);
               rv[_30[i]] = e;
            }
         }
         return rv;
      },
      _37 = function (el, _39, _3a, _3b) {
         var rv = {
            conf: _39 || {},
            share: _3a || {}
         };
         rv.conf = _2e(el, _24, _39, _3b);
         rv.share = _2e(el, _25, _3a, _3b);
         return rv;
      },
      _3d = function (_3e, _3f, _40) {
         if (_3e) {
            _3f = _3f || {};
            _40 = _40 || {};
            var _41 = _3f.conf || _4,
            _42 = _3f.share || _5;
            var _43 = _40.onmouseover,
            _44 = _40.onmouseout,
            _45 = _40.onclick,
            _46 = _40.internal,
            ss = _40.singleservice;
            if (ss) {
               _41.product = "tbx-" + _atc.ver;
               if (_45 === u) {
                  _45 = _22[ss] ?
                  function (el, _49, _4a) {
                     var s = _d(_4a, _7);					 
                     return addthis_open(el, ss, s.url, s.title, _d(_49, _6), s);
                  } : _23[ss] ?
                  function (el, _4d, _4e) {
                     var s = _d(_4e, _7);
                     return addthis_sendto(ss, _d(_4d, _6), s);
                  } : null;
               }
            } else { if (!_40.noevents) {
                  if (!_40.nohover && (!_41 || !_41.ui_click)) {
                     if (_43 === u) {
                        _43 = function (el, _51, _52) {
                           return addthis_open(el, "", null, null, _51, _52);
                        };
                     }
                     if (_44 === u) {
                        _44 = function (el) {
                           return addthis_close();
                        };
                     }
                     if (_45 === u) {
                        _45 = function (el, _55, _56) {
                           return addthis_sendto("more", _55, _56);
                        };
                     }
                  } else { if (!_41 || !_41.ui_click) {
                        if (_45 === u) {
                           _45 = function (el, _58, _59) {
                              return addthis_open(el, "more");
                           };
                        }
                     } else { if (_45 === u) {
                           _45 = function (el, _5b, _5c) {
                              return addthis_open(el, "", null, null, _5b, _5c);
                           };
                        }
                     }
                  }
               }
            }
            _3e = _2b(_3e);
            for (var i = 0; i < _3e.length; i++) {
               var o = _3e[i],
               _5f = _37(o, _41, _42, true) || {};
               _9(_5f.conf, _4);
               _9(_5f.share, _5);
               o.conf = _5f.conf;
               o.share = _5f.share;
               if (o.conf.ui_language) {
                  _ate.lng(o.conf.ui_language);
               }
               if (_43) {
                  o.onmouseover = function () {
                     return _43(this, this.conf, this.share);
                  };
               }
               if (_44) {
                  o.onmouseout = function () {
                     return _44(this);
                  };
               }
               if (_45) {
                  o.onclick = function () {
                     return _45(this, this.conf, this.share);
                  };
               }
               if (o.tagName.toLowerCase() == "a") {
                  if (ss) {
                     o.conf.product = "tbx-" + _atc.ver;
                     if ((_ate.bro.ffx || _ate.bro.saf || _ate.bro.chr || _ate.bro.iph) && !_23[ss]) {
                        var _60 = o.share.templates && o.share.templates[ss] ? o.share.templates[ss] : "";
                        o.href = "//" + _atd + "bookmark.php?pub=" + _euc(addthis_config.username || o.conf.username || _ate.pub()) + "&v=" + _atc.ver + "&source=tbx-" + _atc.ver + "&s=" + ss + "&url=" + _euc(_5f.share.url || addthis_share.url || "") + "&title=" + _euc(_5f.share.title || addthis_share.title || "") + "&content=" + _euc(_5f.share.content || addthis_share.content || "") + (_60 ? "&template=" + _euc(_60) : "") + (o.conf.data_track_linkback ? "&sms_ss=1" : "");
                        o.target = "_blank";
                        _12.links.push(o);
                     } else { if (!_23[ss]) {
                           o.onclick = function () {
                              return addthis_sendto.call(this, ss, _d(this.conf, _6), _d(this.share, _7));
                           };
                        } else { if (ss == "email" && (o.conf.ui_use_mailto || _ate.bro.iph)) {
                              o.href = _13(o.share);
                              o.onclick = null;
                              _12.ems.push(o);
                           }
                        }
                     }
                     if (!o.title) {
                        o.title = _20[ss] ? _20[ss] : "Send to " + (_1f[ss] ? _1f[ss] : ss.substr(0, 1).toUpperCase() + ss.substr(1));
                     }
                  }
               }
               if (_46) {
                  var app = _46;
                  if (!o.hasChildNodes()) {
                     if (_46 == "img") {
                        var img = d.ce("img");
                        img.width = 125;
                        img.height = 16;
                        img.border = 0;
                        img.alt = "Share";
                        img.src = "/addthis/lg-share-en.gif";
                        app = img;
                     }
                     o.appendChild(app);
                  }
               }
            }
         }
      },
      _63 = _15(_8, "A", "addthis_button_", true),
      _64 = function (_65, _66, _67, _68) {
         for (var i = 0; i < _65.length; i++) {
            var b = _65[i];
            if (b == null) {
               continue;
            }
            if (_68 !== false || !b.ost) {
               var _66 = _66 || _4;
               _67 = _67 || _5;
               attr = _37(b, _66, _67, true),
               hc = 0,
               a = "at300";
               c = b.className || "",
               s = c.match(/addthis_button_(\w+)(?:\s|$)/),
               opts = u,
               sv = s && s.length ? s[1] : 0;
               if (sv) {
                  if (!b.childNodes.length) {
                     var sp = d.ce("span");
                     b.appendChild(sp);
                     sp.className = a + "bs at15t_" + sv;
                  } else { if (b.childNodes.length == 1) {
                        var cn = b.childNodes[0];
                        if (cn.nodeType == 3) {
                           var sp = d.ce("span"),
                           tv = cn.nodeValue;
                           b.insertBefore(sp, cn);
                           sp.className = a + "bs at15t_" + sv;
                        }
                     } else {
                        hc = 1;
                     }
                  }
                  if (sv === "compact") {
                     if (!hc && c.indexOf(a) == -1) {
                        b.className += " " + a + "m";
                     }
                  } else { if (sv === "expanded") {
                        if (!hc && c.indexOf(a) == -1) {
                           b.className += " " + a + "m";
                        }
                        opts = {
                           nohover: true
                        };
                     } else { if (!hc && c.indexOf(a) == -1) {
                           b.className += " " + a + "b";
                        }
                        opts = {
                           singleservice: sv
                        };
                     }
                  }
                  _3d([b], attr, opts);
                  b.ost = 1;
               }
            }
         }
      };
      _12.update = function (_6e, _6f, _70) {
         if (_6e == "share") {
            if (!window.addthis_share) {
               window.addthis_share = {};
            }
            window.addthis_share[_6f] = _70;
            _7[_6f] = _70;
            for (var i in _12.links) {
               var o = _12.links[i],
               rx = new RegExp("&" + _6f + "=(.*)&"),
               ns = "&" + _6f + "=" + _euc(_70) + "&";
               o.href = o.href.replace(rx, ns);
               if (o.href.indexOf(_6f) == -1) {
                  o.href += ns;
               }
            }
            for (var i in _12.ems) {
               var o = _12.ems[i];
               o.href = _13(addthis_share);
            }
         } else { if (_6e == "config") {
               if (!window.addthis_config) {
                  window.addthis_config = {};
               }
               window.addthis_config[_6f] = _70;
               _6[_6f] = _70;
            }
         }
      };
      _12.button = function (_75, _76, _77) {
         _3d(_75, {
            conf: _76,
            share: _77
         },
         {
            internal: "img"
         });
      };
      _12.toolbox = function (_78, _79, _7a) {
         var _7b = _2b(_78);
         for (var i = 0; i < _7b.length; i++) {
            var tb = _7b[i],
            _7e = _37(tb, _79, _7a),
            sp = d.ce("div"),
            c = tb.getElementsByTagName("a");
            if (c) {
               _64(c, _7e.conf, _7e.share);
            }
            tb.appendChild(sp);
            sp.className = "atclear";
         }
      };
      _12.ready = function () {
         if (this.ost) {
            return;
         }
         this.ost = 1;
         var a = ".addthis_";
         _12.toolbox(a + "toolbox");
         _12.button(a + "button");
         _64(_63, null, null, false);
         for (var i = 0; i < this.plo.length; i++) {
            _12[this.plo[i].call].apply(this, this.plo[i].args);
         }
      };
      window.addthis = _12;
      window.addthis.ready();
   }
}));