var STV="4.1.0-rc4";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>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>16)+(D>>16)+(C>>16);return(B<<16)|(C&65535)}function rol(A,B){return(A<>>(32-B))}function str2binb(D){var C=Array();var A=(1<>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>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;i0){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;i0||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')}}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;i1){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;i1){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){};