/* (c) 2008, 2009 Add This, LLC */
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: 0.2,
        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: /safari/.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 = function(o, fn, acc, cxt) {
          if (!o) {
              return acc;
          }
          if (o instanceof Array) {
              for (var i = 0, len = o.length, v = o[0]; i < len; v = o[++i]) {
                  acc = fn.call(cxt || o, acc, v, i, o);
              }
          } else {
              for (var _1f in o) {
                  acc = fn.call(cxt || o, acc, o[_1f], _1f, o);
              }
          }
          return acc;
      },
      _20 = Array.prototype.slice,
      _21 = function(a) {
          return _20.apply(a, _20.call(arguments, 1));
      },
      _23 = function(s) {
          return s.replace(/(^\s+|\s+$)/g, "");
      },
      _25 = function(o, del) {
          return _17(o, function(acc, v, k) {
              k = _23(k);
              if (k) {
                  acc.push(_euc(k) + "=" + _euc(_23(v)));
              }
              return acc;
          },
      []).join(del || "&");
      },
      _2b = function(q, del) {
          return _17((q || "").split(del || "&"), function(acc, _2f) {
              var kv = _2f.split("="),
          k = _23(_duc(kv[0])),
          v = _23(_duc(kv.slice(1).join("=")));
              if (k) {
                  acc[k] = v;
              }
              return acc;
          },
      {});
      },
      _33 = {
          vst: [],
          rev: "$Rev: 69945 $",
          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: "//bin.clearspring.com/at/v/1/button1.6.swf",
          evu: "//e1.clearspring.com/at/",
          spt: "static/r07/widget08.png",
          ifpp: null,
          com: function(m) {
              if (window.parent && window.postMessage) {
                  window.parent.postMessage(m, "*");
              } else {
                  _33.ifm(m);
              }
          },
          ifwn: function() {
              var a = _33;
              try {
                  a.rec(a.sifr.contentWindow.name);
              } catch (e) { }
          },
          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 = _33,
          m = window.location.hash,
          p = 0;
              if (m && m.indexOf("#at") > -1) {
                  m = m.substr(3).split(";");
                  for (var k in m) {
                      var v = m[k].length > 3 ? m[k].substr(0, 3) : null;
                      switch (v) {
                          case "ssh":
                              p = 1;
                              a.ssh(m[k].substr(4));
                              break;
                          case "uid":
                              p = 1;
                              a.asetup(m[k].substr(4));
                              break;
                      }
                  }
                  if (p) {
                      if (!a.hash.length || a.hash == "") {
                          a.hash = "#";
                      }
                      window.location.hash = a.hash;
                  }
              }
              if (a.gssh && a.guid) {
                  clearInterval(a.ifpp);
              }
          },
          pmh: function(e) {
              if (e.origin.slice(-12) == ".addthis.com") {
                  _33.rec(e.data);
              }
          },
          rec: function(s) {
              if (!s) {
                  return;
              }
              var _3f = _2b(s),
          a = _33,
          i = a.sifr;
              if (_3f.ssh) {
                  a.ssh(_3f.ssh);
              }
              if (_3f.uid) {
                  a.asetup(_3f.uid);
              }
              if (i && i.parentNode) {
                  i.parentNode.removeChild(i);
                  a.sifr = null;
              }
          },
          ssh: function(ssh) {
              _33.gssh = 1;
              window.addthis_ssh = _duc(ssh);
          },
          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);
          },
          ibt: function() {
              if (_33.bti) {
                  return _33.bti;
              }
              var _46 = (window.addthis_product || "men").substr(0, 3),
          _47 = _46 == "bkm" || _46 == "fct" || _46 == "fxe";
              if (_47) {
                  _33.bti = _47;
              }
              return _47;
          },
          off: function() {
              return Math.floor((new Date().getTime() - _33.sttm) / 100).toString(16);
          },
          ran: function() {
              return Math.floor(Math.random() * 4294967295).toString(36);
          },
          srd: function() {
              if (_33.dr) {
                  return "&pre=" + _euc(_33.dr);
              } else {
                  return "";
              }
          },
          cst: function(c) {
              return "CXNID=2000001.521545608054043907" + (c || 2) + "NXC";
          },
          imgz: [],
          hrr: function(_49) {
              if (_49 && _49.urls && _49.urls instanceof Array) {
                  for (var i = 0; i < _49.urls.length; i++) {
                      var img = new Image();
                      _33.imgz.push(img);
                      img.src = _49.urls[i];
                  }
              }
          },
          img: function(i, c) {
              if (!window.at_sub && !_atc.xtr) {
                  var a = _33,
            dr = a.dr,
            rev = ((a.rev || "").split(" "));
                  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) : "") + (rev.length > 1 ? "&rev=" + rev[1] : "");
              }
          },
          cuid: function() {
              return (_33.sttm & _33.max).toString(16) + (Math.floor(Math.random() * _33.max)).toString(16);
          },
          ssid: function() {
              if (_33.sid === 0) {
                  _33.sid = _33.cuid();
              }
              return _33.sid;
          },
          sev: function(id, _53) {
              _33.pix = "sev-" + (typeof (id) !== "number" ? _euc(id) : id);
              _33.svt.push(id + ";" + _33.off());
              if (_53 === 1) {
                  _33.xmi(true);
              } else {
                  _33.sxm(true);
              }
          },
          cev: function(k, v) {
              _33.pix = "cev-" + _euc(k);
              _33.cvt.push(_euc(k) + "=" + _euc(v) + ";" + _33.off());
              _33.sxm(true);
          },
          sxm: function(b) {
              if (_33.tmo !== null) {
                  clearTimeout(_33.tmo);
              }
              if (b) {
                  _33.tmo = _33.sto("_ate.xmi(false)", _33.wait);
              }
          },
          sto: function(c, t) {
              return setTimeout(c, t);
          },
          sta: function() {
              var a = _33;
              return "AT-" + (a.pub() ? a.pub() : "unknown") + "/-/" + a.ab + "/" + a.ssid() + "/" + (a.seq++) + (a.uid !== null ? "/" + a.uid : "");
          },
          xred: function() {
              var w = window,
          a = _33,
          hp = 0,
          dr = d.referer || d.referrer || "",
          du = dl ? dl.href : null,
        fnd = 0;
              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);
                  }
              }
          },
          xld: function() {
              var a = _33;
              if (!a.xld_p) {
                  a.xld_p = 1;
                  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);
                      }
                  }
                  a.xred();
                  a.img(_atc.ver + "lo", "2");
              }
          },
          xmi: function(_64) {
              var a = _33,
          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=" + _33.sta() + "&se=" + a.svt.join(",") + "&ce=" + a.cvt.join(",") + (_atc.xck ? "&xck=1" : ""),
            url = a.evu + urp;
                  a.cvt = [];
                  a.svt = [];
                  if (_64) {
                      var d = document,
              i = d.ce("iframe");
                      i.id = "_atf";
                      i.src = url;
                      _33.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 = 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) {
              _33.plo.push(x);
          },
          lng: function(al) {
              var d = document;
              if (al && (al.toLowerCase()).indexOf("en") !== 0 && !_33.pll) {
                  _33.pll = _33.ajs("static/r07/lang01.js");
              }
          },
          ajs: function(_70) {
              var o = d.ce("script");
              o.src = _atr + _70;
              d.gn("head")[0].appendChild(o);
              return o;
          },
          jlo: function() {
              try {
                  var d = document,
            al = (window.addthis_language || addthis_config.ui_language || (_33.bro.msi ? navigator.userLanguage : navigator.language));
                  _33.lng(al);
                  if (!_33.pld) {
                      var img = new Image();
                      _33.imgz.push(img);
                      img.src = _atr + _33.spt;
                      img = new Image();
                      _33.imgz.push(img);
                      img.src = _atr + "static/r05/feed00.gif";
                      _33.pld = _33.ajs("static/r07/menu36.js");
                  }
              } 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 = _33,
            msi = a.bro.msi,
            hp = 0,
            dr = d.referer || d.referrer || "",
            du = dl ? dl.href : null,
          dh = dl.hostname,
          si = du ? du.indexOf("sms_ss") : -1,
          f = ((arg === 1 || w.addthis_load_flash) && !_atc.abf),
          al = ((w.addthis_language || (w.addthis_config ? w.addthis_config.ui_language : null) || (_33.bro.msi ? navigator.userLanguage : navigator.language)).split("-"))[0],
          lks = d.gn("link"),
          ifr = d.ce("iframe"),
          _84 = _atr + "static/r07/sh07.html",
          _85 = "//" + dh + "/favicon.ico",
          _86 = "_ate.ifwn()",
          ifr;
                  if (!w.postMessage) {
                      var _87 = d.gn("img");
                      for (var i = 0; i < _87.length; i++) {
                          if (_87[i].src.indexOf(dh) > -1) {
                              _85 = _87[i].src;
                              break;
                          }
                      }
                  }
                  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 || "");
                  _33.gov();
                  a.dr = dr;
                  a.ab = (!al || al == "en") && (a.bro.ffx || a.bro.msi) && !a.ibt() ? "ps-" + (window.addthis_ab !== undefined ? addthis_ab : (a.tamp > 0 ? Math.min(4, Math.floor(Math.random() * 4 + 1)) : 0)) : "~";
                  var _8a = (a.swf && !_atc.xfl && !(a.loc()) && !_atc.abf && (f || a.uid === null || (a.uid !== "anonymous" && a.oot && ((new Date()).getTime() - a.oot > 60480000))));
                  _84 += "#swfp=" + (_8a && msi ? 1 : 0);
                  if (!msi && _8a) {
                      var _8b = function(o, n, v) {
                          var c = d.ce("param");
                          c.name = n;
                          c.value = v;
                          o.appendChild(c);
                      },
              div = d.ce("div"),
              o = d.ce("object");
                      o.id = "atff";
                      o.data = a.swf;
                      o.width = o.height = "1px";
                      o.quality = "high";
                      o.type = "application/x-shockwave-flash";
                      _8b(o, "wmode", "transparent");
                      _8b(o, "allowScriptAccess", "always");
                      div.appendChild(o);
                      d.body.insertBefore(div, d.body.firstChild);
                  }
                  if (dl.href.indexOf(_atr) == -1) {
                      ifr.id = "_atssh";
                      a.opp(ifr.style);
                      ifr.width = ifr.height = 1;
                      ifr.frameborder = ifr.style.border = 0;
                      ifr.style.top = ifr.style.left = 0;
                      if (w.postMessage) {
                          ifr.src = _84;
                          if (msi) {
                              w.attachEvent("onmessage", a.pmh);
                          } else {
                              w.addEventListener("message", a.pmh, false);
                          }
                          ifr = d.body.appendChild(ifr);
                      } else {
                          if (!_atc.xic) {
                              if (a.bro.saf || a.bro.ffx) {
                                  if (a.hash.indexOf("#atuid") == 0 || a.hash.indexOf("#atssh") == 0) {
                                      w.location.hash = a.hash = "#";
                                  }
                                  if (a.ifpp) {
                                      clearInterval(a.ifpp);
                                  }
                                  a.ifpp = setInterval(function() {
                                      _33.ifp();
                                  },
                  50);
                                  ifr = d.body.appendChild(ifr);
                                  ifr.src = _84 + "&wpl=" + _euc(dl.href);
                              }
                          }
                      }
                      a.sifr = ifr;
                  }
                  if (!f) {
                      if (_8a) {
                          a.uoo();
                          if (a.bro.ie6 || a.bro.ie7) {
                              a.sto("if (_ate.xld) _ate.xld()", 5000);
                          } else {
                              a.sto("_ate.xld()", 5000);
                          }
                      } else {
                          a.guid = 1;
                          a.xld();
                      }
                      if (si > -1 && du.indexOf(_atd + "book") == -1) {
                          var sm = du.substr(si);
                          sm = sm.split("&").shift().split("#").shift().split("=").pop();
                          if (a.vamp >= 0 && !a.sub && sm.length) {
                              a.cev("plv", Math.round(1 / _atc.vamp));
                              a.cev("rsc", sm);
                          }
                      }
                  }
                  if (a.plo.length > 0) {
                      a.jlo();
                  }
              } catch (e) { }
          },
          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() {
              _33.sck("_csoot", (new Date().getTime()));
          },
          coo: function(f) {
              if (_33.uid == "anonymous" && !_33.oot) {
                  _33.xck = 1;
                  _33.uoo();
              }
          },
          dck: function(c) {
              _33.uid = c;
              _33.sck("_csuid", c);
              _33.coo();
          },
          gov: function() {
              var h = _33.dl ? _33.dl.hostname : "";
              if (h.indexOf(".gov") > -1 || h.indexOf(".mil") > -1) {
                  _atc.xck = 1;
                  _atc.xfl = 1;
              }
              var p = _33.pub(),
          x = ["usarmymedia", "govdelivery"];
              for (i in x) {
                  if (p == x[i]) {
                      _atc.xck = 1;
                      _atc.xfl = 1;
                      break;
                  }
              }
          },
          sck: function(u, v, s) {
              _33.gov();
              if (!_atc.xck) {
                  d.cookie = u + "=" + v + (!s ? "; expires=Wed, 04 Oct 2028 03:19:53 GMT" : "") + "; path=/";
              }
          },
          asetup: function(x) {
              var a = _33;
              try {
                  if (!a.guid) {
                      a.guid = 1;
                      if (x !== null && x !== _atu) {
                          a.dck(x);
                      }
                      a.xld();
                  }
              } catch (e) { }
              return x;
          },
          ao: function(elt, _a7, _a8, _a9, _aa, _ab) {
              _33.lad(["open", elt, _a7, _a8, _a9, _aa, _ab]);
              _33.jlo();
              return false;
          },
          ac: function() { },
          as: function(s, cf, sh) {
              _33.lad(["send", s, cf, sh]);
              _33.jlo();
          }
      },
      a = _33;
        w._ate = a;
        w._adr = r;
        d.ce = d.createElement;
        d.gn = d.getElementsByTagName;
        r.bindReady();
        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) {
                    _33.uid = c.substring(x + 7);
                } else {
                    if (y >= 0) {
                        _33.oot = c.substring(y + 7);
                    }
                }
            }
        }
        try {
            var l = d.ce("link");
            l.rel = "stylesheet";
            l.type = "text/css";
            l.href = _atr + "static/r07/widget20.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.indexOf("#") > -1 ? s.src.replace(/^[^\#]+\#?/, "") : s.src.replace(/^[^\?]+\??/, ""),
    p = _2b(q);
        if (p.pub) {
            w.addthis_pub = _duc(p.pub);
        } else {
            if (p.username) {
                w.addthis_pub = _duc(p.username);
            }
        }
        if (w.addthis_pub && 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) {
                _33.lad(["cout"]);
            }
        } catch (e) { }
    })();

    function addthis_open(elt, _ba, _bb, _bc, _bd, _be) {
        if (typeof _bd == "string") {
            _bd = null;
        }
        return _ate.ao(elt, _ba, _bb, _bc, _bd, _be);
    }

    function addthis_close() {
        _ate.ac();
    }

    function addthis_sendto(s, cf, sh) {
        Conversion_Share();
        _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, _1a) {
          tag = tag.toUpperCase();
          var els = (_16 == _8 && _12.cache[tag] ? _12.cache[tag] : (_16 || _8).getElementsByTagName(tag)),
        rv = [],
        i, o;
          if (_16 == _8) {
              _12.cache[tag] = els;
          }
          if (_1a) {
              for (i = 0; i < els.length; i++) {
                  o = els[i];
                  if (o.className.indexOf(_18) > -1) {
                      rv.push(o);
                  }
              }
          } else {
              _18 = _18.replace(/\-/g, "\\-");
              var rx = new RegExp("(^|\\s)" + _18 + (_19 ? "\\w*" : "") + "(\\s|$)");
              for (i = 0; i < els.length; i++) {
                  o = els[i];
                  if (rx.test(o.className)) {
                      rv.push(o);
                  }
              }
          }
          return (rv);
      },
      _20 = {
          "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"
      },
      _21 = {
          email: "Email",
          print: "Print",
          favorites: "Save to Favorites",
          twitter: "Tweet This",
          digg: "Digg This"
      },
      _22 = {
          services_custom: 1
      },
      _23 = {
          more: 1,
          email: 1
      },
      _24 = {
          email: 1,
          print: 1,
          more: 1,
          favorites: 1
      },
      _25 = ["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"],
      _26 = ["url", "title", "templates", "email_template", "email_vars", "description", "content"],
      _27 = d.getElementsByClassname || _15,
      _28 = function(_29, _2a) {
          var sv = _29.services instanceof Array ? _29.services[0] : _29.services || "";
          return "http://" + _atd + "bookmark.php?v=" + _atc.ver + "&pub=" + _euc(_ate.pub()) + "&s=" + sv + (_2a.url ? "&url=" + _euc(_2a.url) : "") + (_2a.title ? "&title=" + _euc(_2a.title) : "");
      },
      _2c = function(_2d) {
          if (typeof _2d == "string") {
              var c = _2d.substr(0, 1);
              if (c == "#") {
                  _2d = d.getElementById(_2d.substr(1));
              } else {
                  if (c == ".") {
                      _2d = _27(_8, "*", _2d.substr(1));
                  } else { }
              }
          } if (!(_2d instanceof Array)) {
              _2d = [_2d];
          }
          return _2d;
      },
      _2f = function(el, _31, _32, _33) {
          var rv = {};
          _32 = _32 || {};
          for (var i = 0; i < _31.length; i++) {
              if (_32[_31[i]] && !_33) {
                  rv[_31[i]] = _32[_31[i]];
              } else {
                  if (el) {
                      var p = "addthis:" + _31[i],
              v = el.getAttribute ? el.getAttribute(p) || el[p] : el[p];
                      if (v) {
                          rv[_31[i]] = v;
                      } else {
                          if (_32[_31[i]]) {
                              rv[_31[i]] = _32[_31[i]];
                          }
                      }
                  }
              }
              if (rv[_31[i]] !== undefined && _22[_31[i]] && (typeof rv[_31[i]] == "string")) {
                  eval("var e = " + rv[_31[i]]);
                  rv[_31[i]] = e;
              }
          }
          return rv;
      },
      _38 = function(el, _3a, _3b, _3c) {
          var rv = {
              conf: _3a || {},
              share: _3b || {}
          };
          rv.conf = _2f(el, _25, _3a, _3c);
          rv.share = _2f(el, _26, _3b, _3c);
          return rv;
      },
      _3e = function(_3f, _40, _41) {
          if (_3f) {
              _40 = _40 || {};
              _41 = _41 || {};
              var _42 = _40.conf || _4,
          _43 = _40.share || _5;
              var _44 = _41.onmouseover,
          _45 = _41.onmouseout,
          _46 = _41.onclick,
          _47 = _41.internal,
          ss = _41.singleservice;
              if (ss) {
                  _42.product = "tbx-" + _atc.ver;
                  if (_46 === u) {
                      _46 = _23[ss] ?
            function(el, _4a, _4b) {
                var s = _d(_4b, _7);
                return addthis_open(el, ss, s.url, s.title, _d(_4a, _6), s);
            } : _24[ss] ?
            function(el, _4e, _4f) {
                var s = _d(_4f, _7);

                function() {
                    Conversion_Share();
                    return addthis_sendto(ss, _d(_4e, _6), s);
                }
            } : null;
                  }
              } else {
                  if (!_41.noevents) {
                      if (!_41.nohover && (!_42 || !_42.ui_click)) {
                          if (_44 === u) {
                              _44 = function(el, _52, _53) {
                                  return addthis_open(el, "", null, null, _52, _53);
                              };
                          }
                          if (_45 === u) {
                              _45 = function(el) {
                                  return addthis_close();
                              };
                          }
                          if (_46 === u) {
                              _46 = function(el, _56, _57) {
                                  return addthis_sendto("more", _56, _57);
                              };
                          }
                      } else {
                          if (!_42 || !_42.ui_click) {
                              if (_46 === u) {
                                  _46 = function(el, _59, _5a) {
                                      return addthis_open(el, "more");
                                  };
                              }
                          } else {
                              if (_46 === u) {
                                  _46 = function(el, _5c, _5d) {
                                      return addthis_open(el, "", null, null, _5c, _5d);
                                  };
                              }
                          }
                      }
                  }
              }
              _3f = _2c(_3f);
              for (var i = 0; i < _3f.length; i++) {
                  var o = _3f[i],
            _60 = _38(o, _42, _43, true) || {};
                  _9(_60.conf, _4);
                  _9(_60.share, _5);
                  o.conf = _60.conf;
                  o.share = _60.share;
                  if (o.conf.ui_language) {
                      _ate.lng(o.conf.ui_language);
                  }
                  if (_44) {
                      o.onmouseover = function() {
                          return _44(this, this.conf, this.share);
                      };
                  }
                  if (_45) {
                      o.onmouseout = function() {
                          return _45(this);
                      };
                  }
                  if (_46) {
                      o.onclick = function() {
                          return _46(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) && !_24[ss]) {
                              var _61 = 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(_60.share.url || addthis_share.url || "") + "&title=" + _euc(_60.share.title || addthis_share.title || "") + "&content=" + _euc(_60.share.content || addthis_share.content || "") + (_61 ? "&template=" + _euc(_61) : "") + (o.conf.data_track_linkback ? "&sms_ss=1" : "");
                              o.target = "_blank";
                              _12.links.push(o);
                          } else {
                              if (!_24[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 = _21[ss] ? _21[ss] : "Send to " + (_20[ss] ? _20[ss] : ss.substr(0, 1).toUpperCase() + ss.substr(1));
                          }
                      }
                  }
                  if (_47) {
                      var app = _47;
                      if (!o.hasChildNodes()) {
                          if (_47 == "img") {
                              var img = d.ce("img");
                              img.width = 125;
                              img.height = 16;
                              img.border = 0;
                              img.alt = "Share";
                              img.src = "//s7.addthis.com/static/btn/v2/lg-share-en.gif";
                              app = img;
                          }
                          o.appendChild(app);
                      }
                  }
              }
          }
      },
      _64 = _15(_8, "A", "addthis_button_", true, true),
      _65 = function(_66, _67, _68, _69) {
          for (var i = 0; i < _66.length; i++) {
              var b = _66[i];
              if (b == null) {
                  continue;
              }
              if (_69 !== false || !b.ost) {
                  var _67 = _67 || _4,
            _68 = _68 || _5,
            _6c = _38(b, _67, _68, true),
            hc = 0,
            a = "at300",
            c = b.className || "",
            s = c.match(/addthis_button_([\w\.]+)(?:\s|$)/),
            _71 = 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";
                              }
                              _71 = {
                                  nohover: true
                              };
                          } else {
                              if (!hc && c.indexOf(a) == -1) {
                                  b.className += " " + a + "b";
                              }
                              _71 = {
                                  singleservice: sv
                              };
                          }
                      }
                      _3e([b], _6c, _71);
                      b.ost = 1;
                  }
              }
          }
      };
        _12.update = function(_76, _77, _78) {
            if (_76 == "share") {
                if (!window.addthis_share) {
                    window.addthis_share = {};
                }
                window.addthis_share[_77] = _78;
                _7[_77] = _78;
                for (var i in _12.links) {
                    var o = _12.links[i],
            rx = new RegExp("&" + _77 + "=(.*)&"),
            ns = "&" + _77 + "=" + _euc(_78) + "&";
                    o.href = o.href.replace(rx, ns);
                    if (o.href.indexOf(_77) == -1) {
                        o.href += ns;
                    }
                }
                for (var i in _12.ems) {
                    var o = _12.ems[i];
                    o.href = _13(addthis_share);
                }
            } else {
                if (_76 == "config") {
                    if (!window.addthis_config) {
                        window.addthis_config = {};
                    }
                    window.addthis_config[_77] = _78;
                    _6[_77] = _78;
                }
            }
        };
        _12.button = function(_7d, _7e, _7f) {
            _3e(_7d, {
                conf: _7e,
                share: _7f
            },
      {
          internal: "img"
      });
        };
        _12.toolbox = function(_80, _81, _82) {
            var _83 = _2c(_80);
            for (var i = 0; i < _83.length; i++) {
                var tb = _83[i],
          _86 = _38(tb, _81, _82),
          sp = d.ce("div"),
          c = tb.getElementsByTagName("a");
                if (c) {
                    _65(c, _86.conf, _86.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");
            _65(_64, 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();
    }
}));