!function(a){function b(){return"Microsoft Internet Explorer"===a.navigator.appName&&t.test(a.navigator.userAgent)&&a.XDomainRequest}function c(c,d){var e;b()?(e=new a.XDomainRequest,e.open("get",c)):(e=new XMLHttpRequest,e.open("get",c,!0)),e.ontimeout=function(){d(new Error("Timeout getting publisher config"))},e.onerror=function(){d(new Error("Error getting publisher config"))},e.onprogress=function(){},e.onload=function(){var a={};try{a=JSON.parse(e.responseText)}catch(a){return d(new Error("Error parsing responseText "+a.message))}d(null,a)},setTimeout(function(){e.send()},0)}function d(b,d,e){var f=v[b];if(!f)return e(new Error("Missing endpoint for environment "+b));f=a.location.protocol.toString()+f,f+="/"+d+".json",c(f,e)}function e(a,b){a.document.body?b():setTimeout(function(){e(a,b)},10)}function f(a){var b,c,d=!1;try{b=JSON.parse(localStorage.getItem("SHR_V2_OVERRIDES"))}catch(a){}return b&&b.script&&!window.SHR_OVERRIDE_MODE&&(c=document.createElement("script"),c.setAttribute("data-shr-assetbase",b.script.assetbase),c.setAttribute("data-shr-entrypoint",b.script.entrypoint),c.src=b.script.src,window.SHR_OVERRIDE_MODE=!0,e(a,function(){a.document.body.appendChild(c)}),d=!0),d}function g(){for(var b,c,d=a.document.getElementsByTagName("script"),e=d.length;e--;){if(c=d[e],c.hasAttribute(o))return c;r.test(c.src)&&(b=c)}return b}function h(a,b,c,d,e){function f(a){clearTimeout(h),l||(l=!0,d(a))}function g(){function b(){var a;if(!l){if((a=document.getElementById(k))&&a.contentWindow.SHR_FRAME)return f(a.contentWindow);h=setTimeout(b,100)}}function d(a){if(j.contentWindow)return a();setTimeout(d,10)}var e,g;c.appendChild(j),d(function(){try{j.contentWindow.document.open()}catch(b){e='javascript:var d=document.open();d.domain="'+a.document.domain+'";',j.src=e+"void(0);"}g=j.contentWindow.document,g.write(i),g.close(),j.contentWindow.__ready=f,b()})}var h,i="<!doctype html><html><head><title></title></head><body>",j=a.document.createElement("iframe"),k="SHR-"+Math.round(1e3*Math.random())+1,l=!1;return d=d||function(){},i+=b,i+='<script type="text/javascript">setTimeout(function() {window.__ready(window)}, 1);<\/script>',i+="</body></html>",j.id=k,e?e(j,g):(j.style.display="none",j.frameBorder="0",setTimeout(g,1)),j}function i(){var a,b,c=!0;return"Microsoft Internet Explorer"===navigator.appName&&(a=navigator.userAgent,b=new RegExp("MSIE ([5-8]{1,}[.0-8]{0,})"),null!=b.exec(a)&&(c=!1)),c}function j(a){return a.bookmarklet?a.assetbase:/[0-9a-f]{5,40}/.test(u)?(a.assetbase||p)+u+"/":a.assetbase||p}function k(a){for(var b,c,d=/^data-shr-/,e={},f=0,g=a.attributes,h=g.length;f<h;f++)c=g[f],d.test(c.nodeName)&&(b=c.nodeName.replace(d,""),e[b]=c.value);return e.entrypoint=e.entrypoint||q,e.namespace=e.namespace||s,e.assetbase=j(e),e}function l(a,b){function c(c){d(b.environment||"production",c,function(a,b){e(c,b||{})}),a.init=function(){}}var e=a.init;b.siteid?c(b.siteid):a.init=c}function m(a){function b(){}function c(a,b,c){a[b]=function(){var d=Array.prototype.slice.call(arguments);a.push(c.concat(d)),a[b].args=d}}var d,j="",m={};return i()?(d=g(a))?(d.parentNode.removeChild(d),w=k(d),w.assetbase?(j+='<script type="text/javascript"> window.SHR_FRAME = true;<\/script>',j+='<script type="text/javascript"> window.settings = '+JSON.stringify(w)+";<\/script>",j+='<script type="text/javascript" src="',j+=w.assetbase+w.entrypoint||"shrMain.min.js",j+='"><\/script>',w.namespace===s&&(b.prototype.Bookmarklet=!0,b.isV2=!0,c(b,"init",["init"]),c(b,"init_bookmarklet",["share",{service:"all"}]),l(b,w),m=b),m.commands=[],m.push=function(a){m.commands.push(a)},f(a)?(m.override=!0,m):(e(a,function(){h(a,j,a.document.body)}),m)):{err:"NO ASSET BASE CONFIGURED"}):{err:"COULD NOT LOCATE SCRIPT TAG"}:{err:"NOT SUPPORTED"}}var n,o="data-shr-assetbase",p="http://dsms0mj1bbhn4.cloudfront.net/v2/",q="shrMain.min.js",r=/shareaholic\.js/,s="Shareaholic",t=/MSIE 9\./,u="1df8978b952119d4bb3204c83cab7575d1f5241a",v={dev:"http://s3.amazonaws.com/publisher_configurations.development.shareaholic",stage:"http://s3.amazonaws.com/publisher_configurations.staging.shareaholic",production:"http://s3.amazonaws.com/publisher_configurations.shareaholic"},w={},x=window.SHR_NAMESPACE||s;a.SHR_FRAME&&"function"==typeof define&&define.amd?define(function(){return h}):(n=m(a),x=w.namespace||x,"[object Array]"===Object.prototype.toString.call(a[x])?(n.commands=a[x],a[x]=n):a[x]=a[x]||n)}(this);