var cookie=new function(){return{setCookie:function(d,f,h){if(h){var c=new Date();c.setTime(c.getTime()+(h*24*60*60*1000));var a="; expires="+c.toGMTString()}else{var a=""}var b=d+"="+escape(f)+a;var g=document.domain.split(/\./);var e="";if(g.length>1){e="."+g[g.length-2]+"."+g[g.length-1]}b+="; domain="+escape(e)+";path=/";document.cookie=b},getCookie:function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}},deleteCookie:function(a){var c="/";var d=document.domain.split(/\./);var b="";if(d.length>1){b="."+d[d.length-2]+"."+d[d.length-1]}document.cookie=a+"="+((c)?";path="+c:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}}();if(typeof(stLight)=="undefined"&&typeof(SHARETHIS)=="undefined"){var stRecentServices=false;if(typeof(switchTo5x)=="undefined"){switchTo5x=false;var rNumFor5x=cookie.getCookie("__switchTo5x");if(rNumFor5x==false){var rNumFor5x=1+Math.floor(Math.random()*100);cookie.setCookie("__switchTo5x",rNumFor5x,"300")}var testLimitFor5x=50;if(rNumFor5x<=testLimitFor5x){switchTo5x=true}}stLight=new function(){this.publisher=null;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;this.fpc=null;this.counter=0;this.readyRun=false;this.meta={hostname:document.location.host,location:document.location.pathname};this.loadedFromBar=false};stLight.onReady=function(){stLight.readyRun=true;if(stLight.publisher==null){if(typeof(window.console)!=="undefined"){try{console.log("Please specify a ShareThis Publisher Key \nFor help, contact support@sharethis.com")}catch(a){}}}var b="share4x";if(switchTo5x){b="share5x"}if(stLight.hasButtonOnPage()){if(stLight.loadedFromBar){if(switchTo5x){b="bar_share5x"}else{b="bar_share4x"}}}else{if(stLight.loadedFromBar){b="bar"}}stLight.log("pview",b,"");stWidget.options.sessionID=stLight.sessionID;stWidget.options.fpc=stLight.fpc;stButtons.onReady()};stLight.log=function(d,e,c){var f=(("https:"==document.location.protocol)?"https://l.":"http://l.")+"sharethis.com/log?event=";if(d=="pview"){f=(("https:"==document.location.protocol)?"https://l.":"http://l.")+"sharethis.com/pview?event="}var a=stLight.dbrInfo();if(a==false){a=""}f+=d;f+="&source="+e;if(c!=""){f+="&type="+c}f+="&publisher="+encodeURIComponent(stLight.publisher)+"&hostname="+encodeURIComponent(stLight.meta.hostname)+"&location="+encodeURIComponent(stLight.meta.location)+"&url="+encodeURIComponent(document.location.href)+"&sessionID="+stLight.sessionID+"&fpc="+stLight.fpc+"&ts"+(new Date()).getTime()+"."+stLight.counter+++a;var b=new Image(1,1);b.src=f;b.onload=function(){return};if(d=="pview"){stLight.createSegmentFrame()}};stLight._stFpc=function(){if(!document.domain||document.domain.search(/\.gov/)>0){return false}var g=stLight._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=stLight._stGetD();a=a.split(/\./)[1];if(!a){return false}e=stLight._stdHash(a)+"-"+h+"-"+c+"-1";g=e;stLight._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;stLight._stSetFpc(g)}}return g};stLight._stSetFpc=function(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=stLight._stGetD();d+="; domain="+escape(e)+";path=/";document.cookie=d};stLight._stGetD=function(){var b=document.domain.split(/\./);var a="";if(b.length>1){a="."+b[b.length-2]+"."+b[b.length-1]}return a};stLight._stGetFpc=function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}};stLight._stdHash=function(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)};stLight._thisScript=null;stLight.getShareThisLightScript=function(){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\/light.*/)>=0){c=d[b]}}return c};stLight.dbrInfo=function(){var a=document.referrer;var d=new RegExp(document.domain,"gi");if(d.test(a)==true){return false}if(a&&a.length>0){var c=/(http:\/\/)(.*?)\/.*/i;var b=/(^.*\?)(.*)/ig;var g="";var f=a.replace(c,"$2");if(f.length>0){g+="&refDomain="+f}else{return false}var e=a.replace(b,"$2");if(e.length>0){g+="&refQuery="+encodeURIComponent(e)}return g}else{return false}};stLight.odjs=function(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.script=document.createElement("script");this.script.setAttribute("type","text/javascript");this.script.setAttribute("src",this.scriptSrc);this.script.onload=b;this.script.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){b()}};this.head.appendChild(this.script)};if(window.document.readyState=="completed"){stLight.onReady()}else{if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",stLight.onReady,false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("load",stLight.onReady,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",stLight.onReady)}}}}stLight.createSegmentFrame=function(){try{stLight.segmentframe=document.createElement('<iframe name="stframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(b){stLight.segmentframe=document.createElement("iframe")}stLight.segmentframe.id="stSegmentFrame";stLight.segmentframe.name="stSegmentFrame";var c=document.body;var a=(("https:"==document.location.protocol)?"https://seg.":"http://seg.")+"sharethis.com/getSegment.php?purl="+encodeURIComponent(document.location.href)+"&jsref="+encodeURIComponent(document.referrer)+"&rnd="+(new Date()).getTime();stLight.segmentframe.src=a;stLight.segmentframe.frameBorder="0";stLight.segmentframe.scrolling="no";stLight.segmentframe.width="0px";stLight.segmentframe.height="0px";stLight.segmentframe.setAttribute("style","display:none;");c.appendChild(stLight.segmentframe)};stLight.fpc=stLight._stFpc();stLight.options=function(a){if(a&&a.publisher){stLight.publisher=a.publisher}if(a&&a.loadedFromBar){stLight.loadedFromBar=a.loadedFromBar}for(var b in a){if(stWidget.options.hasOwnProperty(b)&&a[b]!==null){stWidget.options[b]=a[b]}}};stLight.hasButtonOnPage=function(){var d=document.getElementsByTagName("*");var c=new RegExp(/^st_(.*?)$/);var a=d.length;for(var b=0;b<a;b++){if(typeof(d[b].className)=="string"&&d[b].className!=""){if(d[b].className.match(c)&&d[b].className.match(c).length>=2&&d[b].className.match(c)[1]){return true}}}return false}}var stButtons={};stButtons.smartifyButtons=function(a){if(typeof(a)!="undefined"&&a!="undefined"){stRecentServices=a;for(var b in stRecentServices){stRecentServices[b].processed=false}}stButtons.completeInit()};stButtons.makeButton=function(d){var B=d.service;var n=d.text;if(n==null&&(d.type=="vcount"||d.type=="hcount")){n="Share"}var g=stWidget.ogurl?stWidget.ogurl:document.location.href;g=d.url?d.url:g;var A=stWidget.ogtitle?stWidget.ogtitle:document.title;A=d.title?d.title:A;if(/(http|https):\/\//.test(g)==false){g=decodeURIComponent(g);A=decodeURIComponent(A)}if(/(http|https):\/\//.test(g)==false){g=decodeURIComponent(g);A=decodeURIComponent(A)}var z=document.createElement("span");z.setAttribute("style","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;");z.className="stButton";if(d.type=="custom"){d.element.onclick=function(){var C=document.createElement("form");C.setAttribute("method","GET");C.setAttribute("action","http://wd.sharethis.com/api/sharer.php");C.setAttribute("target","_blank");var D={url:g,title:A,destination:B,publisher:stLight.publisher,fpc:stLight.fpc,sessionID:stLight.sessionID};if(stWidget.ogimg!=null){D.image=stWidget.ogimg}if(stWidget.ogdesc!=null){D.desc=stWidget.ogdesc}for(var b in D){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",b);a.setAttribute("value",D[b]);C.appendChild(a)}document.body.appendChild(C);C.submit()};return false}if(!((B=="email"||B=="sharethis"||B=="fblike")||(switchTo5x&&(B=="facebook"||B=="twitter"||B=="gbuzz"||B=="yahoo")))){z.onclick=function(){if(stWidget.options.tracking){if(getPubGA()){pubService=B;shareLog(B);gaLog("Share",B)}}var C=document.createElement("form");C.setAttribute("method","GET");C.setAttribute("action","http://wd.sharethis.com/api/sharer.php");C.setAttribute("target","_blank");var D={url:g,title:A,destination:B,publisher:stLight.publisher,fpc:stLight.fpc,sessionID:stLight.sessionID};if(stWidget.ogimg!=null){D.image=stWidget.ogimg}if(stWidget.ogdesc!=null){D.desc=stWidget.ogdesc}for(var b in D){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",b);a.setAttribute("value",D[b]);C.appendChild(a)}document.body.appendChild(C);C.submit()}}if(B=="fblike"){try{var o=document.createElement('<iframe name="stLframe" scrolling="no" frameBorder="0" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(h){o=document.createElement("iframe");o.allowTransparency="true";o.setAttribute("allowTransparency","true");o.frameBorder="0";o.setAttribute("frameBorder","0");o.scrolling="no";o.setAttribute("scrolling","no")}var l="http://wd.sharethis.com/api/sharer.php?destination=fblike&url="+encodeURIComponent(g);var w="button_count";if(d.type=="vcount"){w="box_count";o.setAttribute("style","border:none; overflow:hidden; width:55px; height:65px; position:relative; top:12px;");o.width="55px";o.height="65px"}else{o.setAttribute("style","border:none; overflow:hidden; width:90px; height:21px; position:relative; top:7px;");o.width="90px";o.height="21px"}o.src="http://www.facebook.com/plugins/like.php?href="+encodeURIComponent(l)+"&layout="+w+"&show_faces=true&width=90&action=like&colorscheme=light&height=21";return o}if(d.type=="chicklet"){var t=document.createElement("span");t.className="chicklets "+B;if(n==null){t.innerHTML="&nbsp;"}else{t.appendChild(document.createTextNode(n))}z.appendChild(t);return z}else{if(d.type=="large"){var t=document.createElement("span");t.className="stLarge";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";t.style.backgroundImage="url('"+f+B+"_32.png')";z.appendChild(t);return z}else{if(d.type=="pcount"||d.type=="stbar"||d.type=="stsmbar"){var c=document.createElement("span");var t=document.createElement("span");if(d.type=="stsmbar"){t.className="stSmBar";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";t.style.backgroundImage="url('"+f+B+"_16.png')"}else{t.className="stLarge";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";t.style.backgroundImage="url('"+f+B+"_32.png')"}c.appendChild(t);var k=document.createElement("span");var y=document.createElement("div");if(d.type=="stsmbar"){y.className="stBubbleSmHoriz"}else{y.className="stBubbleSm"}y.setAttribute("id","stBubble_"+d.count);y.style.visibility="hidden";var i=document.createElement("div");i.className="stBubble_count_sm";y.appendChild(i);k.appendChild(y);k.appendChild(c);z.appendChild(k);stButtons.getCount(g,B,i);c.onmouseover=function(){var a=document.getElementById("stBubble_"+d.count);a.style.visibility="visible"};c.onmouseout=function(){var a=document.getElementById("stBubble_"+d.count);a.style.visibility="hidden"};return z}else{if(d.type=="button"||d.type=="vcount"||d.type=="hcount"){var c=document.createElement("span");c.className="stButton_gradient";var m=document.createElement("span");m.className="chicklets "+B;if(n==null){m.innerHTML="&nbsp;"}else{m.appendChild(document.createTextNode(n))}c.appendChild(m);if(B=="twitter"){var v=document.createElement("span");v.className="stTwbutton";v.innerHTML="&nbsp;";c=v}else{if(B=="facebook"){var u=document.createElement("span");u.className="stFb";var r=document.createElement("span");r.className="stFb_text";r.innerHTML="Share";u.appendChild(r);c=u}}if(d.type=="vcount"){if(B=="twitter"){var k=document.createElement("span");var y=document.createElement("div");y.className="stTwbubble";var i=document.createElement("div");i.className="stBubble_count";y.appendChild(i);k.appendChild(y);k.appendChild(v);z.appendChild(k);stButtons.getCount(g,B,i)}else{if(B=="facebook"){var y=document.createElement("div");y.className="stFb_vbubble";var i=document.createElement("div");i.className="stBubble_count";var q=document.createElement("span");q.className="stFb_bottom";y.appendChild(i);z.appendChild(y);z.appendChild(q);z.appendChild(u);stButtons.getCount(g,B,i)}else{var k=document.createElement("span");var y=document.createElement("div");y.className="stBubble";var i=document.createElement("div");i.className="stBubble_count";y.appendChild(i);k.appendChild(y);k.appendChild(c);z.appendChild(k);stButtons.getCount(g,B,i)}}}else{if(d.type=="hcount"){if(B=="twitter"){var k=document.createElement("span");var u=document.createElement("span");u.setAttribute("style","display:inline-block");var s=document.createElement("span");s.className="stTwVbubble_left";s.innerHTML="&nbsp;";var r=document.createElement("span");r.className="stTwVbubble";u.appendChild(s);u.appendChild(r);k.appendChild(v);k.appendChild(u);z.appendChild(k);stButtons.getCount(g,B,r)}else{if(B=="facebook"){var q=document.createElement("span");q.className="stFb_left";var p=document.createElement("span");p.className="stFb_hbubble";z.appendChild(u);z.appendChild(q);z.appendChild(p);stButtons.getCount(g,B,p)}else{var k=document.createElement("span");var x=document.createElement("span");x.className="stButton_gradient stHBubble";var j=document.createElement("span");j.className="stButton_left";j.innerHTML="&nbsp;";var e=document.createElement("span");e.className="stButton_right";e.innerHTML="&nbsp;";var i=document.createElement("span");i.className="stBubble_hcount";x.appendChild(i);k.appendChild(c);k.appendChild(x);z.appendChild(k);stButtons.getCount(g,B,i)}}}else{z.appendChild(c)}}}}}}return z};stButtons.getCount=function(c,a,e){var b=false;if(e&&e!==null){while(e.childNodes.length>=1){try{e.removeChild(e.firstChild)}catch(g){}}}if(typeof(stButtons.counts)!="undefined"){for(var d=0;d<stButtons.counts.length;d++){var f=stButtons.counts[d];if(f.ourl==c){b=true;var h="";try{if(a=="sharethis"){h=(f.total>0)?stButtons.human(f.total):"New"}else{if(a=="facebook"&&typeof(f.facebook2)!="undefined"){h=stButtons.human(f.facebook2)}else{if(typeof(f[a])!="undefined"){h=(f[a]>0)?stButtons.human(f[a]):"0"}else{h="0"}}}e.innerHTML=h}catch(g){}}}}if(b==false){stButtons.getCountsFromService(c,a,e)}};stButtons.human=function(a){if(a>=10000){a=a/100;a=Math.round(a);a=a/10;a=a+"K"}return a};stButtons.locateElements=function(){var A=document.getElementsByTagName("*");var w=[];var C=new RegExp(/st_(.*?)_custom/);var B=new RegExp(/st_(.*?)_vcount/);var v=new RegExp(/st_(.*?)_hcount/);var t=new RegExp(/st_(.*?)_button/);var s=new RegExp(/st_(.*?)_large/);var q=new RegExp(/st_(.*?)_pcount/);var n=new RegExp(/st_(.*?)_stbar/);var l=new RegExp(/st_(.*?)_stsmbar/);var j=new RegExp(/^st_(.*?)$/);var r=A.length;var m=0,e,h,u,a=[],D=false;if(typeof(stRecentServices)!="undefined"&&stRecentServices!="undefined"&&stRecentServices!="false"&&stRecentServices){D=true}for(var p=0;p<r;p++){e="";h=false;u=false;if(typeof(A[p].className)=="string"&&A[p].className!=""){if(A[p].className.match(C)&&A[p].className.match(C).length>=2&&A[p].className.match(C)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(C)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"custom"})}}else{if(A[p].className.match(B)&&A[p].className.match(B).length>=2&&A[p].className.match(B)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(B)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"vcount"})}}else{if(A[p].className.match(v)&&A[p].className.match(v).length>=2&&A[p].className.match(v)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(v)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"hcount"})}}else{if(A[p].className.match(t)&&A[p].className.match(t).length>=2&&A[p].className.match(t)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(t)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"button"})}}else{if(A[p].className.match(s)&&A[p].className.match(s).length>=2&&A[p].className.match(s)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(s)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"large"})}}else{if(A[p].className.match(q)&&A[p].className.match(q).length>=2&&A[p].className.match(q)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(q)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"pcount",count:p})}}else{if(A[p].className.match(n)&&A[p].className.match(n).length>=2&&A[p].className.match(n)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(n)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"stbar",count:p})}}else{if(A[p].className.match(l)&&A[p].className.match(l).length>=2&&A[p].className.match(l)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(l)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"stsmbar",count:p})}}else{if(A[p].className.match(j)&&A[p].className.match(j).length>=2&&A[p].className.match(j)[1]){if(stButtons.testElem(A[p])==false){u=true;e=A[p].className.match(j)[1];stButtons.elemArr.push(A[p]);w.push({service:e,element:A[p],url:A[p].getAttribute("st_url"),title:A[p].getAttribute("st_title"),text:A[p].getAttribute("displayText"),type:"chicklet"})}}}}}}}}}}if(D){if(u){stButtons.elemArr.push(A[p]);for(m=0;m<a.length;m++){if(a[m].service==e){a[m].count++;h=true}}if(!h){a.push({service:e,count:1,doNotReplace:false,processed:false})}}}}}if(D){var g=[];for(var d=a.length-1;d>=0;d--){if(a[d].service=="sharethis"||a[d].doNotReplace){a[d].processed=true;continue}else{for(var c in stRecentServices){var f=false;if(!stRecentServices[c].processed){for(var o=0;o<a.length;o++){if(c==a[o].service&&!a[o].processed){f=true;a[o].doNotReplace=true;stRecentServices[c].processed=true;break}}if(f){a[d].processed=true}else{g.push({oldService:a[d].service,newService:c});for(var b=0;b<w.length;b++){if(w[b].service==a[d].service){w[b].service=c;w[b].text=stRecentServices[c].title;w[b].element.setAttribute("displayText",stRecentServices[c].title);w[b].element.className=w[b].element.className.replace(a[d].service,c)}}stRecentServices[c].processed=true;a[d].processed=true;break}}}}}}for(var p=0;p<w.length;p++){stWidget.addEntry(w[p])}};stButtons.odcss=function(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.css=document.createElement("link");this.css.setAttribute("rel","stylesheet");this.css.setAttribute("type","text/css");this.css.setAttribute("href",this.scriptSrc);setTimeout(function(){b()},500);this.head.appendChild(this.css)};stButtons.makeButtons=function(){var a=(("https:"==document.location.protocol)?"https://ws.sharethis.com/button/css/buttons-secure.css":"http://w.sharethis.com/button/css/buttons.css");stButtons.odcss(a,function(){});stButtons.locateElements()};stButtons.addCount=function(a){stButtons.counts.push(a)};stButtons.getCountsFromService=function(c,a,d){if(stButtons.checkQueue(c)==false){if(typeof(stButtons.urlElements)!="undefined"){var b=new Array();var e=new Array();e.service=a;e.elem=d;b.push(e);stButtons.urlElements[c]=b}var f=(("https:"==document.location.protocol)?"https://ws.sharethis.com/api/getCount.php?url=":"http://wd.sharethis.com/api/getCount.php?url=");stLight.odjs(f+encodeURIComponent(c),function(){if(typeof(__stCount)!="undefined"){__stCount.ourl=c;stButtons.addCount(__stCount);var g=stButtons.urlElements[c];for(var h=0;h<g.length;h++){var j=g[h];stButtons.getCount(c,j.service,j.elem)}}});stButtons.queue.push(c)}else{if(typeof(stButtons.urlElements)!="undefined"){var b=stButtons.urlElements[c];var e=new Array();e.service=a;e.elem=d;b.push(e)}}};stButtons.checkQueue=function(a){for(var b=0;b<stButtons.queue.length;b++){if(stButtons.queue[b]==a){return true}}return false};stButtons.elemArr=[];stButtons.testElem=function(c){var a=false;for(var b=0;b<stButtons.elemArr.length;b++){if(c==stButtons.elemArr[b]){a=true}}if(a==true){return true}else{return false}};function Shareable(c){var a={};a.facebook="450";a.twitter="788";a.yahoo="500";a.gbuzz="550";var b={};b.facebook="300";b.twitter="320";b.yahoo="460";b.gbuzz="400";this.idx=-1;this.url=null;this.title=null;this.image=null;this.element=null;this.service=null;this.screen="home";this.summary=null;this.content=null;this.buttonText=null;this.frag=null;this.onhover=true;this.type=null;var d=this;var e=false;this.attachButton=function(f){this.element=f;if(this.onhover==true){f.onmouseover=this.mouseOn;f.onmouseout=this.mouseOut}else{f.onclick=function(){if(switchTo5x){if(c&&(c.service=="yahoo"||c.service=="buzz"||c.service=="facebook"||c.service=="twitter"||c.service=="gbuzz")){if(c.service=="buzz"||c.service=="gbuzz"){oAuthURL="http://rest.sharethis.com/auth/getOAuth.php?provider=buzz&linking=true&pub_key=12be4dda-f838-40e0-b748-f78357a63cc8&access_key=96ba6b476151d07e675125a7cc8ec0ea&redirect_url=http://sharethis.com"}else{oAuthURL="http://sharethis.com/account/linking?provider="+c.service}window.open(oAuthURL,"AccountLinkingWindow","status=1, height="+b[c.service]+", width="+a[c.service]+", resizable=0")}}d.popup()}}};this.init=function(){stWidget.merge(this,c);stWidget.shareables.push(this);if(c.element!==null){this.attachButton(c.element)}};return this}var stWidget=new function(){this.shareables=[];this.entries=0;this.widgetOpen=false;this.mouseOnTimer=null;this.mouseOutTimer=null;this.frameReady=false;if(switchTo5x){this.frameUrl=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure5x/index.html":"http://edge.sharethis.com/share5x/index.b27d682752d93e984b09970f5441bc65.html")}else{this.frameUrl=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/index.html":"http://edge.sharethis.com/share4x/index.66f6f82b949f5b36bfe7ada4a8abb589.html")}this.secure=false;try{this.mainstframe=document.createElement('<iframe name="stLframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>');this.mainstframe.onreadystatechange=function(){if(stWidget.mainstframe.readyState==="complete"){stWidget.frameReady=true}}}catch(a){this.mainstframe=document.createElement("iframe");this.mainstframe.allowTransparency="true";this.mainstframe.setAttribute("allowTransparency","true");this.mainstframe.onload=function(){stWidget.frameReady=true}}this.mainstframe.id="stLframe";this.mainstframe.className="stLframe";this.mainstframe.name="stLframe";this.mainstframe.frameBorder="0";this.mainstframe.scrolling="no";this.mainstframe.width="345px";this.mainstframe.height="450px";this.mainstframe.style.top="0px";this.mainstframe.style.left="0px";this.mainstframe.src="";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";if(switchTo5x){this.mainstframe.width="500px";this.mainstframe.height="730px";this.wrapper.style.top="-999px";this.wrapper.style.left="-999px";this.wrapper.style.width="500px";this.wrapper.style.zIndex=10000000;this.overlay=document.createElement("div");this.overlay.style.height="100%";this.overlay.style.width="100%";this.overlay.style.backgroundColor="#000";this.overlay.style.opacity="0.6";this.overlay.style.filter="Alpha(Opacity=60)";this.overlay.style.position="fixed";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){this.overlay.style.position="absolute"}this.overlay.style.display="none";this.overlay.style.left="0";this.overlay.style.top="0";this.overlay.style.zIndex=9999990;this.overlay.setAttribute("id","stOverlay");this.closewrapper.className="stCloseNew"}this.closewrapper.onclick=function(){stWidget.closeWidget()};this.wrapper.appendChild(this.closewrapper);this.wrapper.appendChild(this.mainstframe);this.ogtitle=null;this.ogdesc=null;this.ogurl=null;this.ogimg=null;this.ogtype=null;this.initFire=false;this.merge=function(d,c){for(var b in c){if(d.hasOwnProperty(b)&&c[b]!==null){d[b]=c[b]}}};this.oldScroll=0;this.init=function(){if(stWidget.initFire==false){stWidget.initFire=true;window.frames.stLframe.location.replace(stWidget.frameUrl+stWidget.createFrag(null,"init"))}}};stWidget.options=new function(){this.fpc=stLight.fpc;this.sessionID=null;this.publisher=null;this.tracking=null;this.send_services=null;this.exclusive_services=null;this.headerTitle=null;this.headerfg=null;this.headerbg=null;this.offsetLeft=null;this.offsetTop=null;this.onhover=true;this.autoclose=true;this.autoPosition=true;this.embeds=false;this.doneScreen=true;this.minorServices=true;this.excludeServices=null;this.theme=1;this.serviceBarColor=null;this.shareButtonColor=null;this.footerColor=null;this.headerTextColor=null;this.helpTextColor=null;this.mainWidgetColor=null;this.textBoxFontColor=null;this.textRightToLeft=false};stWidget.addEntry=function(a){if(!a.element){return false}if(a&&((a.service=="email"||a.service=="sharethis"||a.service=="fblike")||(switchTo5x&&(a.service=="facebook"||a.service=="twitter"||a.service=="gbuzz"||a.service=="yahoo")))){openWidget=true}else{openWidget=false}if(!openWidget){if(a.type!=="custom"){a.element.appendChild(stButtons.makeButton(a))}else{if(!(a.type=="custom"&&a.service=="sharethis")){stButtons.makeButton(a)}}return true}else{if(a.type!="custom"){a.element.appendChild(stButtons.makeButton(a))}else{if(!(a.type=="custom"&&a.service=="sharethis")){stButtons.makeButton(a)}}var b=new Shareable(a);b.idx=stWidget.entries;stWidget.entries++;b.publisher=stLight.publisher;b.sessionID=stLight.sessionID;b.fpc=stLight.fpc;if(stWidget.ogimg!=null){b.image=stWidget.ogimg}if(stWidget.ogdesc!=null){b.summary=stWidget.ogdesc}stWidget.merge(b,stWidget.options);if(typeof(stWidget.options.textRightToLeft)!="undefined"&&stWidget.options.textRightToLeft!="null"&&stWidget.options.textRightToLeft==true){document.getElementById("stwrapper").style.top="auto";document.getElementById("stwrapper").style.left="auto"}b.mouseOn=function(){stWidget.mouseOnTimer=setTimeout(b.popup,1000)};b.mouseOut=function(){clearInterval(stWidget.mouseOnTimer)};b.popup=function(){if(stWidget.widgetOpen==false){var c="share4x";if(switchTo5x){c="share5x"}if(a.type=="stbar"||a.type=="stsmbar"){c="bar"}stLight.log("widget",c,a.service+"_"+a.type);window.frames.stLframe.location.replace(stWidget.frameUrl+stWidget.createFrag(b));stWidget.positionWidget(b);if(stWidget.options.embeds==false){stWidget.hideEmbeds()}setTimeout(function(){stWidget.widgetOpen=true;st_showing=true},200)}else{if(stWidget.widgetOpen==true&&stWidget.options.onhover==false){}}return false};b.init();return b}};stWidget.createFrag=function(c,b){var f="#light";if(b=="init"){f="#init";for(var e in stWidget.options){if(stWidget.options.hasOwnProperty(e)==true&&stWidget.options[e]!==null&&typeof(stWidget.options[e])!="function"&&typeof(stWidget.options[e])!="object"){var a=stWidget.options[e];try{a=decodeURIComponent(a);a=decodeURIComponent(a)}catch(d){}f=f+"/"+e+"="+encodeURIComponent(a)}}f=f+"/pUrl="+encodeURIComponent(encodeURIComponent(document.location.href))+((document.title!="")?"/title="+encodeURIComponent(encodeURIComponent(document.title)):"")+"/stLight=true"}else{for(var e in c){if(c.hasOwnProperty(e)==true&&c[e]!==null&&typeof(c[e])!="function"&&typeof(c[e])!="object"&&e!=="idx"){f=f+"/"+e+"-=-"+encodeURIComponent(encodeURIComponent(c[e]))}}if(c.service=="email"){f=f+"/page-=-send"}if(switchTo5x){if(c.service=="facebook"){f=f+"/page-=-fbhome"}else{if(c.service=="twitter"){f=f+"/page-=-twhome"}else{if(c.service=="gbuzz"){f=f+"/page-=-gbhome"}else{if(c.service=="yahoo"){f=f+"/page-=-ybhome"}}}}}}return f};stWidget.positionWidget=function(o){if(!o){return false}if(!switchTo5x){shareel=o.element;var curleft=curtop=0;if(shareel.offsetParent){curleft=shareel.offsetLeft;curtop=shareel.offsetTop;while(shareel=shareel.offsetParent){curleft+=shareel.offsetLeft;curtop+=shareel.offsetTop}}shareel=o.element;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+(stWidget.options.offsetTop?stWidget.options.offsetTop:0));topVal=eval(topVal);elemH=topVal;topVal+="px";leftVal=(elleft+(stWidget.options.offsetLeft?stWidget.options.offsetLeft:0));leftVal=eval(leftVal);elemW=leftVal;leftVal+="px";stWidget.wrapper.style.top=topVal;stWidget.wrapper.style.left=leftVal;if(stWidget.options.autoPosition==true){stWidget.oldScroll=document.body.scrollTop;var pginfo=stWidget.pageSize();var effectiveH=pginfo.height+pginfo.scrY;var effectiveW=pginfo.width+pginfo.scrX;var widgetH=180;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}stWidget.wrapper.style.top=newH+"px"}if(diffW>0){leftA=false;rightA=true;if((buttonPos.width-widgetW)>0){newW=buttonPos.width-widgetW}stWidget.wrapper.style.left=newW+"px"}}if(stWidget.options.autoPosition=="center"){stWidget.wrapper.style.top="15%";stWidget.wrapper.style.left="35%";stWidget.wrapper.style.position="fixed"}}else{document.getElementById("stOverlay").style.display="block";var topVal;if(stWidget.options.autoPosition==true){if(document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1){stWidget.wrapper.style.left="300px"}else{stWidget.wrapper.style.left="10%"}stWidget.wrapper.style.right="10%";topVal=(document.documentElement.clientHeight-parseFloat(stWidget.wrapper.offsetHeight)/2)/2;if(topVal>30){topVal=30}else{if(topVal<5){topVal=5}}stWidget.wrapper.style.top=topVal+"px";stWidget.wrapper.style.marginLeft="auto";stWidget.wrapper.style.marginRight="auto";stWidget.wrapper.style.textAlign="left";stWidget.wrapper.style.position="fixed";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){stWidget.wrapper.style.left="300px";stWidget.wrapper.style.position="absolute"}}if(stWidget.options.autoPosition=="center"){stWidget.wrapper.style.left="10%";stWidget.wrapper.style.right="10%";stWidget.wrapper.style.marginLeft="auto";stWidget.wrapper.style.marginRight="auto";stWidget.wrapper.style.position="fixed";topVal=(document.documentElement.clientHeight-parseFloat(stWidget.wrapper.offsetHeight)/2)/2;if(topVal>30){topVal=30}else{if(topVal<5){topVal=5}}stWidget.wrapper.style.top=topVal+"px";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){stWidget.wrapper.style.position="absolute"}}}stWidget.wrapper.style.visibility="visible";stWidget.mainstframe.style.visibility="visible"},stWidget.hideWidget=function(){if(stWidget.wrapper.style.visibility!=="hidden"){stWidget.wrapper.style.visibility="hidden"}if(stWidget.mainstframe.style.visibility!=="hidden"){stWidget.mainstframe.style.visibility="hidden"}if(switchTo5x){document.getElementById("stOverlay").style.display="none"}};stWidget.pageSize=function(){var e=[0,0,0,0];var b=0;var a=0;var d=0;var c=0;if(typeof(window.pageYOffset)=="number"){b=window.pageXOffset;a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){b=document.body.scrollLeft;a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){b=document.documentElement.scrollLeft;a=document.documentElement.scrollTop}}}if(window.innerWidth){d=window.innerWidth;c=window.innerHeight}else{if(document.documentElement.offsetWidth){d=document.documentElement.offsetWidth;c=document.documentElement.offsetHeight}}e={scrX:b,scrY:a,width:d,height:c};return e};stWidget.closeWidget=function(){if(st_showing==false){return false}st_showing=false;stWidget.widgetOpen=false;stWidget.wrapper.style.visibility="hidden";stWidget.mainstframe.style.visibility="hidden";stWidget.showEmbeds();stWidget.sendEvent("screen","home");if(switchTo5x){document.getElementById("stOverlay").style.display="none"}else{stWidget.wrapper.style.top="-999px";stWidget.wrapper.style.left="-999px"}};stWidget.hideEmbeds=function(){var b=document.getElementsByTagName("embed");for(var a=0;a<b.length;a++){b[a].style.visibility="hidden"}};stWidget.showEmbeds=function(){if(stWidget.options.embeds==true){return true}var b=document.getElementsByTagName("embed");for(var a=0;a<b.length;a++){b[a].style.visibility="visible"}};stWidget.sendEvent=function(a,d){var c="#widget/"+a+"="+d;try{window.frames.stLframe.location.replace(stWidget.frameUrl+c)}catch(b){}};stWidget.getOGTags=function(){var b=document.getElementsByTagName("meta");for(var a=0;a<b.length;a++){if(b[a].getAttribute("property")=="og:title"){stWidget.ogtitle=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:type"){stWidget.ogtype=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:url"){stWidget.ogurl=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:image"){stWidget.ogimg=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:description"){stWidget.ogdesc=b[a].getAttribute("content")}}}}}}};function odjs(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.script=document.createElement("script");this.script.setAttribute("type","text/javascript");this.script.setAttribute("src",this.scriptSrc);this.script.onload=b;this.script.onreadystatechange=function(){if(this.readyState=="loaded"){b()}};this.head.appendChild(this.script)}var jsonp={};jsonp.makeRequest=function(a){odjs(a,function(){})};function getPubGA(){if(!loadedPubGA){loadedPubGA=true;initGA();var a=["return=json","cb=getPubGA_onSuccess","service=getPublisherDomains","publisher="+stWidget.publisher];a=a.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+a);return false}return true}function getPubGA_onSuccess(a){var c=null;var d=new RegExp(stWidget.hostname,"i");for(var b=0;b<a.data.domain.length;b++){if(true==(d.test(a.data.domain[b].name))){c=a.data.domain[b].google_analytics;b=a.data.domain.length}}if(c==null){for(var b=0;b<a.data.domain.length;b++){if(d.test(a.data.domain[b].name)){c=a.data.domain[b].google_analytics}}}if(typeof(_gat)!="undefined"&&c!==null&&typeof(c)!="undefined"){stButtons.pubTracker=_gat._getTracker(c)}gaLog("Share",pubService);shareLog(pubService)}function initGA(){if(typeof(_gat)=="undefined"){var d=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var a=document.getElementsByTagName("head")[0];var c=document.createElement("script");c.type="text/javascript";c.src=d+"google-analytics.com/ga.js";a.appendChild(c);var b='try{stButtons.ga = _gat._getTracker("UA-1645146-9");stButtons.ga._trackPageview();} catch(err) {}';var c=document.createElement("script");c.type="text/javascript";c.text=b;a.appendChild(c)}}function gaLog(b,d,a,c){if(typeof(stButtons.ga)!="undefined"&&stButtons.ga!==null){stButtons.ga._trackEvent(b,d,a,c)}}function shareLog(a){if(stButtons.pubTracker!=null){stButtons.pubTracker._trackEvent("ShareThis",a)}}stButtons.onReady=function(){var g=document.getElementsByTagName("*");var b=[];var c=new RegExp(/sharethis_smartbuttons/);var a=false;for(var i=0;i<g.length;i++){if(typeof(g[i].className)=="string"&&g[i].className!=""){if(g[i].className.match(c)){a=true;break}}}if(a){var f=document.getElementsByTagName("head")[0];var d=["return=json","cb=stButtons.smartifyButtons"];d=d.join("&");var e=(("https:"==document.location.protocol)?"https://ws.":"http://wd.")+"sharethis.com/api/getRecentServices.php?"+d;var h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",e);f.appendChild(h);setTimeout("stButtons.completeInit()",2000)}else{stButtons.completeInit()}};stButtons.completeInit=function(){if(!stButtons.goToInit){stButtons.goToInit=true;stWidget.getOGTags();document.body.appendChild(stWidget.wrapper);if(switchTo5x){document.body.appendChild(stWidget.overlay)}stButtons.makeButtons();stWidget.init()}};if(document.readyState=="complete"&&stLight.readyRun==false){stLight.onReady()}stButtons.goToInit=false;stButtons.widget=false;stButtons.widgetArray=[];stButtons.queue=[];stButtons.queuePos=0;stButtons.counts=[];st_showing=false;loadedPubGA=false;pubService="";stButtons.urlElements=[];if(typeof(window.addEventListener)!="undefined"){window.addEventListener("click",function(){stWidget.closeWidget()},false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("click",function(){stWidget.closeWidget()},false)}else{if(typeof window.attachEvent!="undefined"){document.attachEvent("onclick",function(){stWidget.closeWidget()})}}};
