if(typeof(sharethis)=="undefined"||typeof(sharethis)==undefined){window.sharethis=window.sharethis||{};sharethis.widgets=sharethis.widgets||{};sharethis.utilities=sharethis.utilities||{};sharethis.globals=sharethis.globals||{};sharethis.globals=function(){this._stFpc=function(){if(!document.domain){return false}var g=this._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=this._stGetD();a=a.split(/\./)[1];e=this._stdHash(a)+"-"+h+"-"+c+"-1";g=e;this._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;this._stSetFpc(g)}}return g};this._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=this._stGetD();d+="; domain="+escape(e)+";path=/";document.cookie=d};this._stGetD=function(){var b=document.domain.split(/\./);var a="";if(b.length>1){a="."+b[b.length-2]+"."+b[b.length-1]}return a};this._stGetFpc=function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}};this._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)};this.dbrInfo=function(){var a=document.referrer;if(a&&a.length>0){var c=/(http:\/\/)(.*?)\/.*/i;var b=/(^.*\?)(.*)/ig;var f="";var e=a.replace(c,"$2");if(e.length>0){f+="&refDomain="+e}else{return false}var d=a.replace(b,"$2");if(d.length>0){f+="&refQuery="+encodeURIComponent(d)}return f}else{return""}};this.logPageView=function(b){lurl="http://l.sharethis.com/pview?event=pview";lurl+="&publisher="+encodeURIComponent(b)+"&hostname="+encodeURIComponent(this.hostname)+"&location="+encodeURIComponent(this.location)+"&url="+encodeURIComponent(this.pURL)+"&sessionID="+this.sessionID+"&fpc="+this.fpc+"&rurl="+encodeURIComponent(this.rurl);var a=new Image(1,1);a.src=lurl;a.onload=function(){return};this.pageViewLogged=true};this.initialize=function(){if(typeof(SHARETHIS)=="undefined"){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=this._stFpc();this.pageViewLogged=false}else{this.fpc=SHARETHIS.fpc;this.sessionID=SHARETHIS.sessionID;this.pageViewLogged=true}this.hostname=location.host;this.location=location.pathname;this.rurl=this.dbrInfo();this.pURL=encodeURIComponent(document.location.href);this.ref=document.referrer;this.adNum=0;this.discoveryNum=0};this.initialize()};sharethis.globals=new sharethis.globals();sharethis.widgets.discovery=function(a,b){this.location="http://dd.sharethis.com/disc/index.2fd3bdf9b8e70eabfc085b8c3beccd29.html";this.defaults={width:300,height:450,domain:location.host,topic:"",fuzzy:2,borderStyle:"1px #58585A solid",backgroundStyle:"white",header:{visible:true,text:"What's being <b>Shared</b> right now!",style:""},footer:{visible:true,style:"",textStyle:""},topicCloud:{visible:true,style:"",title:"",itemStyle:"",topLevelItemsOnly:false},resultList:{visible:true,paginationVisible:true,resetVisible:true,lineVisible:true,numResults:4,numColumns:1,numTitleLines:2,numPages:4,startIndex:0,listStyle:"",titleStyle:"",anchorTitleStyle:""},time:{visible:true,defaultPeriod:7},metadata:{visible:true,type:""},ad:{visible:true,images:true,topic:"",style:"",intAd:true,labelPosition:"",labelText:""},image:{visible:false,type:"left"},tooltips:{visible:false},publisher:""};this.settings={};sharethis.utilities.merge(this.settings,this.defaults);sharethis.utilities.merge(this.settings,b);this.settings.sessionID=sharethis.globals.sessionID;this.settings.fpc=sharethis.globals.fpc;this.settings.pURL=sharethis.globals.pURL;this.settings.hostname=sharethis.globals.hostname;this.settings.location=sharethis.globals.location;this.settings.ref=sharethis.globals.ref;this.createQueryString=function(){var e=new Array("width","height","domain","topic","fuzzy","borderStyle","backgroundStyle","sessionID","fpc","pURL","publisher","hostname","location","ref");var h=new Array("visible","text","style");var l=new Array("visible","style","textStyle");var n=new Array("visible","style","itemStyle","topLevelItemsOnly","title");var f=new Array("visible","paginationVisible","resetVisible","lineVisible","numResults","numColumns","numTitleLines","numPages","startIndex","listStyle","titleStyle","anchorTitleStyle");var c=new Array("visible","defaultPeriod");var k=new Array("visible","type");var d=new Array("visible","type");var m=new Array("visible","images","topic","style","intAd","labelPosition","labelText");var j=new Array("visible");var g=new Array();for(i=0;i<e.length;i++){g.push(e[i]+"="+encodeURIComponent(this.settings[e[i]]))}for(i=0;i<h.length;i++){g.push("header."+h[i]+"="+encodeURIComponent(this.settings.header[h[i]]))}for(i=0;i<l.length;i++){g.push("footer."+l[i]+"="+encodeURIComponent(this.settings.footer[l[i]]))}for(i=0;i<n.length;i++){g.push("topicCloud."+n[i]+"="+encodeURIComponent(this.settings.topicCloud[n[i]]))}for(i=0;i<f.length;i++){g.push("resultList."+f[i]+"="+encodeURIComponent(this.settings.resultList[f[i]]))}for(i=0;i<c.length;i++){g.push("time."+c[i]+"="+encodeURIComponent(this.settings.time[c[i]]))}for(i=0;i<k.length;i++){g.push("metadata."+k[i]+"="+encodeURIComponent(this.settings.metadata[k[i]]))}for(i=0;i<d.length;i++){g.push("image."+d[i]+"="+encodeURIComponent(this.settings.image[d[i]]))}for(i=0;i<m.length;i++){g.push("ad."+m[i]+"="+encodeURIComponent(this.settings.ad[m[i]]))}for(i=0;i<j.length;i++){g.push("tooltips."+j[i]+"="+encodeURIComponent(this.settings.tooltips[j[i]]))}return g.join("&")};this.initialize=function(c,d){try{this.frame=document.createElement('<iframe name="stw_discovery'+sharethis.globals.discoveryNum+'" allowTransparency="true" style="body{background:transparent;},display=inline"></iframe>')}catch(e){this.frame=document.createElement("iframe");this.frame.allowTransparency="true";this.frame.setAttribute("allowTransparency","true")}this.frame.id="stw_discovery"+sharethis.globals.discoveryNum;this.frame.className="stw_discovery";this.frame.name="stw_discovery"+sharethis.globals.discoveryNum;this.frame.frameBorder="0";this.frame.scrolling="no";this.frame.width=this.settings.width+"px";this.frame.height=this.settings.height+"px";this.frame.src=this.location+"#"+this.createQueryString();c.appendChild(this.frame);try{window.frames[this.frame.name].location.replace(this.frame.src)}catch(e){}sharethis.globals.discoveryNum++};if(!sharethis.globals.pageViewLogged){sharethis.globals.logPageView(this.settings.publisher)}this.initialize(a,b)};sharethis.utilities.merge=function(a,b){for(attribute in b){if(typeof(a[attribute])!="object"){a[attribute]=b[attribute]}else{sharethis.utilities.merge(a[attribute],b[attribute])}}};sharethis.widgets.ads=function(a){this.location="http://ad.sharethis.com/api/getAds_ws.php";this.defaults={width:300,height:250,url:encodeURIComponent(document.location.href),keyword:"root",labelText:"advertisement",labelPosition:"q2",domain:location.host,numAds:1,outerWidth:0,images:false,iframe:false,publisher:""};this.settings={};sharethis.utilities.merge(this.settings,this.defaults);sharethis.utilities.merge(this.settings,a);this.settings.sessionID=sharethis.globals.sessionID;this.settings.fpc=sharethis.globals.fpc;this.settings.pURL=sharethis.globals.pURL;this.settings.hostname=sharethis.globals.hostname;this.settings.location=sharethis.globals.location;this.settings.rurl=sharethis.globals.rurl;this.settings.ref=sharethis.globals.ref;this.createQueryString=function(){var b=new Array("width","height","url","keyword","domain","labelText","labelPosition","publisher","fpc","numAds","sessionID","outerWidth","images","iframe","ref");var c=new Array();for(i=0;i<b.length;i++){c.push(b[i]+"="+encodeURIComponent(this.settings[b[i]]))}return c.join("&")};this.initialize=function(c){var b=this.location+"?"+this.createQueryString()+"&adNum="+sharethis.globals.adNum+"&ts"+(new Date()).getTime();document.write('<script type="text/javascript" src=\''+b+"'><\/script>");sharethis.globals.adNum++};if(!sharethis.globals.pageViewLogged){sharethis.globals.logPageView(this.settings.publisher)}this.initialize(a)}};