/* ShareThis Loader Version 2.1.0 12/30/08 ShareThis.com */ 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-c%32);X[((c+64>>9)<<4)+15]=c;var V=Array(80);var W=1732584193;var Y=-271733879;var Z=-1732584194;var a=271733878;var b=-1009589776;for(var f=0;f>16)+(F>>16)+(G>>16);return(H<<16)|(G&65535)}function rol(C,D){return(C<>>(32-D))}function str2binb(F){var G=Array();var E=(1<>5]|=(F.charCodeAt(H/chrsz)&E)<<(32-chrsz-H%32)}return G}function binb2hex(G){var H=hexcase?"0123456789ABCDEF":"0123456789abcdef";var F="";for(var E=0;E>2]>>((3-E%4)*8+4))&15)+H.charAt((G[E>>2]>>((3-E%4)*8))&15)}return F}function hash_page(B){return hex_sha1(B)}var stVisibleInterval=null;var readyTestInterval=null;var st_showing=false;var stautoclose=true;function SHARETHIS_merge(){var E={};for(var D=0,A=arguments.length;D0){this.script_host=array_url[2]}if(this.script_host.search(/sharethis/)<0){this.script_host="w.sharethis.com"}this.frameUrl="http://"+this.script_host+"/share/lightbox.html";this.postUrl="http://"+this.script_host+"/api/setCache_ws.php";if(SHARETHIS.options.button){SHARETHIS.options.button=SHARETHIS.getBool(SHARETHIS.options.button.toString())}if(SHARETHIS.options.popup){SHARETHIS.options.popup=SHARETHIS.getBool(SHARETHIS.options.popup.toString())}if(SHARETHIS.options.embeds){SHARETHIS.options.embeds=SHARETHIS.getBool(SHARETHIS.options.embeds.toString())}var init="#init";SHARETHIS.newwinfrag="#popup";for(var o in SHARETHIS.options){init=init+"/"+o+"="+encodeURIComponent(SHARETHIS.options[o]);SHARETHIS.newwinfrag=SHARETHIS.newwinfrag+"/"+o+"="+encodeURIComponent(SHARETHIS.options[o])}SHARETHIS.initstr=init;SHARETHIS.mainstframe.src=SHARETHIS.frameUrl+SHARETHIS.initstr}var o=new Shareable(properties,SHARETHIS_merge(SHARETHIS.options,options));if(typeof (o.properties.url)==="object"){try{o.properties.url=o.properties.url.href}catch(err){}}for(var prop in o.properties){try{o.properties[prop]=o.properties[prop].toString()}catch(err){}}var xInt="";var xInt2="";var sendDataInt="";var sendPopupDataInt="";if(o.options.popup){o.options.onmouseover=false;SHARETHIS.popupExists=true}else{if(SHARETHIS_TOOLBAR!==true){SHARETHIS.widgetExists=true}}o.idx=this.shareables.push(o)-1;var id="sharethis_"+o.idx;var oidx=o.idx;if(o.properties.url!==this.lastUrl){this.lastUrl=o.properties.url}else{this.logFlag=false}o.popup=function(e){if(SHARETHIS_TOOLBAR===true){if(st_showing===false){SHARETHIS.log("widget",o)}st_showing=true;clearInterval(stVisibleInterval);SHARETHIS.hideEmbeds();SHARETHIS.mainstframe.src=SHARETHIS.frameUrl+SHARETHIS.newwinfrag+"/guid_index="+oidx+"/guid="+SHARETHIS.guid;SHARETHIS.wrapper.style.visibility="visible";SHARETHIS.mainstframe.style.visibility="visible"}else{if((SHARETHIS.ready===true&&SHARETHIS.frameReady===true)||(SHARETHIS.popupExists===true&&SHARETHIS.ready==true&&SHARETHIS.widgetExists===false)||(SHARETHIS.popupExists===true&&SHARETHIS.ready==true&&SHARETHIS.frameReady===true)){if(st_showing===false){SHARETHIS.log("widget",o)}clearInterval(stVisibleInterval);if(o.element!==null){id=o.element.id;SHARETHIS.current_element=o.element}SHARETHIS.curr_offsetTop=Number(o.options.offsetTop);SHARETHIS.curr_offsetLeft=Number(o.options.offsetLeft);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;window.open(newwinurl,"newstframe","status=1,toolbar=0,width=354,height=440")}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){this.log("view",o)}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;i0){toReturn=true}else{if(variable.length==0){toReturn=false}}}}break}return toReturn}};this.luminescence=function(color){var rgb={};if(color.length===7){rgb=[parseInt("0x"+color.substring(1,3))/255,parseInt("0x"+color.substring(3,5))/255,parseInt("0x"+color.substring(5,7))/255]}else{if(color.length===4){rgb=[parseInt("0x"+color.substring(1,2))/15,parseInt("0x"+color.substring(2,3))/15,parseInt("0x"+color.substring(3,4))/15]}}var r=rgb[0],g=rgb[1],b=rgb[2];var min=Math.min(r,Math.min(g,b));var max=Math.max(r,Math.max(g,b));return(min+max)/2};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.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}var parse_url=/(.*?:\/\/)(.*?)(\/.*)/;var array_url=ST_script_src.match(parse_url);if(array_url.length>0){this.script_host=array_url[2]}if(this.script_host.search(/sharethis/)<0){this.script_host="w.sharethis.com"}this.frameUrl="http://"+this.script_host+"/share/lightbox.html";this.postUrl="http://"+this.script_host+"/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://"+this.script_host+"/button/css/sharethis.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="354px";this.mainstframe.height="450px";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){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.wrapper.appendChild(this.mainstframe);this.closebutton=document.createElement("a");this.closebutton.href="javascript:;";this.closebutton.title="close";this.closebutton.className="stclose";this.closebutton.onclick=stcloseWidget;this.closebutton.style.color="#fff";var closetext=document.createTextNode("X");this.closebutton.appendChild(closetext);this.closebutton.style.position="absolute";this.wrapper.appendChild(this.closebutton);this.defer(function(){if(SHARETHIS_TOOLBAR===true){document.body.appendChild(SHARETHIS.fp);SHARETHIS.postPopup();SHARETHIS_TOOLBAR_DIV.appendChild(SHARETHIS.wrapper);for(var o in options){if(o==="headerbg"){var l=SHARETHIS.luminescence(options[o]);SHARETHIS.closebutton.style.color=l>0.5?"#000":"#fff"}}}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);for(var o in options){if(o==="headerbg"){var l=SHARETHIS.luminescence(options[o]);SHARETHIS.closebutton.style.color=l>0.5?"#000":"#fff"}}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()",750)}}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()}function SHARETHIS_TEST(){SHARETHIS.mainstframe.src=SHARETHIS.frameUrl+"#test"}var _thisScript=null;function getShareThisScript(){var D=document.getElementsByTagName("script");var C=null;for(var B=0;B=0){C=D[B]}else{if(A.search(/.*sharethis.*\/widget\/\?/)>=0||A.search(/.*sharethis.*\/widget\/index/)>=0||A.search(/.*sharethis.*\/widget\/\?&/)>=0){C=D[B]}}}return C}_thisScript=getShareThisScript();if(_thisScript){SHARETHIS=new ShareThis(parseQueryString(_thisScript.src))}else{SHARETHIS=new ShareThis()}SHARETHIS.log("pview",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){};