﻿/* (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: -1, samp: 0.01, camp: 1, vamp: 1, pamp: 0.4, addr: -1, addt: 1, xfl: !!window.addthis_disable_flash, abf: !!window.addthis_do_ab }; (function() { try { var I = window.location; if (I.protocol.indexOf("file") === 0) { _atr = "http:" + _atr } if (I.hostname.indexOf("localhost") != -1) { _atc.loc = 1 } } catch (N) { } var L = navigator.userAgent.toLowerCase(), O = document, u = window, t = u.addEventListener, h = u.attachEvent, J = O.location, Q = { win: /windows/.test(L), xp: /windows nt 5.1/.test(L) || /windows nt 5.2/.test(L), chr: /chrome/.test(L), iph: /iphone/.test(L), saf: /safari/.test(L), web: /webkit/.test(L), opr: /opera/.test(L), msi: (/msie/.test(L)) && !(/opera/.test(L)), ffx: /firefox/.test(L), ff2: /firefox\/2/.test(L), ie6: /msie 6.0/.test(L), ie7: /msie 7.0/.test(L), mod: -1 }, n = { isBound: false, isReady: false, readyList: window.addthis_onload || [], onReady: function() { if (!n.isReady) { n.isReady = true; var a = n.readyList; for (var b = 0; b < a.length; b++) { a[b].call(window) } n.readyList = [] } }, addLoad: function(a) { var b = u.onload; if (typeof u.onload != "function") { u.onload = a } else { u.onload = function() { if (b) { b() } a() } } }, bindReady: function() { if (A.isBound) { return } A.isBound = true; if (O.addEventListener && !Q.opr) { O.addEventListener("DOMContentLoaded", A.onReady, false) } var a = window.addthis_product; if (a && a.indexOf("f") > -1) { A.onReady(); return } if (Q.msi && window == top) { (function() { if (A.isReady) { return } try { O.documentElement.doScroll("left") } catch (c) { setTimeout(arguments.callee, 0); return } A.onReady() })() } if (Q.opr) { O.addEventListener("DOMContentLoaded", function() { if (A.isReady) { return } for (var c = 0; c < O.styleSheets.length; c++) { if (O.styleSheets[c].disabled) { setTimeout(arguments.callee, 0); return } } A.onReady() }, false) } if (Q.saf) { var b; (function() { if (A.isReady) { return } if (O.readyState != "loaded" && O.readyState != "complete") { setTimeout(arguments.callee, 0); return } if (b === undefined) { var c = O.gn("link"); for (var d = 0; d < c.length; d++) { if (c[d].getAttribute("rel") == "stylesheet") { b++ } } var e = O.gn("style"); b += e.length } if (O.styleSheets.length != b) { setTimeout(arguments.callee, 0); return } A.onReady() })() } A.addLoad(A.onReady) }, append: function(b, a) { A.bindReady(); if (A.isReady) { b.call(window, []) } else { A.readyList.push(function() { return b.call(window, []) }) } } }, A = n, v = function(q, l, p, c) { if (!q) { return p } if (q instanceof Array) { for (var e = 0, a = q.length, b = q[0]; e < a; b = q[++e]) { p = l.call(c || q, p, b, e, q) } } else { for (var d in q) { p = l.call(c || q, p, q[d], d, q) } } return p }, D = Array.prototype.slice, F = function(b) { return D.apply(b, D.call(arguments, 1)) }, E = function(a) { return a.replace(/(^\s+|\s+$)/g, "") }, M = function(a, b) { return v(F(arguments, 1), function(d, c) { return v(c, function(l, i, e) { l[e] = i; return l }, d) }, a) }, j = function(b, a) { return v(b, function(e, d, c) { c = E(c); if (c) { e.push(_euc(c) + "=" + _euc(E(d))) } return e }, []).join(a || "&") }, g = function(b, a) { return v((b || "").split(a || "&"), function(i, l) { var e = l.split("="), d = E(_duc(e[0])), c = E(_duc(e.slice(1).join("="))); if (d) { i[d] = c } return i }, {}) }, f = { vst: [], rev: "$Rev: 73382 $", _euc: _euc, _duc: _duc, reduce: v, slice: F, strip: E, extend: M, toKV: j, fromKV: g, bro: Q, clck: 1, show: 1, dl: J, camp: _atc.camp - Math.random(), samp: _atc.samp - Math.random(), vamp: _atc.vamp - Math.random(), tamp: _atc.tamp - Math.random(), pamp: _atc.pamp - Math.random(), ab: "-", scnt: 1, seq: 1, dcp: 0, inst: 1, wait: 500, tmo: null, cvt: [], svt: [], sttm: new Date().getTime(), max: 4294967295, pix: "tev", sid: 0, sub: !!window.at_sub, dbm: 0, uid: null, oot: null, swf: "//bin.clearspring.com/at/v/1/button1.6.swf", evu: "//o.addthis.com/at/", spt: "static/r07/widget13.png", ifpp: null, trim: function(a, b) { try { a = a.replace(/^[\s\u3000]+|[\s\u3000]+$/g, ""); if (b) { a = _euc(a) } } catch (b) { } return a }, gat: function() { }, com: function(a) { if (window.parent && window.postMessage) { window.parent.postMessage(a, "*") } else { f.ifm(a) } }, ifwn: function() { var b = f; try { b.rec(b.sifr.contentWindow.name) } catch (c) { } }, ifm: function(b) { if (addthis_wpl) { var c = (addthis_wpl.split("#"))[0]; window.parent.location.href = c + "#at" + b } return false }, hash: window.location.hash, ifp: function() { var c = f, b = window.location.hash, i = 0; if (b && b.indexOf("#at") > -1) { b = b.substr(3).split(";"); for (var e in b) { var d = b[e].length > 3 ? b[e].substr(0, 3) : null; switch (d) { case "ssh": i = 1; c.ssh(b[e].substr(4)); break; case "uid": i = 1; c.asetup(b[e].substr(4)); break } } if (i) { if (!c.hash.length || c.hash == "") { c.hash = "#" } window.location.hash = c.hash } } if (c.gssh && c.guid) { clearInterval(c.ifpp) } }, pmh: function(a) { if (a.origin.slice(-12) == ".addthis.com") { f.rec(a.data) } }, _rec: [], rec: function(d) { if (!d) { return } var l = g(d), b = f, c = b.sifr, e = b._rec; if (l.ssh) { b.ssh(l.ssh) } if (l.uid) { b.asetup(l.uid) } if (l.dbm) { b.dbm = l.dbm } if (c && c.parentNode) { c.parentNode.removeChild(c); b.sifr = null } for (var p = 0; p < e.length; p++) { e[p](l) } }, ssh: function(b) { f.gssh = 1; var a = window.addthis_ssh = _duc(b); f._ssh = a.split(",") }, mun: function(c) { var a = 291; if (c) { for (var b = 0; b < c.length; b++) { a = (a * (c.charCodeAt(b) + b) + 3) & 1048575 } } return (a & 16777215).toString(32) }, jsl: function() { return ((((u.jQuery || {}).fn || {}).jquery && 1) | ((u.Prototype || {}).Version && 2) | ((u.YUI || {}).version || (u.YAHOO || {}).VERSION && 4) | ((u.Ext || {}).version && 8) | ((u.dojo || {}).version && 16)) }, ibt: function() { if (f.bti) { return f.bti } var a = (window.addthis_product || "men").substr(0, 3), b = a == "bkm" || a == "fct" || a == "fxe"; if (b) { f.bti = b } return b }, off: function() { return Math.floor((new Date().getTime() - f.sttm) / 100).toString(16) }, ran: function() { return Math.floor(Math.random() * 4294967295).toString(36) }, srd: function() { if (f.dr) { return "&pre=" + _euc(f.dr) } else { return "" } }, cst: function(a) { return "CXNID=2000001.521545608054043907" + (a || 2) + "NXC" }, imgz: [], hrr: function(c) { if (c && c.urls && c.urls instanceof Array) { for (var b = 0; b < c.urls.length; b++) { var a = new Image(); f.imgz.push(a); a.src = c.urls[b] } } }, omp: function() { f.img(_atc.ver + "sh", "3"); if (f.lng().indexOf("en") == 0) { if (f.pamp >= 0) { f.xred(200) } } }, img: function(p, r, b) { if (!window.at_sub && !_atc.xtr) { var e = f, q = e.dr, d = ((e.rev || "").split(" ")); if (q) { q = q.split("?").shift().split("http://").pop().split("https://").pop(); if (q.length > 25) { q = q.substr(0, 25) } } var l = new Image(); e.imgz.push(l); l.src = _atr + "live/t00/" + p + ".gif?" + (e.uid !== null ? "uid=" + e.uid + "&" : "") + e.ran() + "&" + e.cst(r) + (e.pub() ? "&pub=" + e.pub() : "") + (q ? "&dr=" + _euc(q) : "") + (d.length > 1 ? "&rev=" + d[1] : "") + (b ? "&" + b : "") } }, cuid: function() { return ((f.sttm / 1000) & f.max).toString(16) + ("00000000" + (Math.floor(Math.random() * (f.max + 1))).toString(16)).slice(-8) }, ssid: function() { if (f.sid === 0) { f.sid = f.cuid() } return f.sid }, sev: function(b, a) { f.pix = "sev-" + (typeof (b) !== "number" ? _euc(b) : b); f.svt.push(b + ";" + f.off()); if (a === 1) { f.xmi(true) } else { f.sxm(true) } }, cev: function(b, a) { f.pix = "cev-" + _euc(b); f.cvt.push(_euc(b) + "=" + _euc(a) + ";" + f.off()); f.sxm(true) }, sxm: function(a) { if (f.tmo !== null) { clearTimeout(f.tmo) } if (a) { f.tmo = f.sto("_ate.xmi(false)", f.wait) } }, sto: function(b, a) { return setTimeout(b, a) }, sta: function() { var b = f; return "AT-" + (b.pub() ? b.pub() : "unknown") + "/-/" + b.ab + "/" + b.ssid() + "/" + (b.seq++) + (b.uid !== null ? "/" + b.uid : "") }, xred: function(d) { try { var s = window, ae = f, b = 0, W = O.referer || O.referrer || "", T = J ? J.href : null, aa = J ? J.hostname.split(".").slice(-2).join(".") : null, y = 100, q = 300, ac = 0, p = 1, l = 2, x = 4, V = ac, ad = ".com/", Y = 0; if (W) { var U = W.split("//").pop().split("/").shift().split("?").shift().split(".").slice(-2).join("."); if (U == aa) { V |= l } else { V |= x } } if (((ae.camp >= 0 && (W.indexOf(ad) > -1)) || d) && (T && J && J.protocol && (J.protocol.indexOf("https") == -1))) { if (W && W.match(/ws\/results\/(Web|Images|Video|News)/)) { Y = 1; V |= p } else { if (W.indexOf(ad + "search") > -1 || W.indexOf(ad + "url") > -1) { var S = W.split("?").pop().split("&"); for (var Z = 0; Z < S.length; Z++) { if (S[Z].indexOf("q=") === 0 || S[Z].indexOf("p=") === 0 || S[Z].indexOf("query") === 0 || S[Z].indexOf("qry") === 0 || S[Z].indexOf("text") === 0) { Y = 1; break } } V |= p } } if (!ae.dcp && !_atc.xtr && !_atc.xck && (Y || d) && ae.mun(ae.pub()) !== "mu2r") { if (!d) { d = y } ae.dcp = d; var X = O.ce("script"); X.src = "//cf.addthis.com/red/p.json?rb=" + V + "&gen=" + d + "&callback=_ate.hrr" + (ae.pub() ? "&pub=" + ae.pub() : "") + (ae.uid && ae.uid !== "anonymous" ? "&uid=" + _euc(ae.uid) : "") + "&url=" + _euc(T) + (W ? "&ref=" + _euc(W) : ""); O.gn("head")[0].appendChild(X) } } } catch (ab) { } }, xld: function() { var b = f, e = { "6jb4": 1, sirb: 1, q8fc: 1, mv86: 1, qmo0: 1 }, c = b.jsl(), d = b.mun(b.pub()); if (!b.xld_p) { b.xld_p = 1; if (e[d]) { _atc.samp /= 2; b.samp = _atc.samp - Math.random() } if (b.samp >= 0 && !b.sub) { b.sev("20"); b.cev("plo", Math.round(1 / _atc.samp)); if (b.dr) { b.cev("pre", b.dr) } } b.xred(); b.img(_atc.ver + "lo", "2", c ? "jsl=" + c : "") } }, xmi: function(r) { var b = f, p = b.dl ? b.dl.hostname : ""; if (!b.uid) { b.dck("X" + b.cuid()) } else { b.coo() } if (b.cvt.length + b.svt.length > 0) { b.sxm(false); if (b.seq === 1) { b.cev("pin", b.inst) } if (_atc.xtr) { return } if (p.indexOf(".gov") > -1 || p.indexOf(".mil") > -1) { _atc.xck = 1 } var s = b.pix + "-" + b.ran() + ".png?ev=" + f.sta() + "&se=" + b.svt.join(",") + "&ce=" + b.cvt.join(",") + (_atc.xck ? "&xck=1" : ""), e = b.evu + s; b.cvt = []; b.svt = []; if (r) { var q = document, l = q.ce("iframe"); l.id = "_atf"; l.src = e; f.opp(l.style); q.body.appendChild(l); l = q.getElementById("_atf") } else { var c = new Image(); b.imgz.push(c); c.src = e } } }, loc: function() { return _atc.loc }, opp: function(a) { a.width = a.height = "1px"; a.position = "absolute"; a.zIndex = 100000 }, pub: function() { return _euc(window.addthis_config && addthis_config.username ? addthis_config.username : (window.addthis_pub || "")) }, plo: [], lad: function(a) { f.plo.push(a) }, lng: function() { return window.addthis_language || (window.addthis_config || {}).ui_language || (f.bro.msi ? navigator.userLanguage : navigator.language) }, ivl: function(a) { var b = { af: 1, afr: "af", ar: 1, ara: "ar", az: 1, aze: "az", be: 1, bye: "be", bg: 1, bul: "bg", bn: 1, ben: "bn", bs: 1, bos: "bs", ca: 1, cat: "ca", cs: 1, ces: "cs", cze: "cs", cy: 1, cym: "cy", da: 1, dan: "da", de: 1, deu: "de", ger: "de", el: 1, gre: "el", ell: "ell", es: 1, esl: "es", spa: "spa", et: 1, est: "et", fa: 1, fas: "fa", per: "fa", fi: 1, fin: "fi", fo: 1, fao: "fo", fr: 1, fra: "fr", fre: "fr", ga: 1, gae: "ga", gdh: "ga", gl: 1, glg: "gl", he: 1, heb: "he", hi: 1, hin: "hin", hr: 1, cro: "hr", hu: 1, hun: "hu", id: 1, ind: "id", is: 1, ice: "is", it: 1, ita: "it", ja: 1, jpn: "ja", ko: 1, kor: "ko", lb: 1, ltz: "lb", lt: 1, lit: "lt", lv: 1, lav: "lv", mk: 1, mac: "mk", mak: "mk", ms: 1, msa: "ms", may: "ms", nb: 1, nl: 1, nla: "nl", dut: "nl", no: 1, nno: "no", oc: 1, oci: "oc", pl: 1, pol: "pl", pt: 1, por: "pt", ro: 1, ron: "ro", rum: "ro", ru: 1, rus: "ru", sk: 1, slk: "sk", slo: "sk", sl: 1, slv: "sl", sq: 1, alb: "sq", sr: 1, ser: "sr", sv: 1, sve: "sv", swe: "sv", ta: 1, tam: "ta", te: 1, teg: "te", th: 1, tha: "th", tl: 1, tgl: "tl", tr: 1, tur: "tr", uk: 1, ukr: "uk", ur: 1, urd: "ur", vi: 1, vie: "vi", "zh-hk": 1, "chi-hk": "zh-hk", "zho-hk": "zh-hk", "zh-tr": 1, "chi-tr": "zh-tr", "zho-tr": "zh-tr", "zh-tw": 1, "chi-tw": "zh-tw", "zho-tw": "zh-tw", zh: 1, chi: "zh", zho: "zh" }; if (b[a]) { return b[a] } a = a.split("-").shift(); if (b[a]) { if (b[a] === 1) { return a } else { return b[a] } } return 0 }, alg: function(e, c) { var i = document, a = (e || f.lng() || "en").toLowerCase(), b = f.ivl(a); if (a.indexOf("en") !== 0 && (!f.pll || c)) { if (b) { if (b !== 1) { a = b } f.pll = f.ajs("static/r07/lang00/" + a + ".js") } } }, jlr: {}, ajs: function(a) { if (!f.jlr[a]) { var b = O.ce("script"); b.src = _atr + a; O.gn("head")[0].appendChild(b); f.jlr[a] = 1; return b } return 1 }, jlo: function() { try { var p = document, b = f, l = b.lng(); b.alg(l); if (!b.pld) { if (b.bro.ie6) { var c = new Image(); b.imgz.push(c); c.src = _atr + b.spt; if (window.addthis_feed) { c = new Image(); b.imgz.push(c); c.src = _atr + "static/r05/feed00.gif" } } if (b.pll && !window.addthis_translations) { b.sto(function() { b.pld = b.ajs("static/r07/menu44.js") }, 10) } else { b.pld = b.ajs("static/r07/menu44.js") } } } catch (i) { } }, igv: function(a, b) { if (!u.addthis_share) { u.addthis_share = {} } if (!addthis_share.url) { u.addthis_share.url = u.addthis_url || a } if (!addthis_share.title) { u.addthis_share.title = u.addthis_title || b } if (!u.addthis_config) { u.addthis_config = { username: u.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(S) { try { var U = window, ak = f, x = ak.bro.msi, d = 0, Z = O.referer || O.referrer || "", X = J ? J.href : null, ag = J.hostname, aj = X ? X.indexOf("sms_ss") : -1, ah = ((S === 1 || U.addthis_load_flash) && !_atc.abf), ac = ((U.addthis_language || (U.addthis_config ? U.addthis_config.ui_language : null) || (ak.bro.msi ? navigator.userLanguage : navigator.language)).split("-")).shift(), s = (J.href.indexOf(_atr) == -1) && !ak.bro.ie6 && !ak.bro.ie7, ad = O.gn("link"), q = _atr + "static/r07/sh10.html", y = "_ate.ifwn()", r, T; if (!U.postMessage) { var W = O.gn("img"); for (var ae = 0; ae < W.length; ae++) { if (W[ae].src.split("//").pop().indexOf(ag) == 0) { r = W[ae].src; break } } } if (s && (!_atc.xic || (U.postMessage || ak.bro.msi))) { if (!x) { T = O.ce("iframe") } else { var V = O.ce("div"); V.style.visibility = "hidden"; ak.opp(V.style); O.body.insertBefore(V, O.body.firstChild); V.innerHTML = '<iframe id="_atssh" width="1" height="1" name="_atssh" ' + (!U.postMessage ? 'onload="' + y + '" ' : "") + ">"; T = O.getElementById("_atssh") } } for (var ae = 0; ae < ad.length; ae++) { var ab = ad[ae]; if (ab.rel && ab.rel == "canonical" && ab.href) { X = ab.href } } ak.igv(X, O.title || ""); ak.gov(); ak.dr = Z; var p = (ak.swf && !_atc.xfl && !(ak.loc()) && !_atc.abf && (ah || ak.uid === null || (ak.uid !== "anonymous" && ak.oot && ((new Date()).getTime() - ak.oot > 60480000)))); q += "#swfp=" + (p && x ? 1 : 0); if (!x && p) { var c = function(e, l, a) { var i = O.ce("param"); i.name = l; i.value = a; e.appendChild(i) }, V = O.ce("div"), Y = "atff", b = Y + "c", aa = O.ce("object"); V.id = b; O.body.insertBefore(V, O.body.firstChild); setTimeout(function() { var a = O.getElementById(b); aa.id = Y; aa.data = ak.swf; aa.width = aa.height = "1px"; aa.type = "application/x-shockwave-flash"; c(aa, "wmode", "transparent"); c(aa, "allowScriptAccess", "always"); a.appendChild(aa) }, 10) } if (s && T) { T.id = "_atssh"; ak.opp(T.style); T.frameborder = T.style.border = 0; T.style.top = T.style.left = 0; if (U.postMessage) { T.src = q; if (x) { U.attachEvent("onmessage", ak.pmh) } else { U.addEventListener("message", ak.pmh, false) } T = O.body.appendChild(T) } else { if (r && !_atc.xic && ak.bro.msi && window == top) { T.onload = y; T.src = r; T = O.body.appendChild(T); T.src = q + "&wpl=" + _euc(r) } } ak.sifr = T } if (!ah) { if (p) { ak.uoo(); if (ak.bro.ie6 || ak.bro.ie7) { ak.sto("if (_ate.xld) _ate.xld()", 5000) } else { ak.sto("_ate.xld()", 5000) } } else { ak.guid = 1; ak.xld() } if (aj > -1 && X.indexOf(_atd + "book") == -1) { var af = X.substr(aj); af = af.split("&").shift().split("#").shift().split("=").pop(); if (ak.vamp >= 0 && !ak.sub && af.length) { ak.cev("plv", Math.round(1 / _atc.vamp)); ak.cev("rsc", af) } } } if (window.addthis_language || (window.addthis_config || {}).ui_language) { ak.alg() } if (ak.plo.length > 0) { ak.jlo() } } catch (ai) { } }, kck: function(a) { var b = document; if (b.cookie) { b.cookie = a + "= ; expires=Tue, 31 Mar 2009 05:47:11 UTC; path=/" } }, rck: function(e) { var p = document; if (p.cookie) { var b = p.cookie.split(";"); for (var l = 0; l < b.length; l++) { var q = b[l], a = q.indexOf(e + "="); if (a >= 0) { return q.substring(a + (e.length + 1)) } } } return }, uoo: function() { f.sck("_csoot", (new Date().getTime())) }, coo: function(a) { if (f.uid == "anonymous" && !f.oot) { _atc.xck = 1; f.uoo() } }, dck: function(a) { f.uid = a; f.sck("_csuid", a); f.coo() }, gov: function() { var b = f.dl ? f.dl.hostname : ""; if (b.indexOf(".gov") > -1 || b.indexOf(".mil") > -1) { _atc.xck = 1; _atc.xfl = 1 } var c = f.pub(), a = ["usarmymedia", "govdelivery"]; for (K in a) { if (c == a[K]) { _atc.xck = 1; _atc.xfl = 1; break } } }, sck: function(b, a, c) { f.gov(); if (!_atc.xck) { O.cookie = b + "=" + a + (!c ? "; expires=Wed, 04 Oct 2028 03:19:53 GMT" : "") + "; path=/" } }, asetup: function(b) { var c = f; try { if (!c.guid) { c.guid = 1; if (b !== null && b !== _atu) { c.dck(b) } c.xld() } } catch (d) { } return b }, ao: function(b, i, e, c, d, a) { f.lad(["open", b, i, e, c, d, a]); f.jlo(); return false }, ac: function() { }, as: function(b, c, a) { f.lad(["send", b, c, a]); f.jlo() } }, R = f; u._ate = R; u._adr = A; O.ce = O.createElement; O.gn = O.getElementsByTagName; A.bindReady(); if (!_atc.ost) { if (!u.addthis_conf) { u.addthis_conf = {} } for (var K in addthis_conf) { _atc[K] = addthis_conf[K] } _atc.ost = 1 } A.append(R.lod); if (O.cookie) { var m = O.cookie.split(";"); for (var K = 0; K < m.length; K++) { var P = m[K], o = P.indexOf("_csuid="), k = P.indexOf("_csoot="); if (o >= 0) { f.uid = P.substring(o + 7) } else { if (k >= 0) { f.oot = P.substring(k + 7) } } } } try { if (!_atc.xcs) { var I = O.ce("link"); I.rel = "stylesheet"; I.type = "text/css"; I.href = _atr + "static/r07/widget27.css"; I.media = "all"; O.gn("head")[0].appendChild(I) } } catch (N) { } var H = O.gn("script"), z = H[H.length - 1], B = z.src.indexOf("#") > -1 ? z.src.replace(/^[^\#]+\#?/, "") : z.src.replace(/^[^\?]+\??/, ""), C = g(B); if (C.pub) { u.addthis_pub = _duc(C.pub) } else { if (C.username) { u.addthis_pub = _duc(C.username) } } if (u.addthis_pub && u.addthis_config) { u.addthis_config.username = u.addthis_pub } if (C.domready) { _atc.dr = 1 } try { if (_atc.ver === 120) { var G = "atb" + u._ate.cuid(); O.write('<span id="' + G + '"></span>'); u._ate.igv(); u._ate.lad(["span", G, addthis_share.url || "[url]", addthis_share.title || "[title]"]) } if (u.addthis_clickout) { f.lad(["cout"]) } } catch (N) { } })(); function addthis_open(b, f, e, c, d, a) { if (typeof d == "string") { d = null } return _ate.ao(b, f, e, c, d, a) } function addthis_close() { _ate.ac() } function addthis_sendto(b, c, a) { _ate.as(b, c, a); 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 = (function() { var a = { aim: "AIM", domaintoolswhois: "Whois Lookup", kirtsy: "kIRTSY", linkagogo: "Link-a-Gogo", meneame: "Men&eacute;ame", misterwong: "Mister Wong", mailto: "Email App", myaol: "myAOL", myspace: "MySpace", readitlater: "Read It Later", shetoldme: "She Told Me", stumbleupon: "StumbleUpon", typepad: "TypePad", wordpress: "WordPress", yahoobkm: "Y! Bookmarks", yahoomail: "Y! Mail" }, c = function(f, g) { var h; if (window._atw && _atw.list) { h = _atw.list[f] } else { if (a[f]) { h = a[f] } else { h = (g ? f : (f.substr(0, 1).toUpperCase() + f.substr(1))) } } return h.replace(/&nbsp;/g, " ") }; function d(g, f) { return function() { addthis.plo.push({ call: g, args: arguments, ns: f }) } } function b(h) { var g = this, f = this.queue = []; this.name = h; this.call = function() { f.push(arguments) }; this.call.queuer = this; this.flush = function(l, k) { for (var j = 0; j < f.length; j++) { l.apply(k || g, f[j]) } return l } } return { ost: 0, cache: {}, plo: [], links: [], ems: [], _Queuer: b, _queueFor: d, button: d("button"), toolbox: d("toolbox"), update: d("update"), util: { getServiceName: c}} })() } _adr.append((function() { if (!window.addthis.ost) { var d = document, u = undefined, w = window, unaccent = function(s) { if (s.indexOf("&") > -1) { s = s.replace(/&([aeiou]).+;/g, "$1") } return s }, customServices = {}, globalConfig = w.addthis_config, globalShare = w.addthis_share, upConfig = {}, upShare = {}, body = d.gn("body").item(0), mrg = function(o, n) { if (n && o !== n) { for (var k in n) { if (o[k] === u) { o[k] = n[k] } } } }, addga = function(o, ss, au) { var oldclick = o.onclick || function() { }; if (o.conf.data_ga_tracker || addthis_config.data_ga_tracker || o.conf.data_ga_property || addthis_config.data_ga_property) { o.onclick = function() { _ate.gat(ss, au, o.conf, o.share); oldclick() } } }, rpl = function(o, n) { var r = {}; for (var k in o) { if (n[k]) { r[k] = n[k] } else { r[k] = o[k] } } return r }, addthis = window.addthis, genieu = function(share) { return "mailto:?subject=" + _euc(share.title ? share.title : "%20") + "&body=" + _euc(share.title ? share.title : "") + (share.title ? "%0D%0A" : "") + _euc(share.url) + "%0D%0A%0D%0AShared via AddThis.com" }, gebcn = function(oParent, tag, className, allowSuffix, optimizable) { tag = tag.toUpperCase(); var els = (oParent == body && addthis.cache[tag] ? addthis.cache[tag] : (oParent || body).getElementsByTagName(tag)), rv = [], i, o; if (oParent == body) { addthis.cache[tag] = els } if (optimizable) { for (i = 0; i < els.length; i++) { o = els[i]; if (o.className.indexOf(className) > -1) { rv.push(o) } } } else { className = className.replace(/\-/g, "\\-"); var rx = new RegExp("(^|\\s)" + className + (allowSuffix ? "\\w*" : "") + "(\\s|$)"); for (i = 0; i < els.length; i++) { o = els[i]; if (rx.test(o.className)) { rv.push(o) } } } return (rv) }, b_title = { email: "Email", mailto: "Email", print: "Print", favorites: "Save to Favorites", twitter: "Tweet This", digg: "Digg This" }, json = { email_vars: 1, templates: 1, services_custom: 1 }, nosend = { more: 1, email: 1, mailto: 1 }, nowindow = { email: 1, mailto: 1, print: 1, more: 1, favorites: 1 }, a_config = ["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_use_embeddable_services_beta", "ui_icons", "ui_cobrand", "data_use_flash", "data_use_cookies", "data_track_linkback"], a_share = ["url", "title", "templates", "email_template", "email_vars", "html", "swfurl", "width", "height", "screenshot", "author", "description", "content"], getElementsByClassName = d.getElementsByClassname || gebcn, _svcurl = function(config, share) { var sv = config.services instanceof Array ? config.services[0] : config.services || ""; return "http://" + _atd + "bookmark.php?v=" + _atc.ver + "&pub=" + _euc(_ate.pub()) + "&s=" + sv + (share.url ? "&url=" + _euc(share.url) : "") + (share.title ? "&title=" + _euc(share.title) : "") + "&tt=0" }, _select = function(what) { if (typeof what == "string") { var c = what.substr(0, 1); if (c == "#") { what = d.getElementById(what.substr(1)) } else { if (c == ".") { what = getElementsByClassName(body, "*", what.substr(1)) } else { } } } if (!(what instanceof Array)) { what = [what] } return what }, _parseAttributes = function(el, attrs, overrides, childWins) { var rv = {}; overrides = overrides || {}; for (var i = 0; i < attrs.length; i++) { if (overrides[attrs[i]] && !childWins) { rv[attrs[i]] = overrides[attrs[i]] } else { if (el) { var p = "addthis:" + attrs[i], v = el.getAttribute ? el.getAttribute(p) || el[p] : el[p]; if (v) { rv[attrs[i]] = v } else { if (overrides[attrs[i]]) { rv[attrs[i]] = overrides[attrs[i]] } } if (rv[attrs[i]] === "true") { rv[attrs[i]] = true } else { if (rv[attrs[i]] === "false") { rv[attrs[i]] = false } } } } if (rv[attrs[i]] !== undefined && json[attrs[i]] && (typeof rv[attrs[i]] == "string")) { eval("var e = " + rv[attrs[i]]); rv[attrs[i]] = e } } return rv }, _processCustomServices = function(conf) { var acs = (conf || {}).services_custom; if (!acs) { return } if (!(acs instanceof Array)) { acs = [acs] } for (var i = 0; i < acs.length; i++) { var service = acs[i]; if (service.name && service.icon && service.url) { service.code = service.url = service.url.replace(/ /g, ""); if (service.code.indexOf("http") === 0) { service.code = service.code.substr((service.code.indexOf("https") === 0 ? 8 : 7)) } service.code = service.code.split("?").shift().split("/").shift().toLowerCase(); customServices[service.code] = service } } }, _getCustomService = function(ss, conf) { return customServices[ss] || {} }, _getATtributes = function(el, config, share, childWins) { var rv = { conf: config || {}, share: share || {} }; rv.conf = _parseAttributes(el, a_config, config, childWins); rv.share = _parseAttributes(el, a_share, share, childWins); return rv }, _render = function(what, conf, attrs) { if (what) { conf = conf || {}; attrs = attrs || {}; var config = conf.conf || globalConfig, share = conf.share || globalShare; var onmouseover = attrs.onmouseover, onmouseout = attrs.onmouseout, onclick = attrs.onclick, internal = attrs.internal, ss = attrs.singleservice; if (ss) { config.product = "tbx-" + _atc.ver; if (onclick === u) { onclick = nosend[ss] ? function(el, config, share) { var s = rpl(share, upShare); return addthis_open(el, ss, s.url, s.title, rpl(config, upConfig), s) } : nowindow[ss] ? function(el, config, share) { var s = rpl(share, upShare); return addthis_sendto(ss, rpl(config, upConfig), s) } : null } } else { if (!attrs.noevents) { if (!attrs.nohover) { if (onmouseover === u) { onmouseover = function(el, config, share) { return addthis_open(el, "", null, null, config, share) } } if (onmouseout === u) { onmouseout = function(el) { return addthis_close() } } if (onclick === u) { onclick = function(el, config, share) { return addthis_sendto("more", config, share) } } } else { if (onclick === u) { onclick = function(el, config, share) { return addthis_open(el, "more", null, null, config, share) } } } } } what = _select(what); for (var i = 0; i < what.length; i++) { var o = what[i], oattr = _getATtributes(o, config, share, true) || {}; mrg(oattr.conf, globalConfig); mrg(oattr.share, globalShare); o.conf = oattr.conf; o.share = oattr.share; if (o.conf.ui_language) { _ate.alg(o.conf.ui_language) } _processCustomServices(o.conf); if (!o.conf || !o.conf.ui_click) { if (onmouseover) { o.onmouseover = function() { return onmouseover(this, this.conf, this.share) } } if (onmouseout) { o.onmouseout = function() { return onmouseout(this) } } if (onclick) { o.onclick = function() { return onclick(this, this.conf, this.share) } } } else { if (onclick) { o.onclick = function() { return addthis_open(this, "", null, null, this.conf, this.share) } } } if (o.tagName.toLowerCase() == "a") { if (ss) { var customService = _getCustomService(ss, o.conf); o.conf.product = "tbx-" + _atc.ver; if (customService && customService.code && customService.icon) { if (o.firstChild && o.firstChild.className.indexOf("at300bs") > -1) { o.firstChild.style.background = "url(" + customService.icon + ") no-repeat top left" } } if (!nowindow[ss]) { var t = _ate.trim, template = o.share.templates && o.share.templates[ss] ? o.share.templates[ss] : "", url = o.share.url || addthis_share.url, title = o.share.title || addthis_share.title, swfurl = o.share.swfurl || addthis_share.swfurl, width = o.share.width || addthis_share.width, height = o.share.height || addthis_share.height, description = o.share.description || addthis_share.description, screenshot = o.share.screenshot || addthis_share.screenshot; o.href = "//" + _atd + "bookmark.php?pub=" + t(addthis_config.username || o.conf.username || _ate.pub(), 1) + "&v=" + _atc.ver + "&source=tbx-" + _atc.ver + "&tt=0&s=" + ss + "&url=" + _euc(url || "") + "&title=" + t(title || "", 1) + "&content=" + t(o.share.content || addthis_share.content || "", 1) + (template ? "&template=" + _euc(template) : "") + (o.conf.data_track_linkback ? "&sms_ss=1" : "") + "&lng=" + (o.conf.ui_language || _ate.lng() || "xy").split("-").shift() + (description ? "&description=" + t(description, 1) : "") + (swfurl ? "&swfurl=" + _euc(swfurl) : "") + (attrs.issh ? "&ips=1" : "") + (width ? "&width=" + _euc(width) : "") + (height ? "&height=" + _euc(height) : "") + (screenshot ? "&screenshot=" + _euc(screenshot) : "") + (customService && customService.url ? "&acn=" + _euc(customService.name) + "&acc=" + _euc(customService.code) + "&acu=" + _euc(customService.url) : "") + (_ate.uid ? "&uid=" + _euc(_ate.uid) : ""); addga(o, ss, url); o.target = "_blank"; addthis.links.push(o) } else { if (ss == "mailto" || (ss == "email" && (o.conf.ui_use_mailto || _ate.bro.iph))) { o.onclick = function() { }; o.href = genieu(o.share); addga(o, ss, url); addthis.ems.push(o) } } if (!o.title) { o.title = unaccent(b_title[ss] ? b_title[ss] : "Send to " + addthis.util.getServiceName(ss, !customService)) } } } if (internal) { var app = internal; if (!o.hasChildNodes()) { if (internal == "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) } } } } }, buttons = gebcn(body, "A", "addthis_button_", true, true), _renderToolbox = function(collection, config, share, reprocess) { for (var i = 0; i < collection.length; i++) { var b = collection[i]; if (b == null) { continue } if (reprocess !== false || !b.ost) { var config = config || globalConfig, share = share || globalShare, attr = _getATtributes(b, config, share, true), hc = 0, a = "at300", c = b.className || "", s = c.match(/addthis_button_([\w\.]+)(?:\s|$)/), options = u, sv = s && s.length ? s[1] : 0; if (sv) { if (sv.indexOf("preferred") > -1) { s = c.match(/addthis_button_preferred_([0-9]+)(?:\s|$)/); var svidx = ((s && s.length) ? Math.min(12, Math.max(1, parseInt(s[1]))) : 1) - 1; if (window._atw) { var excl = _atw.conf.services_exclude, locopts = _atw.loc, opts = addthis_options.replace(",more", "").split(","); if (svidx < opts.length) { sv = opts[svidx]; locopts = locopts.replace(sv, "").replace(",,", "").replace(/,$|^,/, "") } else { if (typeof locopts != "array") { locopts = locopts.split(",") } do { if (svidx < locopts.length) { sv = locopts[svidx] } else { break } } while (excl.indexOf(svidx++) == -1) } b._ips = 1; if (b.className.indexOf(sv) == -1) { b.className += " addthis_button_" + sv } } else { if (config.ui_language || window.addthis_language) { _ate.alg(config.ui_language) } _ate.plo.push(["deco", _renderToolbox, [b], config, share, true]); if (_ate.gssh) { _ate.pld = _ate.ajs("static/r07/menu44.js") } else { if (!_ate.pld) { _ate.pld = 1; _ate.sto("_ate.pld = _ate.ajs('static/r07/menu44.js');", 100) } } continue } } 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" } options = { nohover: true} } else { if (!hc && c.indexOf(a) == -1) { b.className += " " + a + "b" } options = { singleservice: sv} } } if (b._ips) { if (!options) { options = {} } options.issh = true } _render([b], attr, options); b.ost = 1 } } } }, gat = function(s, au, conf, share) { var pageTracker = conf.data_ga_tracker, propertyId = conf.data_ga_property; if (propertyId && typeof (window._gat) == "object") { pageTracker = _gat._getTracker(propertyId) } if (pageTracker && typeof (pageTracker) == "string") { pageTracker = window[pageTracker] } if (pageTracker && typeof (pageTracker) == "object") { var gaUrl = au || (share || {}).url || location.href; if (gaUrl.toLowerCase().replace("https", "http").indexOf("http%3a%2f%2f") == 0) { gaUrl = _duc(gaUrl) } try { pageTracker._trackEvent("addthis", s, gaUrl) } catch (e) { try { pageTracker._initData(); pageTracker._trackEvent("addthis", s, gaUrl) } catch (e) { } } } }; _ate.gat = gat; addthis.update = function(which, what, value) { if (which == "share") { if (!window.addthis_share) { window.addthis_share = {} } window.addthis_share[what] = value; upShare[what] = value; for (var i in addthis.links) { var o = addthis.links[i], rx = new RegExp("&" + what + "=(.*)&"), ns = "&" + what + "=" + _euc(value) + "&"; o.href = o.href.replace(rx, ns); if (o.href.indexOf(what) == -1) { o.href += ns } } for (var i in addthis.ems) { var o = addthis.ems[i]; o.href = genieu(addthis_share) } } else { if (which == "config") { if (!window.addthis_config) { window.addthis_config = {} } window.addthis_config[what] = value; upConfig[what] = value } } }; addthis.button = function(what, config, share) { _render(what, { conf: config, share: share }, { internal: "img" }) }; addthis.toolbox = function(what, config, share) { var toolboxes = _select(what); for (var i = 0; i < toolboxes.length; i++) { var tb = toolboxes[i], attr = _getATtributes(tb, config, share), sp = d.ce("div"), c = tb.getElementsByTagName("a"); if (c) { _renderToolbox(c, attr.conf, attr.share) } tb.appendChild(sp); sp.className = "atclear" } }; addthis.ready = function() { var at = addthis, a = ".addthis_"; if (at.ost) { return } at.ost = 1; addthis.toolbox(a + "toolbox"); addthis.button(a + "button"); _renderToolbox(buttons, null, null, false); for (var i = 0, plo = at.plo, q; i < plo.length; i++) { q = plo[i]; (q.ns ? at[q.ns] : at)[q.call].apply(this, q.args) } }; window.addthis = addthis; window.addthis.ready() } })); _ate.extend(addthis, { user: (function() { var f = _ate, c = addthis, g = {}, d = 0, j; function i(a, k) { return f.reduce(["getID", "getServiceShareHistory"], a, k) } function h(a, k) { return function(l) { setTimeout(function() { l(f[a] || k) }, 0) } } function b() { if (d) { return } if (j !== null) { clearTimeout(j) } j = null; d = 1; i(function(l, a, k) { g[a] = g[a].queuer.flush(h.apply(c, l[k]), c); return l }, [["uid", ""], ["_ssh", []]]) } f._rec.push(b); j = setTimeout(b, 5000); g.getPreferredServices = function(a) { if (window._atw) { a(addthis_options.split(",")) } else { f.plo.push(["pref", a]); _ate.alg(); if (f.gssh) { f.pld = f.ajs("static/r07/menu44.js") } else { if (!f.pld) { f.pld = 1; f.sto("_ate.pld = _ate.ajs('static/r07/menu44.js');", 100) } } } }; return i(function(k, a) { k[a] = (new c._Queuer(a)).call; return k }, g) })() });
//ST_JSON = new function() { this.encode = function() { var self = arguments.length ? arguments[0] : this, result, tmp; if (self === null) { result = "null" } else { if (self !== undefined && (tmp = $[typeof self](self))) { switch (tmp) { case Array: result = []; for (var i = 0, j = 0, k = self.length; j < k; j++) { if (self[j] !== undefined && (tmp = ST_JSON.encode(self[j]))) { result[i++] = tmp } } result = "[".concat(result.join(","), "]"); break; case Boolean: result = String(self); break; case Date: result = '"'.concat(self.getFullYear(), "-", d(self.getMonth() + 1), "-", d(self.getDate()), "T", d(self.getHours()), ":", d(self.getMinutes()), ":", d(self.getSeconds()), '"'); break; case Function: break; case Number: result = isFinite(self) ? String(self) : "null"; break; case String: result = '"'.concat(self.replace(rs, s).replace(ru, u), '"'); break; default: var i = 0, key; result = []; for (key in self) { if (self[key] !== undefined && (tmp = ST_JSON.encode(self[key]))) { result[i++] = '"'.concat(key.replace(rs, s).replace(ru, u), '":', tmp) } } result = "{".concat(result.join(","), "}"); break } } } return result }; this.toDate = function() { var self = arguments.length ? arguments[0] : this, result; if (rd.test(self)) { result = new Date; result.setHours(i(self, 11, 2)); result.setMinutes(i(self, 14, 2)); result.setSeconds(i(self, 17, 2)); result.setMonth(i(self, 5, 2) - 1); result.setDate(i(self, 8, 2)); result.setFullYear(i(self, 0, 4)) } else { if (rt.test(self)) { result = new Date(self * 1000) } } return result }; var c = { "\b": "b", "\t": "t", "\n": "n", "\f": "f", "\r": "r", '"': '"', "\\": "\\", "/": "/" }, d = function(n) { return n < 10 ? "0".concat(n) : n }, e = function(c, f, e) { e = eval; delete eval; if (typeof eval === "undefined") { eval = e } f = eval("" + c); eval = e; return f }, i = function(e, p, l) { return 1 * e.substr(p, l) }, p = ["", "000", "00", "0", ""], rc = null, rd = /^[0-9]{4}\-[0-9]{2}\-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/, rs = /(\x5c|\x2F|\x22|[\x0c-\x0d]|[\x08-\x0a])/g, rt = /^([0-9]+|[0-9]+[,\.][0-9]{1,3})$/, ru = /([\x00-\x07]|\x0b|[\x0e-\x1f])/g, s = function(i, d) { return "\\".concat(c[d]) }, u = function(i, d) { var n = d.charCodeAt(0).toString(16); return "\\u".concat(p[n.length], n) }, v = function(k, v) { return $[typeof result](result) !== Function && (v.hasOwnProperty ? v.hasOwnProperty(k) : v.constructor.prototype[k] !== v[k]) }, $ = { "boolean": function() { return Boolean }, "function": function() { return Function }, number: function() { return Number }, object: function(o) { return o instanceof o.constructor ? o.constructor : null }, string: function() { return String }, "undefined": function() { return null } }, $$ = function(m) { function $(c, t) { t = c[m]; delete c[m]; try { e(c) } catch (z) { c[m] = t; return 1 } } return $(Array) && $(Object) }; try { rc = new RegExp('^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$') } catch (z) { rc = /^(true|false|null|\[.*\]|\{.*\}|".*"|\d+|\d+\.\d+)$/ } }; try { if (!SHARETHIS) { if (!SHARETHIS_TOOLBAR) { var SHARETHIS_TOOLBAR = false } var SHARETHIS = null; function parseQueryString(b) { var d = {}; if (b == undefined) { b = location.search ? location.search : "" } if (b.charAt(0) == "?") { b = b.substring(1) } var f = b.indexOf("?"); if (f) { b = b.substring(f + 1) } f = b.indexOf("#"); if (f) { b = b.substring(f + 1) } b = b.replace("+", " "); var g = b.split(/[&;]/g); for (var f = 0; f < g.length; f++) { var c = g[f].split("="); var a = decodeURIComponent(c[0]); var e = decodeURIComponent(c[1]); if (!d[a]) { d[a] = [] } d[a].push((c.length == 1) ? "" : e) } return d } var hexcase = 0; var b64pad = ""; var chrsz = 8; function hex_sha1(a) { return binb2hex(core_sha1(str2binb(a), a.length * chrsz)) } function core_sha1(h, m) { h[m >> 5] |= 128 << (24 - m % 32); h[((m + 64 >> 9) << 4) + 15] = m; var f = Array(80); var g = 1732584193; var i = -271733879; var j = -1732584194; var k = 271733878; var l = -1009589776; for (var q = 0; q < h.length; q += 16) { var n = g; var o = i; var a = j; var b = k; var d = l; for (var c = 0; c < 80; c++) { if (c < 16) { f[c] = h[q + c] } else { f[c] = rol(f[c - 3] ^ f[c - 8] ^ f[c - 14] ^ f[c - 16], 1) } var e = safe_add(safe_add(rol(g, 5), sha1_ft(c, i, j, k)), safe_add(safe_add(l, f[c]), sha1_kt(c))); l = k; k = j; j = rol(i, 30); i = g; g = e } g = safe_add(g, n); i = safe_add(i, o); j = safe_add(j, a); k = safe_add(k, b); l = safe_add(l, d) } return Array(g, i, j, k, l) } function sha1_ft(d, a, b, c) { if (d < 20) { return (a & b) | ((~a) & c) } if (d < 40) { return a ^ b ^ c } if (d < 60) { return (a & b) | (a & c) | (b & c) } return a ^ b ^ c } function sha1_kt(a) { return (a < 20) ? 1518500249 : (a < 40) ? 1859775393 : (a < 60) ? -1894007588 : -899497514 } function safe_add(a, b) { var c = (a & 65535) + (b & 65535); var d = (a >> 16) + (b >> 16) + (c >> 16); return (d << 16) | (c & 65535) } function rol(a, b) { return (a << b) | (a >>> (32 - b)) } function str2binb(b) { var c = Array(); var a = (1 << chrsz) - 1; for (var d = 0; d < b.length * chrsz; d += chrsz) { c[d >> 5] |= (b.charCodeAt(d / chrsz) & a) << (32 - chrsz - d % 32) } return c } function binb2hex(c) { var d = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; var b = ""; for (var a = 0; a < c.length * 4; a++) { b += d.charAt((c[a >> 2] >> ((3 - a % 4) * 8 + 4)) & 15) + d.charAt((c[a >> 2] >> ((3 - a % 4) * 8)) & 15) } return b } function hash_page(a) { return hex_sha1(a) } var stVisibleInterval = null; var readyTestInterval = null; var st_showing = false; var stautoclose = true; function SHARETHIS_merge() { var e = {}; for (var d = 0, a = arguments.length; d < a; d++) { var b = arguments[d]; if (SHARETHIS_typeof(b) != "object") { continue } for (var c in b) { var g = b[c], f = e[c]; e[c] = (f && SHARETHIS_typeof(g) == "object" && SHARETHIS_typeof(f) == "object") ? SHARETHIS_merge(f, g) : SHARETHIS_unlink(g) } } return e } function SHARETHIS_unlink(c) { var a; switch (SHARETHIS_typeof(c)) { case "object": a = {}; for (var e in c) { a[e] = SHARETHIS_unlink(c[e]) } break; case "hash": a = SHARETHIS_unlink(c.getClean()); break; case "array": a = []; for (var d = 0, b = c.length; d < b; d++) { a[d] = SHARETHIS_unlink(c[d]) } break; default: return c } return a } function SHARETHIS_typeof(a) { if (SHARETHIS_isArray(a)) { return "array" } else { return typeof a } } function SHARETHIS_isArray(c) { var b = c != null && typeof c == "object" && "splice" in c && "join" in c; return b } function cleanURL(d) { var c = window.location.hash; var b = new RegExp("STS=", "i"); var a = c.match(b); if (a != null) { var e = d.split("#"); return e[0] } else { return d } } function Shareable(b, a) { this.idx = -1; this.frameUrl = ""; this.element = null; this.trigger = null; this.page = ""; this.properties = { type: "", title: encodeURIComponent(document.title), summary: "", content: "", url: cleanURL(document.URL), icon: "", category: "", updated: document.lastModified, published: "", author: "" }; this.options = { button: true, onmouseover: true, buttonText: "ShareThis", popup: false, offsetLeft: 0, offsetTop: 0, embeds: false, autoclose: false }; this.initialize = function(d, c) { this.options = SHARETHIS_merge(this.options, c); this.properties = SHARETHIS_merge(this.properties, d); if (c.target) { var e = this; c.target.onclick = function() { e.share() }; if (c.mouseover) { c.target.onmouseover = function() { e.share() } } } }; this.initialize(b, a); this.share = function() { frames.stframe.location = this.frameUrl + "#getObject/" + SHARETHIS.guid + "/" + this.idx }; this.attachButton = function(c) { this.element = c; c.setAttribute("st_page", "home"); if (this.options.onmouseover) { c.onmouseover = this.popup } else { c.onclick = this.popup } }; this.attachChicklet = function(f, c) { switch (f) { case "facebook": c.setAttribute("st_dest", "facebook.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "facebook.com") } catch (g) { } } c.onclick = this.chicklet; break; case "digg": c.setAttribute("st_dest", "digg.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "digg.com") } catch (g) { } } c.onclick = this.chicklet; break; case "yahoo_buzz": c.setAttribute("st_dest", "buzz.yahoo.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "buzz.yahoo.com") } catch (g) { } } c.onclick = this.chicklet; break; case "email": c.setAttribute("st_page", "send"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_page", "send") } catch (g) { } } c.onclick = this.popup; break; case "twitter": c.setAttribute("st_page", "post|twitter"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_page", "post|twitter") } catch (g) { } } c.onclick = this.popup; break; case "myspace": c.setAttribute("st_dest", "myspace.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "myspace.com") } catch (g) { } } c.onclick = this.chicklet; break; case "aim": c.setAttribute("st_dest", "aim.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "aim.com") } catch (g) { } } c.onclick = this.chicklet; break; case "mixx": c.setAttribute("st_dest", "mixx.com"); var e = c.childNodes; for (var d = 0; d < e.length; d++) { var h = e[d]; try { h.setAttribute("st_dest", "mixx.com") } catch (g) { } } c.onclick = this.chicklet; break } } } function ShareThis(options) { this.version = 2.03; this.tmpSendData = ""; this.sendArray = []; this.sendInit = []; this.sendNum = 0; this.guid = null; this.popExists = false; this.popup_win = null; this.newwinfrag = ""; this.page = null; this.shareables = []; this.readyList = []; this.postUrl = ""; this.frameUrl = ""; this.counter = 0; this.wrapper = null; this.ready = false; this.popupCalled = false; this.referrer_sts = ""; this.shr_flag = ""; this.publisherID = null; this.bodyLoaded = false; if (options.publisher) { this.publisherID = options.publisher[0] } this.hash_flag = false; if (this.publisherID == "6beba854-ee6d-4ae1-a4f3-b69815c8ef63" || this.publisherID == "d775c91e-1adb-499e-919d-de52745e7902" || this.publisherID == "275c66cf-cb06-447c-aec0-289146e214aa" || this.publisherID == "61531667-de39-47ee-96fb-a799c77ecc81" || this.publisherID == "06ef2313-b562-44c3-9e07-cb8ce2076dd4" || this.publisherID == "f82262be-2900-45bb-bc4c-a962baead4c0" || this.publisherID == "1a31d67e-e32a-4e95-94d4-5abe21e6b7a5" || this.publisherID == "2e79a50d-64c7-419c-9cba-7a8e2f9dc610" || this.publisherID == "3c393c3e-a5a8-4c2a-9622-050378087434" || this.publisherID == "5ebf95cb-1249-41fe-b26e-a25ca5528bb0" || this.publisherID == "14f5174c-5e32-48b4-9cd9-4311b6985d85" || this.publisherID == "83da16e4-922b-45e3-9333-cc03e7637354" || this.publisherID == "eab3790a-5b6e-4a77-b55a-c923d1211107") { this.hash_flag = true } if (options.hash_flag) { if (options.hash_flag == "true") { this.hash_flag = true } else { if (options.hash_flag == "false") { this.hash_flag = false } } } options.hash_flag = this.hash_flag; this.sessionID_time = (new Date()).getTime().toString(); this.sessionID_rand = Number(Math.random().toPrecision(5).toString().substr(2)).toString(); this.sessionID = this.sessionID_time + "." + this.sessionID_rand; options.sessionID = this.sessionID; this.fpc = _stFpc(); options.fpc = this.fpc; options.pUrl = encodeURIComponent(document.location.href); this.widgetCalled = false; this.lastUrl = "blank"; this.logFlag = true; this.closebutton = null; this.widgetExists = false; this.oldScroll = 0; this.fp = null; this.currentId = null; this.toolbar = false; this.st_clicked = false; this.st_clicked_o = null; this.curr_offsetTop = 0; this.curr_offsetLeft = 0; this.frameReady = false; this.delayShow = false; this.numIframe = 0; this.frameLoaded = false; this.curr_id = null; this.current_element = null; this.opt_arr = []; this.mousetimer = null; this.autoPosition = true; this.openDuration = 0; this.stopClosing = false; this.inTime = 0; this.outTime = 0; this.buttonCount = 0; this.buttonClicked = false; this.meta = { publisher: "", hostname: location.host, location: location.pathname }; this.positionWidget = function() { var id = SHARETHIS.curr_id; var shareel = SHARETHIS.current_element; if (shareel == null) { shareel = document.getElementById(id) } var curleft = curtop = 0; if (shareel.offsetParent) { curleft = shareel.offsetLeft; curtop = shareel.offsetTop; while (shareel = shareel.offsetParent) { curleft += shareel.offsetLeft; curtop += shareel.offsetTop } } shareel = SHARETHIS.current_element; if (shareel == null) { shareel = document.getElementById(id) } var eltop = 0; var elleft = 0; var topVal = 0; var leftVal = 0; var elemH = 0; var elemW = 0; eltop = curtop + shareel.offsetHeight + 5; elleft = curleft + 5; topVal = (eltop + SHARETHIS.curr_offsetTop); topVal = eval(topVal); elemH = topVal; topVal += "px"; leftVal = (elleft + SHARETHIS.curr_offsetLeft); leftVal = eval(leftVal); elemW = leftVal; leftVal += "px"; SHARETHIS.wrapper.style.top = topVal; SHARETHIS.wrapper.style.left = leftVal; if (SHARETHIS.autoPosition == true) { SHARETHIS.oldScroll = document.body.scrollTop; var pginfo = this.pageSize(); var effectiveH = pginfo.height + pginfo.scrY; var effectiveW = pginfo.width + pginfo.scrX; var widgetH = 280; var widgetW = 355; var needH = widgetH + elemH; var needW = widgetW + elemW; var diffH = needH - effectiveH; var diffW = needW - effectiveW; var newH = elemH - diffH; var newW = elemW - diffW; function getHW(elem) { var retH = 0; var retW = 0; while (elem != null) { retH += elem.offsetTop; retW += elem.offsetLeft; elem = elem.offsetParent } return { height: retH, width: retW} } var buttonPos = getHW(shareel); var leftA, rightA, topA, bottomA = false; if (diffH > 0) { bottomA = false; topA = true; if ((buttonPos.height - widgetH) > 0) { newH = buttonPos.height - widgetH } SHARETHIS.wrapper.style.top = newH + "px" } if (diffW > 0) { leftA = false; rightA = true; if ((buttonPos.width - widgetW) > 0) { newW = buttonPos.width - widgetW } SHARETHIS.wrapper.style.left = newW + "px" } } SHARETHIS.wrapper.style.visibility = "visible"; SHARETHIS.mainstframe.style.visibility = "visible" }, this.hideWidget = function() { if (SHARETHIS.wrapper.style.visibility !== "hidden") { SHARETHIS.wrapper.style.visibility = "hidden" } if (SHARETHIS.mainstframe.style.visibility !== "hidden") { SHARETHIS.mainstframe.style.visibility = "hidden" } }, this.pageSize = function() { var pScroll = [0, 0, 0, 0]; var scX = 0; var scY = 0; var winX = 0; var winY = 0; if (typeof (window.pageYOffset) == "number") { scX = window.pageXOffset; scY = window.pageYOffset } else { if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { scX = document.body.scrollLeft; scY = document.body.scrollTop } else { if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { scX = document.documentElement.scrollLeft; scY = document.documentElement.scrollTop } } } if (window.innerWidth) { winX = window.innerWidth; winY = window.innerHeight } else { if (document.documentElement.offsetWidth) { winX = document.documentElement.offsetWidth; winY = document.documentElement.offsetHeight } } pScroll = { scrX: scX, scrY: scY, width: winX, height: winY }; return pScroll }; this.postPopup = function() { field = function(k, v) { var f = document.createElement("input"); f.type = "hidden"; f.name = k; f.value = v; return f }; normalize = function(s) { if (s == null) { return "" } return encodeURIComponent(s) }; var f = document.createElement("form"); f.method = "post"; f.action = SHARETHIS.postUrl; f.target = "stpostframe"; var urls = ""; var propertylist = []; for (var i = 0; i < this.shareables.length; i++) { var tmp_prop = {}; var o = this.shareables[i]; urls = urls + o.properties.url; for (p in o.properties) { if (SHARETHIS_tstOptions(p) == true) { tmp_prop[p] = o.properties[p] } } propertylist.push(tmp_prop) } var jsonstr = ST_JSON.encode(propertylist); this.guid = hash_page(urls); f.appendChild(field("key", this.guid)); f.appendChild(field("data", normalize(jsonstr))); document.body.appendChild(f); f.submit() }; this.addEntry = function(properties, options) { if (_thisScript === null) { var tmpScr = getShareThisScript(); SHARETHIS.options = parseQueryString(tmpScr.src); this.frameUrl = "http://wd.sharethis.com/share3x/lightbox.d143da6534364d0182db4d7cc94729bd.html"; this.postUrl = "http://wd.sharethis.com/api/setCache_ws.php"; if (SHARETHIS.options.button) { SHARETHIS.options.button = SHARETHIS.getBool(SHARETHIS.options.button.toString()) } if (SHARETHIS.options.popup) { SHARETHIS.options.popup = SHARETHIS.getBool(SHARETHIS.options.popup.toString()) } if (SHARETHIS.options.embeds) { SHARETHIS.options.embeds = SHARETHIS.getBool(SHARETHIS.options.embeds.toString()) } var init = "#init"; SHARETHIS.newwinfrag = "#popup"; for (var o in SHARETHIS.options) { if (SHARETHIS_tstOptions(o) == true) { init = init + "/" + o + "=" + encodeURIComponent(options[o]); this.newwinfrag = this.newwinfrag + "/" + o + "=" + encodeURIComponent(options[o]) } } SHARETHIS.initstr = init; SHARETHIS.mainstframe.src = SHARETHIS.frameUrl + SHARETHIS.initstr } var o = new Shareable(properties, SHARETHIS_merge(SHARETHIS.options, options)); if (typeof (o.properties.url) === "object") { try { o.properties.url = o.properties.url.href } catch (err) { } } for (var prop in o.properties) { try { o.properties[prop] = o.properties[prop].toString() } catch (err) { } } var xInt = ""; var xInt2 = ""; var sendDataInt = ""; var sendPopupDataInt = ""; if (this.meta.publisher == "5afea983-e449-4a75-a464-3c9a7f6c6e37" || this.meta.publisher == "e1e0ea5a-a326-4731-b1d1-f21623043511" || this.meta.publisher == "ccd2a158-6cce-4bbc-afa8-1d2dc62fe84c" || this.meta.publisher == "1e542d6f-546f-4d85-a790-bbaf333155b7" || this.meta.publisher == "9d1a65ad-45f1-4259-a6e4-41a9b42d837c" || this.meta.publisher == "5afea983-e449-4a75-a464-3c9a7f6c6e37" || this.meta.publisher == "89879177-51bf-4cf0-91c9-6326d062d5e6" || this.meta.publisher == "44b6b8a4-c8df-4bd0-8d8d-e6ad27ec63f4") { o.options.onmouseover = false } if (SHARETHIS.options.onmouseover) { if (SHARETHIS.options.onmouseover == "true") { o.options.onmouseover = true } else { if (SHARETHIS.options.onmouseover == "false") { o.options.onmouseover = false } } } if (o.options.popup) { o.options.onmouseover = false; SHARETHIS.popupExists = true } else { if (SHARETHIS_TOOLBAR !== true) { SHARETHIS.widgetExists = true } } o.idx = this.shareables.push(o) - 1; var id = "sharethis_" + o.idx; var oidx = o.idx; if (o.properties.url !== this.lastUrl) { this.lastUrl = o.properties.url } else { this.logFlag = false } o.chicklet = function(e) { if (!e) { var e = window.event } if (e.target) { o.trigger = e.target } else { if (e.srcElement) { o.trigger = e.srcElement } } var dest = o.trigger.getAttribute("st_dest"); var loggerUrl = "http://l.sharethis.com/log?event=click&source=chicklet&publisher=" + encodeURIComponent(SHARETHIS.options.publisher) + "&hostname=" + encodeURIComponent(SHARETHIS.meta.hostname) + "&location=" + encodeURIComponent(SHARETHIS.meta.location) + "&destinations=" + dest + "&ts" + (new Date()).getTime() + "&title=" + encodeURIComponent(o.properties.title) + "&url=" + encodeURIComponent(cleanURL(o.properties.url)) + "&sessionID=" + SHARETHIS.options.sessionID + "&fpc=" + SHARETHIS.options.fpc; var logger = new Image(1, 1); logger.src = loggerUrl; logger.onload = function() { return }; var url = "http://wd.sharethis.com/button/redirect.php"; url += "?d=" + dest; url += "&pk=" + SHARETHIS.options.publisher; url += "&s=" + SHARETHIS.options.sessionID; url += "&p=" + encodeURIComponent(ST_JSON.encode(o.properties)); window.open(url, "stpopup", "width=970,height=700,location=1,toolbar=1,scrollbars=1,menubar=1,resizable=1") }; o.popup = function(e) { stCancelClose(); o.options.autoclose = true; SHARETHIS.postEntries(o); if (SHARETHIS_TOOLBAR === true) { if (st_showing === false) { SHARETHIS.log("widget", o, "toolbar") } st_showing = true; clearInterval(stVisibleInterval); added_tool = "/glo_toolbar=true"; SHARETHIS.hideEmbeds(); var pgval = ""; if (SHARETHIS.page != null) { pgval = "/page=" + SHARETHIS.page } SHARETHIS.mainstframe.src = SHARETHIS.frameUrl + SHARETHIS.newwinfrag + "/guid_index=0/guid=" + SHARETHIS.guid + added_tool + pgval; SHARETHIS.wrapper.style.visibility = "visible"; SHARETHIS.mainstframe.style.visibility = "visible" } else { if ((SHARETHIS.ready === true && SHARETHIS.frameReady === true) || (SHARETHIS.popupExists === true && SHARETHIS.ready == true && SHARETHIS.widgetExists === false) || (SHARETHIS.popupExists === true && SHARETHIS.ready == true && SHARETHIS.frameReady === true)) { clearInterval(stVisibleInterval); if ((typeof (e) != "undefined" && typeof (e) != "unknown" && e) || (typeof (event) != "undefined" && typeof (event) != "unknown" && event)) { if (typeof (e) != "undefined" && typeof (e) != "unknown" && e) { o.trigger = e.target } else { if (typeof (event) != "undefined" && typeof (event) != "unknown" && event) { o.trigger = event.srcElement } } if (o.trigger !== null && o.trigger) { id = o.trigger.id; SHARETHIS.current_element = o.trigger; o.page = o.trigger.getAttribute("st_page"); if (st_showing === false) { if (o.page == "home") { SHARETHIS.log("widget", o, "button") } else { SHARETHIS.log("widget", o, "chicklet") } } } else { o.page = "home"; if (st_showing === false) { SHARETHIS.log("widget", o, "button") } } } else { if (o.element != null) { id = o.element.id; SHARETHIS.current_element = o.element } o.page = "home"; if (st_showing === false) { SHARETHIS.log("widget", o, "button") } } var pageFrag = "/page=" + o.page; SHARETHIS.curr_offsetTop = Number(o.options.offsetTop); SHARETHIS.curr_offsetLeft = Number(o.options.offsetLeft); if (SHARETHIS.curr_offsetTop > 0 || SHARETHIS.curr_offsetTop > 0) { SHARETHIS.autoPosition = false } SHARETHIS.curr_id = id; if (o.options.onclick) { var res = o.options.onclick.apply(document, [o]); if (res == false) { return false } } if (o.options.popup) { var newwinurl = SHARETHIS.frameUrl + SHARETHIS.newwinfrag + "/guid_index=0/guid=" + SHARETHIS.guid + pageFrag; window.open(newwinurl, "newstframe", "status=1,toolbar=0,width=353,height=598") } else { if (st_showing == false) { if (o.options.embeds == false) { SHARETHIS.hideEmbeds() } stautoclose = o.options.autoclose; if (SHARETHIS.sendNum < SHARETHIS.sendArray.length) { var temparr = []; SHARETHIS.sendArray.push("#show/guid_index=0" + pageFrag); if (SHARETHIS.delayShow === true) { sendDataInt = setTimeout(SHARETHIS.sendData, 1000) } else { sendDataInt = setTimeout(SHARETHIS.sendData, 20) } } else { window.frames.stframe.location.replace(SHARETHIS.frameUrl + "#show/guid_index=0" + pageFrag); if (SHARETHIS.delayShow === true) { sendDataInt = setTimeout(SHARETHIS.sendData, 1000) } else { sendDataInt = setTimeout(SHARETHIS.sendData, 20) } } SHARETHIS.positionWidget(); st_showing = true } else { if (o.options.onmouseover == false || o.options.onmouseover == "false") { stcloseWidget() } } } } else { SHARETHIS.st_clicked = true; SHARETHIS.delayShow = true; SHARETHIS.st_clicked_o = o } } }; var a = document.createElement("a"); a.className = "stbutton stico_" + (o.options.style ? o.options.style : (SHARETHIS.options.style ? SHARETHIS.options.style : "default")); a.title = "ShareThis via email, AIM, social bookmarking and networking sites, etc."; a.href = "javascript:void(0)"; a.setAttribute("st_page", "home"); if (o.options.onmouseover == false || o.options.onmouseover == "false") { a.onclick = o.popup } if (o.options.onmouseover == true || o.options.onmouseover == "true") { a.onclick = function() { stCancelClose() }; a.onmouseover = function() { stCancelClose(); SHARETHIS.mousetimer = setTimeout(o.popup, 150) }; a.onmouseout = function() { clearInterval(SHARETHIS.mousetimer); stClose() } } var t = document.createElement("span"); t.className = "stbuttontext"; t.setAttribute("st_page", "home"); t.appendChild(document.createTextNode(o.options.buttonText)); a.appendChild(t); o.button = a; try { if (o.options.button == true && SHARETHIS.bodyLoaded == false) { document.write('<span id="' + id + '"></span>') } } catch (err) { } var x = document.getElementById(id); if (x) { if (o.options.button) { x.appendChild(a) } } if (this.logFlag) { SHARETHIS.buttonCount++ } return o }, this.postEntries = function(o) { SHARETHIS.sendNum = 0; var urls = ""; var propertylist = []; var tmp_prop = {}; urls = urls + o.properties.url; for (p in o.properties) { if (SHARETHIS_tstOptions(p) == true) { tmp_prop[p] = null; tmp_prop[p] = o.properties[p] } } propertylist.push(tmp_prop); var tmp = "/pageTitle=" + encodeURIComponent(encodeURIComponent(document.title)) + "/pageURL=" + encodeURIComponent(encodeURIComponent(cleanURL(document.URL))) + "/pageHost=" + encodeURIComponent(encodeURIComponent(document.location.host)) + "/pagePath=" + encodeURIComponent(encodeURIComponent(document.location.pathname)); SHARETHIS.sendArray.push("#data" + tmp); var jsonstr = ST_JSON.encode(propertylist); var tmp = encodeURIComponent(jsonstr); var b = tmp.length; var a = 1700; var c = parseInt(b / a); c = c + 1; var d = b % a; var sendArr = []; var tmpSend = ""; for (var i = 0; i < c; i++) { sendArr.push(tmp.substring(i * a, (i * a) + a)) } for (var i = 0; i < sendArr.length; i++) { tmpSend = "#data/jsonData=" + encodeURIComponent(sendArr[i]); SHARETHIS.sendArray.push(tmpSend) } SHARETHIS.sendArray.push("#data/jsonData=done") }, this.sendData = function() { xInt = setInterval(SHARETHIS.sendJSON, 50) }, this.sendJSON = function() { if (SHARETHIS.sendNum < SHARETHIS.sendArray.length) { window.frames.stframe.location.replace(SHARETHIS.frameUrl + SHARETHIS.sendArray[SHARETHIS.sendNum]) } else { clearInterval(xInt) } SHARETHIS.sendNum++ }, this.defer = function(f) { if (this.ready) { f.apply(document, [SHARETHIS]) } else { this.readyList.push(function() { return f.apply(this, [SHARETHIS]) }) } }, this.onReady = function() { SHARETHIS.ready = true; for (var i = 0; i < SHARETHIS.readyList.length; ++i) { SHARETHIS.readyList[i].apply(document, [SHARETHIS]) } }, this.load = function(t, opts) { var e = document.createElement(t); for (var i in opts) { e.setAttribute(i, opts[i]) } try { document.getElementsByTagName("head")[0].appendChild(e) } catch (err) { document.body.appendChild(e) } }, this.hideEmbeds = function() { var embeds = document.getElementsByTagName("embed"); for (var i = 0; i < embeds.length; i++) { embeds[i].style.visibility = "hidden" } }, this.showEmbeds = function() { var embeds = document.getElementsByTagName("embed"); for (var i = 0; i < embeds.length; i++) { embeds[i].style.visibility = "visible" } }, this.manageHashTracking = function(url_str) { try { var sts_hash = parseFloat(this.sessionID_time).toString(36) + "." + parseFloat(this.sessionID_rand).toString(36); var url_hash = url_str.split("#", 2)[1]; var hash_regexp = new RegExp("STS=([^&\\s]+)(&SHR=([^&\\s]+))?", "i"); var match_results = null; if (typeof (url_hash) != "undefined") { match_results = url_hash.match(hash_regexp) } if (match_results != null && match_results.length > 1) { var raw_str = match_results[1]; var temp_arr = raw_str.split("."); if (temp_arr != null) { this.referrer_sts = parseInt(temp_arr[0], 36) + "." + parseInt(temp_arr[1], 36); if (match_results.length > 2 && match_results[3] != null) { this.shr_flag = match_results[3] } } } if (this.hash_flag == true && (match_results != null || url_str.split("#", 2).length < 2)) { var uri_part = url_str.split("#", 2)[0]; url_str = uri_part + "#STS=" + sts_hash; window.location.replace(url_str) } return url_str } catch (err) { return url_str } }, this.log = function(event, obj, source) { if (obj && obj.properties && obj.properties.url) { url = this.manageHashTracking(obj.properties.url) } else { url = this.manageHashTracking(document.URL) } var lurl = "http://l.sharethis.com/log?event="; if (event == "pview") { lurl = "http://l.sharethis.com/pview?event=" } lurl += event; if (source != null) { lurl += "&source=" + source } lurl += "&publisher=" + encodeURIComponent(SHARETHIS.meta.publisher) + "&hostname=" + encodeURIComponent(SHARETHIS.meta.hostname) + "&location=" + encodeURIComponent(SHARETHIS.meta.location) + "&url=" + encodeURIComponent(cleanURL(url)) + "&sessionID=" + SHARETHIS.sessionID + "&fpc=" + SHARETHIS.fpc + "&ts" + (new Date()).getTime() + "." + SHARETHIS.counter++ + "&r_sessionID=" + this.referrer_sts + "&hash_flag=" + SHARETHIS.hash_flag + "&shr=" + this.shr_flag; var logger2 = new Image(1, 1); logger2.src = lurl; logger2.onload = function() { return } }, this.getBool = function(variable) { var vtype; var toReturn; if (variable != null) { switch (typeof (variable)) { case "boolean": vtype = "boolean"; return variable; break; case "number": vtype = "number"; if (variable == 0) { toReturn = false } else { toReturn = true } break; case "string": vtype = "string"; if (variable == "true" || variable == "1") { toReturn = true } else { if (variable == "false" || variable == "0") { toReturn = false } else { if (variable.length > 0) { toReturn = true } else { if (variable.length == 0) { toReturn = false } } } } break } return toReturn } }, this.onStFrameLoad = function() { if (SHARETHIS.frameLoaded === false) { SHARETHIS.widgetCalled = true; SHARETHIS.frameLoaded = true; if (SHARETHIS.st_clicked == true) { setTimeout("SHARETHIS.st_clicked_o.popup()", 1000) } } }; this.readyTest = function() { if (SHARETHIS.frameReady === true && SHARETHIS.ready === true) { clearInterval(SHARETHIS.readyTestInterval); SHARETHIS.onStFrameLoad() } }; this.sendEvent = function(name, value) { var tmpSend = "#widget/" + name + "=" + value; window.frames.stframe.location.replace(SHARETHIS.frameUrl + tmpSend) }; this.initialize = function(options) { for (o in options) { options[o] = options[o].toString() } if (_thisScript == null) { var _slist = document.getElementsByTagName("script"); var _thisScript3 = _slist[_slist.length - 1]; var ST_script_src = _thisScript3.src } else { var ST_script_src = _thisScript.src } this.frameUrl = "http://wd.sharethis.com/share3x/lightbox.d143da6534364d0182db4d7cc94729bd.html"; this.postUrl = "http://wd.sharethis.com/api/setCache_ws.php"; this.options = options || {}; if (this.options.button) { this.options.button = this.getBool(this.options.button.toString()) } if (this.options.popup) { this.options.popup = this.getBool(this.options.popup.toString()) } if (this.options.embeds) { this.options.embeds = this.getBool(this.options.embeds.toString()) } if (this.options.publisher) { this.meta.publisher = this.options.publisher } var tmp_css = "http://w.sharethis.com/button/css/sharethis.f64427fa606e8f952d0df3f0d2f21b3b.css"; try { if (this.options.css) { tmp_css = this.options.css.toString() } } catch (err) { } var css = tmp_css; this.load("link", { href: (this.options.css ? this.options.css : css), rel: "stylesheet", type: "text/css" }); try { this.mainstframe = document.createElement('<iframe name="stframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>'); this.mainstframe.onreadystatechange = function() { if (SHARETHIS.mainstframe.readyState === "complete") { SHARETHIS.frameReady = true } } } catch (err) { this.mainstframe = document.createElement("iframe"); this.mainstframe.allowTransparency = "true"; this.mainstframe.setAttribute("allowTransparency", "true"); this.mainstframe.onload = function() { SHARETHIS.frameReady = true } } this.mainstframe.id = "stframe"; this.mainstframe.className = "stframe"; this.mainstframe.name = "stframe"; this.mainstframe.frameBorder = "0"; this.mainstframe.scrolling = "no"; this.mainstframe.width = "353px"; this.mainstframe.height = "598px"; this.mainstframe.style.top = "0px"; this.mainstframe.style.left = "0px"; try { this.fp = document.createElement('<iframe name="stpostframe" style="visibility:hidden"></iframe>') } catch (err) { this.fp = document.createElement("iframe"); this.fp.style.visibility = "hidden" } this.fp.name = "stpostframe"; this.fp.width = "0px"; this.fp.height = "0px"; this.fp.src = ""; var init = "#init"; this.newwinfrag = "#popup"; for (var o in options) { if (SHARETHIS_tstOptions(o) == true) { init = init + "/" + o + "=" + encodeURIComponent(options[o]); this.newwinfrag = this.newwinfrag + "/" + o + "=" + encodeURIComponent(options[o]) } } this.initstr = init; this.sendInit.push(this.initstr); this.mainstframe.src = this.frameUrl + this.sendInit[0]; this.wrapper = document.createElement("div"); this.wrapper.id = "stwrapper"; this.wrapper.className = "stwrapper"; this.wrapper.style.visibility = "hidden"; this.wrapper.style.top = "-999px"; this.wrapper.style.left = "-999px"; this.closewrapper = document.createElement("div"); this.closewrapper.className = "stclose"; this.closewrapper.onclick = stcloseWidget; this.wrapper.appendChild(this.closewrapper); this.wrapper.appendChild(this.mainstframe); this.defer(function() { SHARETHIS.bodyLoaded = true; var burl = "http://l.sharethis.com/log?event=bview"; var additional = dbrInfo(); if (additional == false) { additional = "" } burl += "&publisher=" + encodeURIComponent(SHARETHIS.meta.publisher) + "&hostname=" + encodeURIComponent(SHARETHIS.meta.hostname) + "&location=&url=&sessionID=" + SHARETHIS.sessionID + "&fpc=" + SHARETHIS.fpc + "&ts" + (new Date()).getTime() + "." + SHARETHIS.counter++ + "&count=" + SHARETHIS.buttonCount + additional; var logger3 = new Image(1, 1); logger3.src = burl; logger3.onload = function() { return }; if (SHARETHIS_TOOLBAR === true) { document.body.appendChild(SHARETHIS.fp); SHARETHIS.postPopup(); SHARETHIS_TOOLBAR_DIV.appendChild(SHARETHIS.wrapper) } if (SHARETHIS.popupExists === true && SHARETHIS.popupCalled === false) { document.body.appendChild(SHARETHIS.fp); SHARETHIS.postPopup(); SHARETHIS.popupCalled = true } if (SHARETHIS.widgetCalled === false && SHARETHIS.widgetExists === true) { parent.document.body.appendChild(SHARETHIS.wrapper); try { window.frames.stframe.location.replace(SHARETHIS.mainstframe.src) } catch (err) { } SHARETHIS.readyTestInterval = setInterval(SHARETHIS.readyTest, 250) } try { var stfrm = document.getElementById("stframe"); stfrm.onmouseover = function() { stCancelClose(); SHARETHIS.inTime = (new Date()).getTime() }; stfrm.onmouseout = function() { SHARETHIS.outTime = (new Date()).getTime(); SHARETHIS.openDuration = (SHARETHIS.outTime - SHARETHIS.inTime) / 1000; stClose() }; document.body.onclick = function() { if (SHARETHIS.buttonClicked == false) { SHARETHIS.stopClosing = false; SHARETHIS.openDuration = 0; stClose(100) } } } catch (err) { } }); if (typeof (window.addEventListener) != "undefined") { window.addEventListener("load", this.onReady, false) } else { if (typeof (document.addEventListener) != "undefined") { document.addEventListener("load", this.onReady, false) } else { if (typeof window.attachEvent != "undefined") { window.attachEvent("onload", this.onReady) } } } }; this.initialize(options) } var closetimeout; function stClose(a) { if (!a) { a = 1000 } if (stautoclose == true && SHARETHIS_TOOLBAR == false) { if (SHARETHIS.openDuration < 2 && SHARETHIS.stopClosing == false) { closetimeout = setTimeout("stcloseWidget()", a) } else { SHARETHIS.stopClosing = true } } } function stCancelClose() { clearTimeout(closetimeout); SHARETHIS.buttonClicked = true; setTimeout(function() { SHARETHIS.buttonClicked = false }, 100) } function stcloseWidget() { st_showing = false; SHARETHIS.wrapper.style.visibility = "hidden"; SHARETHIS.mainstframe.style.visibility = "hidden"; SHARETHIS.wrapper.style.top = "-999px"; SHARETHIS.wrapper.style.left = "-999px"; SHARETHIS.showEmbeds(); SHARETHIS.sendEvent("screen", "home"); SHARETHIS.sendArray = [] } function SHARETHIS_tstOptions(a) { var d = ["type", "title", "summary", "content", "url", "icon", "category", "updated", "published", "author", "button", "onmouseover", "buttonText", "popup", "offsetLeft", "offsetTop", "embeds", "autoclose", "publisher", "tabs", "services", "charset", "headerbg", "inactivebg", "inactivefg", "linkfg", "style", "send_services", "exclusive_services", "post_services", "headerfg", "headerType", "headerTitle", "sessionID", "tracking", "fpc", "ads", "pUrl", "hash_flag"]; var c = false; for (var b = 0; b < d.length; b++) { if (a === d[b]) { c = true } } return c } function SHARETHIS_TEST() { SHARETHIS.mainstframe.src = SHARETHIS.frameUrl + "#test" } function _stFpc() { if (!document.domain) { return false } var g = _stGetFpc("__unam"); if (g == false) { var c = Math.round(Math.random() * 2147483647); c = c.toString(16); var h = (new Date()).getTime(); h = h.toString(16); var e = ""; var a = _stGetD(); a = a.split(/\./)[1]; if (!a) { return false } e = _stdHash(a) + "-" + h + "-" + c + "-1"; g = e; _stSetFpc(g) } else { var b = g; var f = b.split(/\-/); if (f.length == 4) { var d = Number(f[3]); d++; b = f[0] + "-" + f[1] + "-" + f[2] + "-" + d; g = b; _stSetFpc(g) } } return g } function _stSetFpc(g) { var a = "__unam"; var c = new Date; var i = c.getFullYear(); var f = c.getMonth() + 9; var h = c.getDate(); var d = a + "=" + escape(g); if (i) { var b = new Date(i, f, h); d += "; expires=" + b.toGMTString() } var e = _stGetD(); d += "; domain=" + escape(e) + ";path=/"; document.cookie = d } function _stGetD() { var b = document.domain.split(/\./); var a = ""; if (b.length > 1) { a = "." + b[b.length - 2] + "." + b[b.length - 1] } return a } function _stGetFpc(b) { var a = document.cookie.match("(^|;) ?" + b + "=([^;]*)(;|$)"); if (a) { return (unescape(a[2])) } else { return false } } function _stdHash(a) { var e = 0, d = 0; for (var c = a.length - 1; c >= 0; c--) { var b = parseInt(a.charCodeAt(c)); e = ((e << 8) & 268435455) + b + (b << 12); if ((d = e & 161119850) != 0) { e = (e ^ (d >> 20)) } } return e.toString(16) } var _thisScript = null; function getShareThisScript() { var d = document.getElementsByTagName("script"); var c = null; for (var b = 0; b < d.length; b++) { var a = d[b].src; if (a.search(/.*sharethis.*\/button/) >= 0) { c = d[b] } else { if (a.search(/.*sharethis.*\/widget\/\?/) >= 0 || a.search(/.*sharethis.*\/widget\/index/) >= 0 || a.search(/.*sharethis.*\/widget\/\?&/) >= 0) { c = d[b] } } } return c } function dbrInfo() { var a = document.referrer; if (a && a.length > 0) { var c = /(http:\/\/)(.*?)\/.*/i; var b = /(^.*\?)(.*)/ig; var f = ""; var e = a.replace(c, "$2"); if (e.length > 0) { f += "&refDomain=" + e } else { return false } var d = a.replace(b, "$2"); if (d.length > 0) { f += "&refQuery=" + encodeURIComponent(d) } return f } else { return false } } _thisScript = getShareThisScript(); if (_thisScript) { SHARETHIS = new ShareThis(parseQueryString(_thisScript.src)) } else { SHARETHIS = new ShareThis() } SHARETHIS.log("pview", null, null) } var _slist = document.getElementsByTagName("script"); var _thisScript2 = _slist[_slist.length - 1]; if (_thisScript2 && _thisScript2.parentNode.tagName != "HEAD" && typeof (_sttoolbar) == "undefined") { var obj = SHARETHIS.addEntry() } } catch (err) { };