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;var betaBlacklist=["computerworld.com","networkworld.com","cio.com","infoworld.com","forbes.com","perezhilton.com","pgestore.com","thepostgame.com"];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=0;if(rNumFor5x<=testLimitFor5x){switchTo5x=true}for(var i=0;i<betaBlacklist.length;i++){if(document.domain.search(betaBlacklist[i])!="-1"){switchTo5x=false;break}}}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;this.clickCallBack=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 j=c.getFullYear();var f=c.getMonth()+9;var h=c.getDate();var d=a+"="+escape(g);if(j){var b=new Date(j,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}if(a&&a.clickCallBack&&typeof(a.clickCallBack)=="function"){stLight.clickCallBack=a.clickCallBack}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 p=d.text;if(p==null&&(d.type=="vcount"||d.type=="hcount")){p="Share"}if(B=="fb_like"){B="fblike"}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;var r=(d.thumbnail&&d.thumbnail!=null)?d.thumbnail:stWidget.ogimg;var k=stWidget.desc?stWidget.desc:"";k=stWidget.ogdesc?stWidget.ogdesc:stWidget.desc;k=(d.description&&d.description!=null)?d.description:k;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(typeof(r)!="undefined"&&r!=null){D.image=r}if(typeof(k)!="undefined"&&k!=null){D.desc=k}D.service=d.service;D.type=d.type;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)}}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(typeof(r)!="undefined"&&r!=null){D.image=r}if(typeof(k)!="undefined"&&k!=null){D.desc=k}D.service=d.service;D.type=d.type;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 q=document.createElement('<iframe name="stLframe" scrolling="no" frameBorder="0" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(h){q=document.createElement("iframe");q.allowTransparency="true";q.setAttribute("allowTransparency","true");q.frameBorder="0";q.setAttribute("frameBorder","0");q.scrolling="no";q.setAttribute("scrolling","no")}var n="http://wd.sharethis.com/api/sharer.php?destination=fblike&url="+encodeURIComponent(g);var v="button_count";if(d.type=="vcount"){v="box_count";q.setAttribute("style","border:none; overflow:hidden; width:55px; height:65px; position:relative; top:12px;");q.width="55px";q.height="65px"}else{q.setAttribute("style","border:none; overflow:hidden; width:90px; height:21px; position:relative; top:7px;");q.width="90px";q.height="21px"}q.src="http://www.facebook.com/plugins/like.php?href="+encodeURIComponent(n)+"&layout="+v+"&show_faces=true&width=90&action=like&colorscheme=light&height=21";return q}if(d.type=="chicklet"){var s=document.createElement("span");s.className="chicklets "+B;if(p==null){s.innerHTML="&nbsp;"}else{s.appendChild(document.createTextNode(p))}z.appendChild(s);return z}else{if(d.type=="large"){var s=document.createElement("span");s.className="stLarge";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";s.style.backgroundImage="url('"+f+B+"_32.png')";z.appendChild(s);return z}else{if(d.type=="pcount"||d.type=="stbar"||d.type=="stsmbar"){var c=document.createElement("span");var s=document.createElement("span");if(d.type=="stsmbar"){s.className="stSmBar";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";s.style.backgroundImage="url('"+f+B+"_16.png')"}else{s.className="stLarge";var f=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";s.style.backgroundImage="url('"+f+B+"_32.png')"}c.appendChild(s);var m=document.createElement("span");var x=document.createElement("div");if(d.type=="stsmbar"){x.className="stBubbleSmHoriz"}else{x.className="stBubbleSm"}x.setAttribute("id","stBubble_"+d.count);x.style.visibility="hidden";var j=document.createElement("div");j.className="stBubble_count_sm";x.appendChild(j);m.appendChild(x);m.appendChild(c);z.appendChild(m);stButtons.getCount(g,B,j);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 o=document.createElement("span");o.className="chicklets "+B;if(p==null){o.innerHTML="&nbsp;"}else{o.appendChild(document.createTextNode(p))}c.appendChild(o);if(B=="twitter"){var u=document.createElement("span");u.className="stTwbutton";u.innerHTML="&nbsp;";c=u}else{if(B=="facebook"){var t=document.createElement("span");t.className="stFb";t.innerHTML="&nbsp;";c=t}}if(d.type=="vcount"){var m=document.createElement("div");var x=document.createElement("div");x.className="stBubble";var j=document.createElement("div");j.className="stBubble_count";x.appendChild(j);m.appendChild(x);m.appendChild(c);z.appendChild(m);stButtons.getCount(g,B,j)}else{if(d.type=="hcount"){var m=document.createElement("span");var w=document.createElement("span");w.className="stButton_gradient stHBubble";var l=document.createElement("span");l.className="stButton_left";l.innerHTML="&nbsp;";var e=document.createElement("span");e.className="stButton_right";e.innerHTML="&nbsp;";var j=document.createElement("span");j.className="stBubble_hcount";w.appendChild(j);m.appendChild(c);var y=document.createElement("span");y.className="stArrow";y.appendChild(w);m.appendChild(y);z.appendChild(m);stButtons.getCount(g,B,j)}else{z.appendChild(c)}}}}}}return z};stButtons.getCount=function(c,a,d){var b=false;if(d&&d!==null){while(d.childNodes.length>=1){try{d.removeChild(d.firstChild)}catch(e){}}}stButtons.cbQueue.push({url:c,service:a,element:d});stButtons.getCountsFromService(c,a,d)};stButtons.processCB=function(b){var a=false;for(var c=0;c<stButtons.cbQueue.length;c++){var e=stButtons.cbQueue[c];if(b.ourl==e.url){var f="";try{if(e.service=="sharethis"){f=(b.total>0)?stButtons.human(b.total):"New"}else{if(e.service=="facebook"&&typeof(b.facebook2)!="undefined"){f=stButtons.human(b.facebook2)}else{if(typeof(b[e.service])!="undefined"){f=(b[e.service]>0)?stButtons.human(b[e.service]):"0"}else{f="0"}}}e.element.innerHTML=f}catch(d){}a=true}}};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(b){var B=document.getElementsByTagName("*");var A=[];var D=new RegExp(/st_(.*?)_custom/);var C=new RegExp(/st_(.*?)_vcount/);var w=new RegExp(/st_(.*?)_hcount/);var u=new RegExp(/st_(.*?)_button/);var t=new RegExp(/st_(.*?)_large/);var r=new RegExp(/st_(.*?)_pcount/);var o=new RegExp(/st_(.*?)_stbar/);var m=new RegExp(/st_(.*?)_stsmbar/);var l=new RegExp(/^st_(.*?)$/);var s=B.length;var n=0,f,j,v,a=[],E=false;if(typeof(stRecentServices)!="undefined"&&stRecentServices!="undefined"&&stRecentServices!="false"&&stRecentServices){E=true}for(var q=0;q<s;q++){f="";j=false;v=false;if(typeof(B[q].className)=="string"&&B[q].className!=""){if(B[q].className.match(D)&&B[q].className.match(D).length>=2&&B[q].className.match(D)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(D)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"custom"})}}else{if(B[q].className.match(C)&&B[q].className.match(C).length>=2&&B[q].className.match(C)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(C)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"vcount"})}}else{if(B[q].className.match(w)&&B[q].className.match(w).length>=2&&B[q].className.match(w)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(w)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"hcount"})}}else{if(B[q].className.match(u)&&B[q].className.match(u).length>=2&&B[q].className.match(u)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(u)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"button"})}}else{if(B[q].className.match(t)&&B[q].className.match(t).length>=2&&B[q].className.match(t)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(t)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"large"})}}else{if(B[q].className.match(r)&&B[q].className.match(r).length>=2&&B[q].className.match(r)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(r)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"pcount",count:q})}}else{if(B[q].className.match(o)&&B[q].className.match(o).length>=2&&B[q].className.match(o)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(o)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"stbar",count:q})}}else{if(B[q].className.match(m)&&B[q].className.match(m).length>=2&&B[q].className.match(m)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(m)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"stsmbar",count:q})}}else{if(B[q].className.match(l)&&B[q].className.match(l).length>=2&&B[q].className.match(l)[1]){if(stButtons.testElem(B[q])==false){v=true;f=B[q].className.match(l)[1];stButtons.elemArr.push(B[q]);A.push({service:f,element:B[q],url:B[q].getAttribute("st_url"),title:B[q].getAttribute("st_title"),image:(B[q].getAttribute("st_img")!=null)?B[q].getAttribute("st_img"):B[q].getAttribute("st_image"),summary:B[q].getAttribute("st_summary"),text:B[q].getAttribute("displayText"),type:"chicklet"})}}}}}}}}}}if(E){if(v){stButtons.elemArr.push(B[q]);for(n=0;n<a.length;n++){if(a[n].service==f){a[n].count++;j=true}}if(!j){a.push({service:f,count:1,doNotReplace:false,processed:false})}}}}}if(E){var h=[];for(var e=a.length-1;e>=0;e--){if(a[e].service=="sharethis"||a[e].doNotReplace){a[e].processed=true;continue}else{for(var d in stRecentServices){var g=false;if(!stRecentServices[d].processed){for(var p=0;p<a.length;p++){if(d==a[p].service&&!a[p].processed){g=true;a[p].doNotReplace=true;stRecentServices[d].processed=true;break}}if(g){a[e].processed=true}else{h.push({oldService:a[e].service,newService:d});for(var c=0;c<A.length;c++){if(A[c].service==a[e].service){A[c].service=d;A[c].text=stRecentServices[d].title;A[c].element.setAttribute("displayText",stRecentServices[d].title);A[c].element.className=A[c].element.className.replace(a[e].service,d)}}stRecentServices[d].processed=true;a[e].processed=true;break}}}}}}for(var q=0;q<A.length;q++){stWidget.addEntry(A[q])}};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,b,d){if(stButtons.checkQueue(c)==false){var a=a+"-"+stButtons.cbVal;a="stButtons.processCB";stButtons.cbVal++;var e=(("https:"==document.location.protocol)?"https://ws.sharethis.com/api/getCount2.php?cb="+a+"&url=":"http://wd.sharethis.com/api/getCount2.php?cb="+a+"&url=");stLight.odjs(e+encodeURIComponent(c),function(){});stButtons.queue.push(c)}};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||this.onhover=="true")&&((!switchTo5x)||(switchTo5x&&(c.service=="sharethis"||c.service=="email")))){f.onmouseover=this.mouseOn;f.onmouseout=this.mouseOut}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.7973373cf5d7f1f51c3b407c5139977d.html")}else{this.frameUrl=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/index.html":"http://edge.sharethis.com/share4x/index.1f60cca3a67f69342fce2ed55af68ca9.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="stCloseNew2"}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.desc=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;this.shorten=true};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(a.element.image==null&&stWidget.ogimg!=null){b.image=stWidget.ogimg}if(a.element.summary==null&&stWidget.ogdesc!=null){b.summary=stWidget.ogdesc}else{if(a.element.summary==null&&stWidget.desc!=null){b.summary=stWidget.desc}}b.url=stWidget.ogurl?stWidget.ogurl:document.location.href;b.url=a.url?a.url:b.url;b.title=stWidget.ogtitle?stWidget.ogtitle:document.title;b.title=a.title?a.title:b.title;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,500)};b.mouseOut=function(){clearInterval(stWidget.mouseOnTimer)};b.popup=function(){if(stWidget.widgetOpen==false){var d="share4x";if(switchTo5x){d="share5x";try{if(stLight.clickCallBack!=false){stLight.clickCallBack(a.service)}}catch(c){}}if(a.type=="stbar"||a.type=="stsmbar"){d="bar"}stLight.log("widget",d,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>20){topVal=20}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>20){topVal=20}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")}else{if(b[a].getAttribute("name")=="description"||b[a].getAttribute("name")=="Description"){stWidget.desc=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;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)}shareLog(pubService)}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 j=0;j<g.length;j++){if(typeof(g[j].className)=="string"&&g[j].className!=""){if(g[j].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.cbQueue=[];stButtons.cbVal=0;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()})}}};
