var STV = "4.2.0-rc1";
ST_JSON = new
function () {
this.decode = function () {
var filter, result, self, tmp;
if ($$("toString")) {
switch (arguments.length) {
case 2:
self = arguments[0];
filter = arguments[1];
break;
case 1:
if ($[typeof arguments[0]](arguments[0]) === Function) {
self = this;
filter = arguments[0]
} else {
self = arguments[0]
}
break;
default:
self = this;
break
}
if (rc.test(self)) {
try {
result = e("(".concat(self, ")"));
if (filter && result !== null && (tmp = $[typeof result](result)) && (tmp === Array || tmp === Object)) {
for (self in result) {
result[self] = v(self, result) ? filter(self, result[self]) : result[self]
}
}
} catch(z) {}
} else {
throw new JSONError("bad data")
}
}
return result
};
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(G) {
var E = {};
if (G == undefined) {
G = location.search ? location.search : ""
}
if (G.charAt(0) == "?") {
G = G.substring(1)
}
var C = G.indexOf("?");
if (C) {
G = G.substring(C + 1)
}
C = G.indexOf("#");
if (C) {
G = G.substring(C + 1)
}
G = G.replace("+", " ");
var B = G.split(/[&;]/g);
for (var C = 0; C < B.length; C++) {
var F = B[C].split("=");
var A = decodeURIComponent(F[0]);
var D = decodeURIComponent(F[1]);
if (!E[A]) {
E[A] = []
}
E[A].push((F.length == 1) ? "" : D)
}
return E
}
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
function hex_sha1(A) {
return binb2hex(core_sha1(str2binb(A), A.length * chrsz))
}
function core_sha1(M, H) {
M[H >> 5] |= 128 << (24 - H % 32);
M[((H + 64 >> 9) << 4) + 15] = H;
var O = Array(80);
var N = 1732584193;
var L = -271733879;
var K = -1732584194;
var J = 271733878;
var I = -1009589776;
for (var E = 0; E < M.length; E += 16) {
var G = N;
var F = L;
var D = K;
var C = J;
var A = I;
for (var B = 0; B < 80; B++) {
if (B < 16) {
O[B] = M[E + B]
} else {
O[B] = rol(O[B - 3] ^ O[B - 8] ^ O[B - 14] ^ O[B - 16], 1)
}
var P = safe_add(safe_add(rol(N, 5), sha1_ft(B, L, K, J)), safe_add(safe_add(I, O[B]), sha1_kt(B)));
I = J;
J = K;
K = rol(L, 30);
L = N;
N = P
}
N = safe_add(N, G);
L = safe_add(L, F);
K = safe_add(K, D);
J = safe_add(J, C);
I = safe_add(I, A)
}
return Array(N, L, K, J, I)
}
function sha1_ft(B, A, D, C) {
if (B < 20) {
return (A & D) | ((~A) & C)
}
if (B < 40) {
return A ^ D ^ C
}
if (B < 60) {
return (A & D) | (A & C) | (D & C)
}
return A ^ D ^ C
}
function sha1_kt(A) {
return (A < 20) ? 1518500249 : (A < 40) ? 1859775393 : (A < 60) ? -1894007588 : -899497514
}
function safe_add(A, D) {
var C = (A & 65535) + (D & 65535);
var B = (A >> 16) + (D >> 16) + (C >> 16);
return (B << 16) | (C & 65535)
}
function rol(A, B) {
return (A << B) | (A >>> (32 - B))
}
function str2binb(D) {
var C = Array();
var A = (1 << chrsz) - 1;
for (var B = 0; B < D.length * chrsz; B += chrsz) {
C[B >> 5] |= (D.charCodeAt(B / chrsz) & A) << (32 - chrsz - B % 32)
}
return C
}
function binb2hex(C) {
var B = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var D = "";
for (var A = 0; A < C.length * 4; A++) {
D += B.charAt((C[A >> 2] >> ((3 - A % 4) * 8 + 4)) & 15) + B.charAt((C[A >> 2] >> ((3 - A % 4) * 8)) & 15)
}
return D
}
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 mix = {};
for (var i = 0, l = arguments.length; i < l; i++) {
var object = arguments[i];
if (SHARETHIS_typeof(object) != "object") {
continue
}
for (var key in object) {
var op = object[key],
mp = mix[key];
mix[key] = (mp && SHARETHIS_typeof(op) == "object" && SHARETHIS_typeof(mp) == "object") ? SHARETHIS_merge(mp, op) : SHARETHIS_unlink(op)
}
}
return mix
}
function SHARETHIS_unlink(object) {
var SHARETHIS_unlinked;
switch (SHARETHIS_typeof(object)) {
case "object":
SHARETHIS_unlinked = {};
for (var p in object) {
SHARETHIS_unlinked[p] = SHARETHIS_unlink(object[p])
}
break;
case "hash":
SHARETHIS_unlinked = SHARETHIS_unlink(object.getClean());
break;
case "array":
SHARETHIS_unlinked = [];
for (var i = 0, l = object.length; i < l; i++) {
SHARETHIS_unlinked[i] = SHARETHIS_unlink(object[i])
}
break;
default:
return object
}
return SHARETHIS_unlinked
}
function SHARETHIS_typeof(object) {
if (SHARETHIS_isArray(object)) {
return "array"
} else {
return typeof object
}
}
function SHARETHIS_isArray(object) {
var a = object != null && typeof object == "object" && "splice" in object && "join" in object;
return a
}
function cleanURL(url) {
var url_hash = window.location.hash;
var hash_regexp = new RegExp("STS=", "i");
var match_results = url_hash.match(hash_regexp);
if (match_results != null) {
var url_arr = url.split("#");
return url_arr[0]
} else {
return url
}
}
function Shareable(properties, options) {
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: false,
buttonText: "ShareThis",
popup: false,
offsetLeft: 0,
offsetTop: 0,
embeds: false,
autoclose: false
};
this.initialize = function (properties, options) {
this.options = SHARETHIS_merge(this.options, options);
this.properties = SHARETHIS_merge(this.properties, properties);
if (options.target) {
var o = this;
options.target.onclick = function () {
o.share()
};
if (options.mouseover) {
options.target.onmouseover = function () {
o.share()
}
}
}
};
this.initialize(properties, options);
this.share = function () {
frames.stframe.location = this.frameUrl + "#getObject/" + SHARETHIS.guid + "/" + this.idx
};
this.attachButton = function (newbutton) {
this.element = newbutton;
newbutton.setAttribute("st_page", "home");
if (this.options.onmouseover) {
newbutton.onmouseover = this.popup
} else {
newbutton.onclick = this.popup
}
};
this.attachChicklet = function (type, chicklet) {
switch (type) {
case "facebook":
chicklet.setAttribute("st_dest", "facebook.com");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_dest", "facebook.com")
} catch(err) {}
}
chicklet.onclick = this.chicklet;
break;
case "digg":
chicklet.setAttribute("st_dest", "digg.com");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_dest", "digg.com")
} catch(err) {}
}
chicklet.onclick = this.chicklet;
break;
case "yahoo_buzz":
chicklet.setAttribute("st_dest", "buzz.yahoo.com");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_dest", "buzz.yahoo.com")
} catch(err) {}
}
chicklet.onclick = this.chicklet;
break;
case "email":
chicklet.setAttribute("st_page", "send");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_page", "send")
} catch(err) {}
}
if (this.options.onmouseover) {
chicklet.onmouseover = this.popup
} else {
chicklet.onclick = this.popup
}
break;
case "twitter":
chicklet.setAttribute("st_page", "post|twitter");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_page", "post|twitter")
} catch(err) {}
}
if (this.options.onmouseover) {
chicklet.onmouseover = this.popup
} else {
chicklet.onclick = this.popup
}
break;
case "myspace":
chicklet.setAttribute("st_dest", "myspace.com");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_dest", "myspace.com")
} catch(err) {}
}
chicklet.onclick = this.chicklet;
break;
case "aim":
chicklet.setAttribute("st_dest", "aim.com");
var children = chicklet.childNodes;
for (var i = 0; i < children.length; i++) {
var child = children[i];
try {
child.setAttribute("st_dest", "aim.com")
} catch(err) {}
}
chicklet.onclick = this.chicklet;
break
}
}
}
function ShareThis(options) {
this.version = 2.03;
this.tmpSendData = "";
this.sendArray = [];
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;
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.buttonCount = 0;
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." + STV + ".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 == "65ab919d-0cc6-44bb-909e-e3db6f8dde10" || this.meta.publisher == "fe2f9898-54d4-4dbc-bb67-7fb1e31708f4" || this.meta.publisher == "f72be8c8-fc0c-4475-adef-0e1580eb4640" || this.meta.publisher == "f40ba575-daf9-47ed-9505-3d9c7395b502" || this.meta.publisher == "e4c98b65-769f-4fd3-8437-ea9a3976f51d" || this.meta.publisher == "d0d0d8a8-d1f8-49ff-9318-fed5383cff80" || this.meta.publisher == "68e35b44-7dd1-4aa1-8f12-c1c92418d281" || this.meta.publisher == "aecb031f-6ebb-42df-b39b-b24889f081f3" || this.meta.publisher == "3931b05c-0a1a-4502-b191-5cc59416aefc" || this.meta.publisher == "c9a3afcc-97a1-44be-b188-df04c180892d" || this.meta.publisher == "3a120d3c-ef3a-4ba3-8d88-36fbcad4690b" || this.meta.publisher == "5e4c2d22-ba7d-4550-9e5c-6a3f0c812fc2" || this.meta.publisher == "4fa1282f-c1e4-4b3b-8a32-3952b1efad84" || this.meta.publisher == "a5c90e3a-1cbd-44fc-a491-28f6729a38f4") {
o.options.onmouseover = true
}
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) {
o.options.autoclose = true;
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=" + oidx + "/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=" + oidx + "/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) {
SHARETHIS.sendArray.push("#show/guid_index=" + oidx + 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=" + oidx + 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") {
SHARETHIS.wrapper.onmouseover = 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) {
document.write('')
}
} 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 () {
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 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] = 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.postEntries();
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." + STV + ".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." + STV + ".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('');
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('')
} 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.sendArray.push(this.initstr);
this.mainstframe.src = this.frameUrl + this.sendArray[0];
this.sendNum++;
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 () {
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) {
document.body.appendChild(SHARETHIS.wrapper);
try {
window.frames.stframe.location.replace(SHARETHIS.mainstframe.src)
} catch(err) {}
SHARETHIS.readyTestInterval = setInterval(SHARETHIS.readyTest, 250)
}
});
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() {
if (stautoclose == true) {
closetimeout = setTimeout("stcloseWidget()", 1500)
}
}
function stCancelClose() {
clearTimeout(closetimeout)
}
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")
}
function SHARETHIS_tstOptions(tstStr) {
var opt_arr = ["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", "post_services", "headerfg", "headerType", "headerTitle", "sessionID", "tracking", "fpc", "ads", "pUrl", "hash_flag"];
var retVal = false;
for (var i = 0; i < opt_arr.length; i++) {
if (tstStr === opt_arr[i]) {
retVal = true
}
}
return retVal
}
function SHARETHIS_TEST() {
SHARETHIS.mainstframe.src = SHARETHIS.frameUrl + "#test"
}
function _stFpc() {
if (!document.domain) {
return false
}
var cVal = _stGetFpc("__unam");
if (cVal == false) {
var bigRan = Math.round(Math.random() * 2147483647);
bigRan = bigRan.toString(16);
var time = (new Date()).getTime();
time = time.toString(16);
var guid = "";
var hashD = _stGetD();
hashD = hashD.split(/\./)[1];
if (!hashD) {
return false
}
guid = _stdHash(hashD) + "-" + time + "-" + bigRan + "-1";
cVal = guid;
_stSetFpc(cVal)
} else {
var cv = cVal;
var cvArray = cv.split(/\-/);
if (cvArray.length == 4) {
var num = Number(cvArray[3]);
num++;
cv = cvArray[0] + "-" + cvArray[1] + "-" + cvArray[2] + "-" + num;
cVal = cv;
_stSetFpc(cVal)
}
}
return cVal
}
function _stSetFpc(value) {
var name = "__unam";
var current_date = new Date;
var exp_y = current_date.getFullYear();
var exp_m = current_date.getMonth() + 9;
var exp_d = current_date.getDate();
var cookie_string = name + "=" + escape(value);
if (exp_y) {
var expires = new Date(exp_y, exp_m, exp_d);
cookie_string += "; expires=" + expires.toGMTString()
}
var domain = _stGetD();
cookie_string += "; domain=" + escape(domain) + ";path=/";
document.cookie = cookie_string
}
function _stGetD() {
var str = document.domain.split(/\./);
var domain = "";
if (str.length > 1) {
domain = "." + str[str.length - 2] + "." + str[str.length - 1]
}
return domain
}
function _stGetFpc(cookie_name) {
var results = document.cookie.match("(^|;) ?" + cookie_name + "=([^;]*)(;|$)");
if (results) {
return (unescape(results[2]))
} else {
return false
}
}
function _stdHash(dd) {
var hash = 0,
salt = 0;
for (var i = dd.length - 1; i >= 0; i--) {
var charCode = parseInt(dd.charCodeAt(i));
hash = ((hash << 8) & 268435455) + charCode + (charCode << 12);
if ((salt = hash & 161119850) != 0) {
hash = (hash ^ (salt >> 20))
}
}
return hash.toString(16)
}
var _thisScript = null;
function getShareThisScript() {
var _slist = document.getElementsByTagName("script");
var rScript = null;
for (var i = 0; i < _slist.length; i++) {
var temp = _slist[i].src;
if (temp.search(/.*sharethis.*\/button/) >= 0) {
rScript = _slist[i]
} else { if (temp.search(/.*sharethis.*\/widget\/\?/) >= 0 || temp.search(/.*sharethis.*\/widget\/index/) >= 0 || temp.search(/.*sharethis.*\/widget\/\?&/) >= 0) {
rScript = _slist[i]
}
}
}
return rScript
}
function dbrInfo() {
var dbr = document.referrer;
if (dbr && dbr.length > 0) {
var re1 = /(http:\/\/)(.*?)\/.*/i;
var re2 = /(^.*\?)(.*)/ig;
var retVal = "";
var domain = dbr.replace(re1, "$2");
if (domain.length > 0) {
retVal += "&refDomain=" + domain
} else {
return false
}
var query = dbr.replace(re2, "$2");
if (query.length > 0) {
retVal += "&refQuery=" + encodeURIComponent(query)
}
return retVal
} 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) {};