if(typeof(stlib)=="undefined"){var stlib={}}if(!stlib.functions){stlib.functions=[];stlib.functionCount=0}stlib.global={};stlib.global.hash=document.location.href.split("#");stlib.global.hash.shift();stlib.global.hash=stlib.global.hash.join("#");stlib.dynamicOn=true;stlib.debugOn=false;stlib.debug={count:0,messages:[],debug:function(b,a){if(a&&(typeof console)!="undefined"){console.log(b)}stlib.debug.messages.push(b)},show:function(a){for(message in stlib.debug.messages){if((typeof console)!="undefined"){if(a){/ERROR/.test(stlib.debug.messages[message])?console.log(stlib.debug.messages[message]):null}else{console.log(stlib.debug.messages[message])}}}},showError:function(){stlib.debug.show(true)}};var _$d=function(a){stlib.debug.debug(a,stlib.debugOn)};var _$d0=function(){_$d(" ")};var _$d_=function(){_$d("___________________________________________")};var _$d1=function(a){_$d(_$dt()+"| "+a)};var _$d2=function(a){_$d(_$dt()+"|  * "+a)};var _$de=function(a){_$d(_$dt()+"ERROR: "+a)};var _$dt=function(){var b=new Date();var d=b.getHours();var a=b.getMinutes();var c=b.getSeconds();return d+":"+a+":"+c+" > "};stlib.json={c:{"\b":"b","\t":"t","\n":"n","\f":"f","\r":"r",'"':'"',"\\":"\\","/":"/"},d:function(a){return a<10?"0".concat(a):a},e:function(c,f,e){e=eval;delete eval;if(typeof eval==="undefined"){eval=e}f=eval(""+c);eval=e;return f},i:function(c,b,a){return 1*c.substr(b,a)},p:["","000","00","0",""],rc:null,rd:/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,rs:/(\x5c|\x2F|\x22|[\x0c-\x0d]|[\x08-\x0a])/g,rt:/^([0-9]+|[0-9]+[,\.][0-9]{1,3})$/,ru:/([\x00-\x07]|\x0b|[\x0e-\x1f])/g,s:function(a,b){return"\\".concat(stlib.json.c[b])},u:function(a,b){var c=b.charCodeAt(0).toString(16);return"\\u".concat(stlib.json.p[c.length],c)},v:function(b,a){return stlib.json.types[typeof result](result)!==Function&&(a.hasOwnProperty?a.hasOwnProperty(b):a.constructor.prototype[b]!==a[b])},types:{"boolean":function(){return Boolean},"function":function(){return Function},number:function(){return Number},object:function(a){return a instanceof a.constructor?a.constructor:null},string:function(){return String},"undefined":function(){return null}},$$:function(a){function b(f,d){d=f[a];delete f[a];try{stlib.json.e(f)}catch(e){f[a]=d;return 1}}return b(Array)&&b(Object)},encode:function(){var c=arguments.length?arguments[0]:this,a,g;if(c===null){a="null"}else{if(c!==undefined&&(g=stlib.json.types[typeof c](c))){switch(g){case Array:a=[];for(var f=0,d=0,b=c.length;d<b;d++){if(c[d]!==undefined&&(g=stlib.json.encode(c[d]))){a[f++]=g}}a="[".concat(a.join(","),"]");break;case Boolean:a=String(c);break;case Date:a='"'.concat(c.getFullYear(),"-",stlib.json.d(c.getMonth()+1),"-",stlib.json.d(c.getDate()),"T",stlib.json.d(c.getHours()),":",stlib.json.d(c.getMinutes()),":",stlib.json.d(c.getSeconds()),'"');break;case Function:break;case Number:a=isFinite(c)?String(c):"null";break;case String:a='"'.concat(c.replace(stlib.json.rs,stlib.json.s).replace(stlib.json.ru,stlib.json.u),'"');break;default:var f=0,e;a=[];for(e in c){if(c[e]!==undefined&&(g=stlib.json.encode(c[e]))){a[f++]='"'.concat(e.replace(stlib.json.rs,stlib.json.s).replace(stlib.json.ru,stlib.json.u),'":',g)}}a="{".concat(a.join(","),"}");break}}}return a},decode:function(a){if(typeof(a)=="string"){var c=null;try{if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){c=window.JSON&&window.JSON.parse?window.JSON.parse(a):(new Function("return "+a))();return c}else{return null}}catch(b){}}}};try{stlib.json.rc=new RegExp('^("(\\\\.|[^"\\\\\\n\\r])*?"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$')}catch(z){stlib.json.rc=/^(true|false|null|\[.*\]|\{.*\}|".*"|\d+|\d+\.\d+)$/}stlib.cookie={setCookie:function(d,n,q){var c=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1);var b=(navigator.userAgent.indexOf("MSIE")!=-1);if(c||b){var s=(q)?q*24*60*60:0;var k=document.createElement("div");k.setAttribute("id",d);k.setAttribute("type","hidden");document.body.appendChild(k);var a=document.getElementById(d),e=document.createElement("form");try{var m=document.createElement('<iframe name="'+d+'" ></iframe>')}catch(l){m=document.createElement("iframe")}m.name=d;m.src="javascript:false";m.style.display="none";a.appendChild(m);e.action=(("https:"==document.location.protocol)?"https://sharethis.com/":"http://sharethis.com/")+"account/setCookie.php";e.method="POST";var j=document.createElement("input");j.setAttribute("type","hidden");j.setAttribute("name","name");j.setAttribute("value",d);e.appendChild(j);var r=document.createElement("input");r.setAttribute("type","hidden");r.setAttribute("name","value");r.setAttribute("value",n);e.appendChild(r);var p=document.createElement("input");p.setAttribute("type","hidden");p.setAttribute("name","time");p.setAttribute("value",s);e.appendChild(p);e.target=d;a.appendChild(e);e.submit()}else{if(q){var h=new Date();h.setTime(h.getTime()+(q*24*60*60*1000));var f="; expires="+h.toGMTString()}else{var f=""}var g=d+"="+escape(n)+f;g+="; domain="+escape(".sharethis.com")+";path=/";document.cookie=g}},getCookie:function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}},deleteCookie:function(d){var c=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1);var b=(navigator.userAgent.indexOf("MSIE")!=-1);if(c||b){var g=document.createElement("div");g.setAttribute("id",d);g.setAttribute("type","hidden");document.body.appendChild(g);var a=document.getElementById(d),e=document.createElement("form");try{var k=document.createElement('<iframe name="'+d+'" ></iframe>')}catch(h){k=document.createElement("iframe")}k.name=d;k.src="javascript:false";k.style.display="none";a.appendChild(k);e.action=(("https:"==document.location.protocol)?"https://sharethis.com/":"http://sharethis.com/")+"account/deleteCookie.php";e.method="POST";var f=document.createElement("input");f.setAttribute("type","hidden");f.setAttribute("name","name");f.setAttribute("value",d);e.appendChild(f);e.target=d;a.appendChild(e);e.submit()}else{var l="/";var j=".sharethis.com";document.cookie=d.replace(/^\s+|\s+$/g,"")+"="+((l)?";path="+l:"")+((j)?";domain="+j:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}},setFpcCookie:function(a,g){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=stlib.cookie.getDomain();d+="; domain="+escape(e)+";path=/";document.cookie=d},getFpcCookie:function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}},getDomain:function(){var b=document.domain.split(/\./);var a="";if(b.length>1){a="."+b[b.length-2]+"."+b[b.length-1]}return a}};stlib.validate={regexes:{notEncoded:/(%[^0-7])|(%[0-7][^0-9a-f])|["{}\[\]\<\>\\\^`\|]/gi,tooEncoded:/%25([0-7][0-9a-f])/gi,publisher:/^(([a-z]{2}(-|\.))|)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,url:/^(http|https):\/\/([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*)/i,fpc:/^[0-9a-f]{7}-[0-9a-f]{11}-[0-9a-f]{7,8}-[0-9]*$/i,sessionID:/^[0-9]*\.[0-9a-f]*$/i,title:/.*/,description:/.*/,buttonType:/^(chicklet|vcount|hcount|large|custom|button|)$/,comment:/.*/,destination:/.*/,source:/.*/,image:/(^(http|https):\/\/([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*))|^$/i,sourceURL:/^(http|https):\/\/([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*)/i,sharURL:/(^(http|https):\/\/([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*))|^$/i}};if(typeof(stlib.data)=="undefined"){stlib.data={bInit:false,publisherKeySet:false,pageInfo:{},shareInfo:{},resetPageData:function(){stlib.data.pageInfo.fpc="ERROR";stlib.data.pageInfo.sessionID="ERROR";stlib.data.pageInfo.sourceURL="ERROR";stlib.data.pageInfo.hostname="ERROR";stlib.data.pageInfo.location="ERROR"},resetShareData:function(){stlib.data.shareInfo={};stlib.data.shareInfo.url="ERROR";stlib.data.shareInfo.sharURL="";stlib.data.shareInfo.buttonType="ERROR";stlib.data.shareInfo.destination="ERROR";stlib.data.shareInfo.source="ERROR"},resetData:function(){stlib.data.resetPageData();stlib.data.resetShareData()},validate:function(){var a=stlib.validate.regexes;function b(d,f){if(f!=encodeURIComponent(f)){a.notEncoded.test(f)?_$de(d+" not encoded"):null;a.tooEncoded.test(f)?_$de(d+" has too much encoding"):null}var e=a[d]?a[d].test(decodeURIComponent(f)):true;if(!e){_$de(d+" failed validation")}}var c=stlib.data.pageInfo;for(param in c){b(param,c[param])}c=stlib.data.shareInfo;for(param in c){b(param,c[param])}},init:function(){if(!stlib.data.bInit){stlib.data.bInit=true;stlib.data.resetData();stlib.data.set("url",document.location.href,"shareInfo");if(!stlib.hash.doNotHash){stlib.hash.init();stlib.data.set("shareHash",stlib.hash.shareHash,"pageInfo");stlib.data.set("incomingHash",stlib.hash.incomingHash,"pageInfo")}else{stlib.data.set("shareHash","optout","pageInfo");stlib.data.set("incomingHash","optout","pageInfo")}var e=stlib.hash.updateParams();stlib.data.set("url",e+"#"+stlib.data.get("shareHash","pageInfo"),"shareInfo");if(stlib.data.publisherKeySet!=true){stlib.data.set("publisher","ur.00000000-0000-0000-0000-000000000000","pageInfo")}stlib.fpc.createFpc();stlib.data.set("fpc",stlib.fpc.cookieValue,"pageInfo");var b=(new Date()).getTime().toString();var f=Number(Math.random().toPrecision(5).toString().substr(2)).toString();stlib.data.set("sessionID",b+"."+f,"pageInfo");stlib.data.set("sourceURL",document.location.href,"pageInfo");stlib.data.set("hostname",document.location.hostname,"pageInfo");stlib.data.set("location",document.location.pathname,"pageInfo");var d=document.referrer;var g=d.replace("http://","").replace("https://","").split("/");var c=g.shift();var a=g.join("/");stlib.data.set("refDomain",c,"pageInfo");stlib.data.set("refQuery",a,"pageInfo")}},setPublisher:function(a){stlib.data.set("publisher",a,"pageInfo");stlib.data.publisherKeySet=true},setSource:function(c,a){var b="";if(a){if(a.toolbar){b="toolbar"+c}else{if(a.page&&a.page!="home"&&a.page!=""){b="chicklet"+c}else{b="button"+c}}}else{b=c}stlib.data.set("source",b,"shareInfo")},set:function(a,c,b){_$d_();_$d1("Setting: "+a+": "+c);if(typeof(c)=="number"){stlib.data[b][a]=c}else{if(typeof(c)=="undefined"||c==null){_$d1("Value undefined or null")}else{_$d1("Stripping HTML: "+a+": "+c.replace(/<[^<>]*>/gi," "));_$d1("Unescaping: "+a+": "+unescape(c.replace(/<[^<>]*>/gi," ")));_$d1("Escape percent: "+a+": "+unescape(c.replace(/<[^<>]*>/gi," ")).replace(/%/gi,"%25"));_$d1("Decoding: "+a+": "+decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi," ")).replace(/%/gi,"%25")));_$d1("Encoding: "+a+": "+encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi," ")).replace(/%/gi,"%25"))));stlib.data[b][a]=encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi," ")).replace(/%/gi,"%25")))}}},get:function(a,b){if(stlib.data[b]&&stlib.data[b][a]){return decodeURIComponent(stlib.data[b][a])}else{return false}},unset:function(a,b){if(stlib.data[b]&&stlib.data[b][a]){delete stlib.data[b][a]}}};stlib.data.resetData()}stlib.hash={doNotHash:true,hashAddressBar:false,doNotCopy:true,prefix:"sthash",shareHash:"",incomingHash:"",validChars:["1","2","3","4","5","6","7","8","9","0","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],servicePreferences:{linkedin:"param",stumbleupon:"param",bebo:"param"},hashDestination:function(b){var c=b.substring(0,2)+b.substring(b.length-2,b.length);var a=function(d,e){if(d.charCodeAt(e)==122){return"a"}return String.fromCharCode(d.charCodeAt(e)+1)};return a(c,0)+a(c,1)+a(c,2)+a(c,3)},getHash:function(){var c=false;var b="";var d=document.location.href;d=d.split("#").shift();var a=d.split("?");if(a.length>1){a=a[1].split("&");for(arg in a){try{if(a[arg].substring(0,6)=="sthash"){c=true;b=a[arg]}}catch(e){}}if(c){return b}else{return document.location.hash.substring(1)}}else{return document.location.hash.substring(1)}},clearHash:function(){if(document.location.hash.indexOf("sthash")>-1){document.location.hash=""}},init:function(){var b="";var a=stlib.hash.validChars.length;for(i=0;i<8;i++){b+=stlib.hash.validChars[Math.random()*a|0]}if(stlib.hash.getHash()==""){stlib.hash.shareHash=stlib.hash.prefix+"."+b}else{var c=stlib.hash.getHash().split(".");var d=c.shift();if(d==stlib.hash.prefix||d==stlib.hash.prefix){stlib.hash.incomingHash=stlib.hash.getHash();stlib.hash.shareHash=stlib.hash.prefix+"."+c.shift()+"."+b}else{stlib.hash.shareHash=stlib.hash.prefix+"."+b}}if(stlib.hash.hashAddressBar){document.location.hash=stlib.hash.shareHash}else{stlib.hash.clearHash()}if(!stlib.hash.doNotCopy){stlib.hash.copyPasteInit()}},checkURL:function(){var a=stlib.data.get("destination","shareInfo");var d=stlib.hash.updateParams(a);var b="."+stlib.hash.hashDestination(a);stlib.hash.updateDestination(b);if(typeof(stlib.hash.servicePreferences[a])!="undefined"){if(stlib.hash.servicePreferences[a]=="param"){_$d1("Don't use hash, use params");_$d2(d);if(d.split("?").length>1){var c=d.split("?")[1].split("&");var e=false;for(arg in c){if(c[arg].split(".")[0]=="sthash"){e=true}}if(e){stlib.data.set("url",d,"shareInfo")}else{stlib.data.set("url",d+"&"+stlib.data.pageInfo.shareHash,"shareInfo")}}else{stlib.data.set("url",d+"?"+stlib.data.pageInfo.shareHash,"shareInfo")}}else{_$d1("Using Hash");stlib.data.set("url",d+"#"+stlib.data.pageInfo.shareHash,"shareInfo")}}else{_$d1("Not using custom destination hash type");stlib.data.set("url",d+"#"+stlib.data.pageInfo.shareHash,"shareInfo")}},updateParams:function(a){var f=stlib.data.get("url","shareInfo").split("#").shift();var e=/(\?)sthash\.[a-zA-z0-9]{8}\.[a-zA-z0-9]{8}/;var d=/(&)sthash\.[a-zA-z0-9]{8}\.[a-zA-z0-9]{8}/;var c=/(\?)sthash\.[a-zA-z0-9]{8}/;var b=/(&)sthash\.[a-zA-z0-9]{8}/;if(e.test(f)){f=f.replace(e,"?"+stlib.data.pageInfo.shareHash)}else{if(d.test(f)){f=f.replace(d,"&"+stlib.data.pageInfo.shareHash)}else{if(c.test(f)){f=f.replace(c,"?"+stlib.data.pageInfo.shareHash)}else{if(b.test(f)){f=f.replace(b,"&"+stlib.data.pageInfo.shareHash)}}}}return f},updateDestination:function(b){var a=/sthash\.[a-zA-z0-9]{8}\.[a-zA-z0-9]{8}\.[a-z]{4}/;var c=/sthash\.[a-zA-z0-9]{8}\.[a-z]{4}/;_$d_();_$d1("Updating Destination");if(a.test(stlib.data.pageInfo.shareHash)){_$d2(stlib.data.pageInfo.shareHash.substring(0,23));stlib.data.pageInfo.shareHash=stlib.data.pageInfo.shareHash.substring(0,23)+b}else{if(c.test(stlib.data.pageInfo.shareHash)){_$d2(stlib.data.pageInfo.shareHash.substring(0,15));stlib.data.pageInfo.shareHash=stlib.data.pageInfo.shareHash.substring(0,15)+b}else{stlib.data.pageInfo.shareHash+=b}}},copyPasteInit:function(){var a=document.getElementsByTagName("body")[0];var c=document.createElement("div");c.style.position="absolute";c.style.top="-1999px";c.style.left="-1988px";a.appendChild(c);c.innerHTML="ShareThis Copy and Paste";var b=document.location.href.split("#").shift();var d="#"+stlib.hash.shareHash;if(document.attachEvent){a.oncopy=function(){var f=document.selection.createRange();c.innerHTML=stlib.hash.selectionModify(f.text);var e=document.body.createTextRange();e.moveToElementText(c);e.select();setTimeout(function(){f.select()},1)}}else{if(document.addEventListener){a.oncopy=function(h){var g=document.getSelection();c.innerHTML=stlib.hash.selectionModify(g);var f=document.createRange();f.selectNodeContents(c);var j=g.getRangeAt(0);g.removeAllRanges();g.addRange(f);setTimeout(function(){g.removeAllRanges();g.addRange(j)},0)}}}},selectionModify:function(c){c=""+c;_$d_();_$d1("Copy Paste");var d=/^((http|https):\/\/([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*))/i;var a=/^([a-z0-9!'\(\)\*\.\-\+:]*(\.)[a-z0-9!'\(\)\*\.\-\+:]*)((\/[a-z0-9!'\(\)\*\.\-\+:]*)*)/i;var b=document.location.href.split("#").shift();var e="#"+stlib.hash.shareHash;if(d.test(c)||a.test(c)){_$d2("is Url");return c.split("#")[0]+e}else{_$d2("is Not Url");return c+"<br /><br />See more at: "+b+e+".dpuf"}}};stlib.allServices={seven_live_seven:{title:"7Live7"},a1_webmarks:{title:"A1 Webmarks"},adfty:{title:"Adfty"},allvoices:{title:"Allvoices"},amazon_wishlist:{title:"Amazon Wishlist"},arto:{title:"Arto"},baidu:{title:"Baidu"},bebo:{title:"Bebo"},blinklist:{title:"Blinklist"},blip:{title:"Blip"},blogmarks:{title:"Blogmarks"},blogged:{title:"Blogged"},blogger:{title:"Blogger",type:"post"},brainify:{title:"Brainify"},buddymarks:{title:"BuddyMarks"},bus_exchange:{title:"Add to BX",aTitle:"Business Exchange"},care2:{title:"Care2"},chiq:{title:"chiq"},citeulike:{title:"CiteULike"},chiq:{title:"chiq"},connotea:{title:"Connotea"},corank:{title:"coRank"},corkboard:{title:"Corkboard"},current:{title:"Current"},dealsplus:{title:"Dealspl.us"},delicious:{title:"Delicious"},digg:{title:"Digg"},diigo:{title:"Diigo"},dotnetshoutout:{title:".net Shoutout"},dzone:{title:"DZone"},edmodo:{title:"Edmodo"},email:{title:"Email"},evernote:{title:"Evernote"},facebook:{title:"Facebook"},fark:{title:"Fark"},fashiolista:{title:"Fashiolista"},folkd:{title:"folkd.com"},formspring:{title:"Formspring"},fresqui:{title:"Fresqui"},friendfeed:{title:"FriendFeed"},funp:{title:"Funp"},fwisp:{title:"fwisp"},google:{title:"Google"},google_bmarks:{title:"Bookmarks"},google_reader:{title:"Google Reader"},google_translate:{title:"Google Translate"},hadash_hot:{title:"Hadash Hot"},hatena:{title:"Hatena"},hyves:{title:"Hyves"},identi:{title:"identi.ca"},instapaper:{title:"Instapaper"},jumptags:{title:"Jumptags"},kaboodle:{title:"Kaboodle"},linkagogo:{title:"linkaGoGo"},linkedin:{title:"LinkedIn"},livejournal:{title:"LiveJournal",type:"post"},meneame:{title:"Meneame"},messenger:{title:"Messenger"},mister_wong:{title:"Mr Wong"},mixx:{title:"Mixx"},myspace:{title:"MySpace"},n4g:{title:"N4G"},netlog:{title:"Netlog"},netvouz:{title:"Netvouz"},newsvine:{title:"Newsvine"},nujij:{title:"NUjij"},odnoklassniki:{title:"Odnoklassniki"},oknotizie:{title:"Oknotizie"},orkut:{title:"Orkut"},pinterest:{title:"Pinterest"},plaxo:{title:"Plaxo"},reddit:{title:"Reddit"},segnalo:{title:"Segnalo"},sharethis:{title:"ShareThis"},sina:{title:"Sina"},slashdot:{title:"Slashdot"},sonico:{title:"Sonico"},speedtile:{title:"Speedtile"},squidoo:{title:"Squidoo"},startaid:{title:"Startaid"},startlap:{title:"Startlap"},stumbleupon:{title:"StumbleUpon"},stumpedia:{title:"Stumpedia"},technorati:{title:"Technorati",dontUseEncodedURL:"Encoded URLs are not allowed"},twackle:{title:"Twackle"},typepad:{title:"TypePad",type:"post"},tumblr:{title:"Tumblr"},twitter:{title:"Tweet"},viadeo:{title:"Viadeo"},virb:{title:"Virb"},vkontakte:{title:"Vkontakte"},voxopolis:{title:"VOXopolis"},wordpress:{title:"WordPress",type:"post"},xanga:{title:"Xanga"},xerpi:{title:"Xerpi"},xing:{title:"Xing"},yammer:{title:"Yammer"},yigg:{title:"Yigg"}};stlib.allOauthServices={yahoo:{title:"Yahoo Pulse"},twitter:{title:"Twitter"},linkedIn:{title:"LinkedIn"},facebook:{title:"Facebook"}};stlib.allNativeServices={fblike:{title:"Facebook Like"},fbrec:{title:"Facebook Recommend"},fbsend:{title:"Facebook Send"},fbsub:{title:"Facebook Subscribe"},foursquaresave:{title:"Foursquare Save"},foursquarefollow:{title:"Foursquare Follow"},plusone:{title:"Google +1"},pinterestfollow:{title:"Pinterest Follow"},twitterfollow:{title:"Twitter Follow"},youtube:{title:"Youtube Subscribe"}};var _all_services=stlib.allServices;stlib.logger={loggerUrl:(("https:"==document.location.protocol)?"https://":"http://")+"l.sharethis.com/",constructParamString:function(){var a=stlib.data.pageInfo;var b="";for(param in a){b+=param+"="+a[param]+"&"}a=stlib.data.shareInfo;for(param in a){b+=param+"="+a[param]+"&"}return b.substring(0,b.length-1)},log:function(c,e){_$d_();_$d1("Log Event PageInfo:");_$d(stlib.data.pageInfo);_$d1("Log Event ShareInfo:");_$d(stlib.data.shareInfo);if(typeof(c)=="undefined"){_$de("event does not exist \nFor help, contact support@sharethis.com");return}if(stlib.data.pageInfo==null||stlib.data.shareInfo==null){_$de("stlib.logger does not have enough info to log \nFor help, contact support@sharethis.com");return}if(!stlib.data.get("url","shareInfo")){_$de("shareThisInfo.url do not exist \nFor help, contact support@sharethis.com");return}if(!stlib.data.get("sourceURL","pageInfo")){_$de("sharePageInfo.sourceURL do not exist \nFor help, contact support@sharethis.com");return}if(!stlib.data.get("fpc","pageInfo")){_$de("sharePageInfo.fpc do not exist \nFor help, contact support@sharethis.com");return}if(!stlib.data.get("sessionID","pageInfo")){_$de("sharePageInfo.sessionID do not exist \nFor help, contact support@sharethis.com");return}if(!stlib.data.get("destination","shareInfo")){if(c!="pview"){_$de("shareThisInfo.destination do not exist \nFor help, contact support@sharethis.com");return}}if(!stlib.data.get("buttonType","shareInfo")){if(c!="pview"){_$de("shareThisInfo.type do not exist \nFor help, contact support@sharethis.com");return}}if(!stlib.data.get("source","shareInfo")){_$de("shareThisInfo.source do not exist \nFor help, contact support@sharethis.com");return}if(c=="pview"){stlib.data.unset("destination","shareInfo");stlib.data.unset("buttonType","shareInfo")}else{stlib.data.unset("refDomain","pageInfo");stlib.data.unset("refQuery","pageInfo")}if(stlib.data.get("counter","shareInfo")){stlib.data.set("ts"+new Date().getTime()+"."+stlib.data.get("counter","shareInfo"),"","shareInfo");stlib.data.unset("counter","shareInfo")}else{stlib.data.set("ts"+new Date().getTime(),"","shareInfo")}var a=(c=="pview")?"pview":"log";var d=stlib.logger.loggerUrl+a+"?event="+c+"&"+stlib.logger.constructParamString();_$d1("Final Log Url:");_$d2(d);var b=new Image(1,1);b.src=d;b.onload=function(){return};e?e():null}};stlib.scriptLoader={loadJavascript:function(b,c){_$d_();_$d1("Loading JS: "+b);var a=stlib.scriptLoader;a.head=document.getElementsByTagName("head")[0];a.scriptSrc=b;a.script=document.createElement("script");a.script.setAttribute("type","text/javascript");a.script.setAttribute("src",a.scriptSrc);a.script.async=true;a.script.onload=c;a.script.onreadystatechange=function(){if(this.readyState=="loaded"){c()}};a.s=document.getElementsByTagName("script")[0];a.s.parentNode.insertBefore(a.script,a.s)},loadCSS:function(b,d){_$d_();_$d1("Loading CSS: "+b);var a=stlib.scriptLoader;var c;a.head=document.getElementsByTagName("head")[0];a.cssSrc=b;a.css=document.createElement("link");a.css.setAttribute("rel","stylesheet");a.css.setAttribute("type","text/css");a.css.setAttribute("href",b);a.css.setAttribute("id",b);setTimeout(function(){d();if(!document.getElementById(b)){c=setInterval(function(){if(document.getElementById(b)){clearInterval(c);d()}},100)}},100);a.head.appendChild(a.css)}};var widgetLogger={};stlib.gaLogger={configOptions:null,shareLog:function(a){if(typeof(widgetLogger.pubTracker)!="undefined"&&widgetLogger.pubTracker!=null&&typeof(widgetLogger.pubTracker._trackEvent)!="undefined"){if(stlib.gaLogger.configOptions){widgetLogger.pubTracker._trackEvent("ShareThis",a,stlib.gaLogger.configOptions.URL)}else{widgetLogger.pubTracker._trackEvent("ShareThis",a)}}if(typeof(window.postMessage)!=="undefined"&&document.referrer!==""){if(stlib.gaLogger.configOptions){parent.postMessage("ShareThis|click|"+a+"|"+stlib.gaLogger.configOptions.URL,document.referrer)}else{parent.postMessage("ShareThis|click|"+a,document.referrer)}}},initGA:function(c,a){stlib.gaLogger.configOptions=a;if(typeof(c)=="undefined"){_$de("tracker ID for GA required");return}if(typeof(_gat)=="undefined"){var b=(("https:"==document.location.protocol)?"https://ssl.":"http://www.")+"google-analytics.com/ga.js";stlib.scriptLoader.loadJavascript(b,function(){try{widgetLogger.ga=_gat._getTracker(c);if(typeof(widgetLogger.ga)!="undefined"&&widgetLogger.ga!==null&&typeof(widgetLogger.ga._trackEvent)!="undefined"){widgetLogger.ga._trackPageview();if(stlib.gaLogger.configOptions&&stlib.gaLogger.configOptions.tracking&&stlib.gaLogger.configOptions.publisherGA!==null){widgetLogger.pubTracker=_gat._getTracker(stlib.gaLogger.configOptions.publisherGA);widgetLogger.ga._trackEvent("PublisherGA-"+stlib.gaLogger.configOptions.tracking,stlib.gaLogger.configOptions.publisherGA,stlib.gaLogger.configOptions.publisher)}else{if(stlib.gaLogger.configOptions&&stlib.gaLogger.configOptions.publisherGA!==null){widgetLogger.pubTracker=_gat._getTracker(stlib.gaLogger.configOptions.publisherGA);widgetLogger.ga._trackEvent("PublisherGA-"+stlib.gaLogger.configOptions.tracking,stlib.gaLogger.configOptions.publisherGA,stlib.gaLogger.configOptions.publisher)}}}}catch(d){}})}else{if(typeof(widgetLogger.ga)!="undefined"&&widgetLogger.ga!==null&&typeof(widgetLogger.ga._trackEvent)!="undefined"){if(stlib.gaLogger.configOptions&&stlib.gaLogger.configOptions.tracking&&stlib.gaLogger.configOptions.publisherGA!=null){widgetLogger.pubTracker=_gat._getTracker(stlib.gaLogger.configOptions.publisherGA);widgetLogger.ga._trackEvent("PublisherGA-"+stlib.gaLogger.configOptions.tracking,stlib.gaLogger.configOptions.publisherGA,stlib.gaLogger.configOptions.publisher)}}}},gaLog:function(b,d,a,c){if(typeof(widgetLogger.ga)!="undefined"&&widgetLogger.ga!==null&&typeof(widgetLogger.ga._trackEvent)!="undefined"){widgetLogger.ga._trackEvent(b,d,a,c)}}};stlib.browser={iemode:null,firefox:null,firefoxVersion:null,safari:null,chrome:null,windows:null,mac:null,ieFallback:(/MSIE [6789]/).test(navigator.userAgent),init:function(){if(window.navigator.appName=="Microsoft Internet Explorer"){if(document.documentMode){stlib.browser.iemode=document.documentMode}else{stlib.browser.iemode=5;if(document.compatMode){if(document.compatMode=="CSS1Compat"){stlib.browser.iemode=7}}}}stlib.browser.firefox=(navigator.userAgent.indexOf("Firefox")!=-1)?true:false;stlib.browser.firefoxVersion=(navigator.userAgent.indexOf("Firefox/8.0")!=-1)?true:false;stlib.browser.safari=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)?true:false;stlib.browser.chrome=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")!=-1)?true:false;stlib.browser.windows=(navigator.userAgent.indexOf("Windows")!=-1)?true:false;stlib.browser.mac=(navigator.userAgent.indexOf("Macintosh")!=-1)?true:false},getIEVersion:function(){return stlib.browser.iemode},isFirefox:function(){return stlib.browser.firefox},firefox8Version:function(){return stlib.browser.firefoxVersion},isSafari:function(){return stlib.browser.safari},isWindows:function(){return stlib.browser.windows},isMac:function(){return stlib.browser.mac}};stlib.browser.init();stlib.pump=function(a,c,d){var b=this;this.isIframeReady=false;this.isIframeSending=false;this.getHash=function(e){var f=e.split("#");f.shift();return f.join("#")};this.broadcastInit=function(e){this.destination=e;_$d_("---------------------");_$d1("Initiating broadcaster:");_$d(this.destination)};this.broadcastSendMessage=function(e){_$d_("---------------------");_$d1("Initiating Send:");if(this.destination===window){if(stlib.browser.ieFallback){window.location.replace(window.location.href.split("#")[0]+"#"+e);_$d2("child can't communicate with parent");return}_$d2("Iframe to publisher: "+e);parent.postMessage("#"+e,document.referrer)}else{_$d2("Publisher to Iframe: "+e);if(stlib.browser.ieFallback){if(this.destination.contentWindow){this.destination.contentWindow.location.replace(this.destination.src+"#"+e);this.isIframeSending=true}return}this.destination.contentWindow.postMessage("#"+e,this.destination.src)}};this.receiverInit=function(g,k){_$d_("---------------------");_$d1("Initiating Receiver:");_$d(g);if(stlib.browser.ieFallback){this.callback=k;this.source=g;if(g===window){window.location.replace(window.location.href.split("#")[0]+"#");this.currentIframe=window.location.hash;var f="receiver"+stlib.functionCount;stlib.functions[f]=function(m){if(""!=window.location.hash&&"#"!=window.location.hash){var l=window.location.hash;m(l);window.location.replace(window.location.href.split("#")[0]+"#")}};stlib.functionCount++;var j="callback"+stlib.functionCount;stlib.functions[j]=k;stlib.functionCount++;setInterval("stlib.functions['"+f+"'](stlib.functions['"+j+"'])",200)}else{}return}var h=window.addEventListener?"addEventListener":"attachEvent";var e=h=="attachEvent"?"onmessage":"message";window[h](e,function(l){if(g==window){_$d1("arrived in iframe from:");_$d(l.origin);k(l.data)}else{if(l.origin.indexOf("sharethis.com")!=-1){_$d1("arrived in parent from:");_$d(l.origin);k(l.data)}else{_$d1("discarded event from:");_$d(l.origin)}}},false)};this.broadcastInit(a);this.receiverInit(c,d)};stlib.sharer={sharerUrl:(("https:"==document.location.protocol)?"https://ws.":"http://wd.")+"sharethis.com/api/sharer.php",regAuto:new RegExp(/(.*?)_auto$/),constructParamString:function(){stlib.data.validate();if(!stlib.hash.doNotHash){stlib.hash.checkURL()}var a=stlib.data.pageInfo;var b="?";for(param in a){b+=param+"="+encodeURIComponent(a[param])+"&";_$d1("constructParamStringPageInfo: "+param+": "+a[param])}a=stlib.data.shareInfo;for(param in a){b+=param+"="+encodeURIComponent(a[param])+"&";_$d1("constructParamStringShareInfo: "+param+": "+a[param])}return b.substring(0,b.length-1)},share:function(c){var b=stlib.sharer.constructParamString();_$d_();_$d1("Initiating a Share with the following url:");_$d2(stlib.sharer.sharerUrl+b);if(stlib.data.get("destination","shareInfo")=="plusone"||stlib.data.get("destination","shareInfo").match(stlib.sharer.regAuto)||(typeof(stlib.nativeButtons)!="undefined"&&stlib.nativeButtons.checkNativeButtonSupport(stlib.data.get("destination","shareInfo")))){var a=new Image(1,1);a.src=stlib.sharer.sharerUrl+b;a.onload=function(){return}}else{window.open(stlib.sharer.sharerUrl+b)}c?c():null}};stlib.sharer.oauth={callbacks:[],callbackCounter:1,API_Url:(("https:"==document.location.protocol)?"https://ws.":"http://wd.")+"sharethis.com/api/getApi.php",API_destinations:{facebook:"postFacebook",facebookfriend:"postFacebookUserWall",twitter:"postTwitter",yahoo:"postYahooPulse",linkedin:"postLinkedIn",blank:"postOauthError"},share:function(f){var e=stlib.sharer.oauth.API_destinations[stlib.data.shareInfo.destination];e=e?e:stlib.sharer.oauth.API_destinations.blank;var d=stlib.sharer.constructParamString();var c=stlib.sharer.oauth.callbackCounter+"ST";stlib.sharer.oauth.callbackCounter++;stlib.sharer.oauth.callbacks[c]=f;var a=stlib.cookie.getCookie("ShareUT");var b=stlib.cookie.getCookie("__stid");e=stlib.sharer.oauth.API_Url+d+"&service="+e+"&cb=stlib.sharer.oauth.callbacks['"+c+"']";_$d_();_$d1("Initiating an Oauth Share with the following url:");_$d2(e);stlib.scriptLoader.loadJavascript(e,function(){})}};if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}}var fragInstance=new stlib.pump(window,window,function(a){_$d1("Iframe received message: "+a);fragmentPump.checkFragment(a);!stlib.browser.ieFallback?fragInstance.broadcastSendMessage("Widget Ready"):null});try{!stlib.browser.ieFallback?fragInstance.broadcastSendMessage("Widget Ready"):null}catch(err){}var domReady=false;var bufferArgs=[];var bufferValue=[];var bufferRunArgs=[];var glo_jsonArray=[];var glo_jsonStr="";fragmentPump=new function(){this.initRun=false;this.checkFragment=function(message){if(message=="#Buttons Ready"){return}_$d_();_$d1("Checking Fragment: "+message);var args=message.split("/");var cmd=args.shift();cmd="fragmentPump."+cmd.substring(1);_$d2("Command: "+cmd);var temp="";if(true==/page=send/gi.test(message)||true==/page-=-send/gi.test(message)){showLoadingBox()}for(var i=0;i<args.length;i++){temp=temp+'"'+args[i].replace(/\"/gi,'\\"')+'"';if(i<(args.length-1)){temp=temp+","}}var evStr=cmd+"("+temp+")";if(cmd=="fragmentPump.init"||cmd=="fragmentPump.test"||cmd=="fragmentPump.data"||cmd=="fragmentPump.show"||cmd=="fragmentPump.popup"||cmd=="fragmentPump.widget"||cmd=="fragmentPump.light"){var tempFun=eval("window."+cmd);if(tempFun){var tempFucn=new Function(evStr);tempFucn()}}};this.init=function(){if(this.initRun===false){this.initRun=true;for(var i=0;i<arguments.length;i++){var num=i+1;if(arguments[i]!=""&&arguments[i]!=" "){addToOptionsBuffer(arguments[i])}}if(widget.domReady===true){processBuffer()}this.initRun=true}};this.data=function(){_$d_();_$d1("Running data() in fragPump.js:");_$d2("Arguments: ");_$d2(arguments);for(var i=0;i<arguments.length;i++){addToOptions(arguments[i])}};this.show=function(){initialPageTurn();showLoadingBox();if(widget.chicklet_loaded==false){replaceClass("closeX_replace","closeX");initWidget();checkLogin();widget.chicklet_loaded=true}if(this.initRun==false){return false}for(var i=0;i<arguments.length;i++){addToOptions(arguments[i])}return true};this.popup=function(){_$d_();_$d1("Running popup() in fragPump.js:");_$d2("Arguments: ");_$d2(arguments);initialPageTurn();widget.popup=true;if(widget.chicklet_loaded==false){initWidget();checkLogin();widget.chicklet_loaded=true}replaceClass("closeX_replace","closeX");clearInterval(fragmentPump.fragTimer);glo_options_popup=true;displayNum=24;for(var i=0;i<arguments.length;i++){var num=i+1;addToOptionsBuffer2(arguments[i])}if(widget.domReady===true){processBuffer()}this.initRun=true};this.widget=function(){moveServices(0);if(arguments.length){var kvPairs=arguments[0].split("=");for(var i=0;i<kvPairs.length;i+=2){switch(kvPairs[i]){case"screen":if(kvPairs[i+1]=="home"){if(widget.page!="send"){showHome()}}else{if(kvPairs[i+1]=="send"){showHome()}}break;case"publisherGA":setGlobals("publisherGA",kvPairs[i+1]);break}}}};this.light=function(){if(widget.chicklet_loaded==false){replaceClass("closeX_replace","closeX");initWidget();checkLogin();widget.chicklet_loaded=true}if(this.initRun==false){return false}for(var i=0;i<arguments.length;i++){addToOptionsLight(arguments[i])}initialPageTurn();addServiceLinks();return true}};function initialPageTurn(){if(widget.service=="email"){turnPage("email");return}else{if(widget.service=="sharethis"){turnPage("main");return}else{if(widget.service=="wordpress"){createPoster("wordpress");return}}}switch(widget.page){case"send":turnPage("email");break;case"home":turnPage("main");break;default:turnPage("main");break}}function addToOptionsBuffer(b){var c=[];c=b.split("=");c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1]);try{c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1])}catch(d){}bufferArgs.push(c[0]);bufferValue.push(c[1])}function addToOptionsBuffer2(b){var c=[];c=b.split("-=-");c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1]);try{c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1])}catch(d){}bufferArgs.push(c[0]);bufferValue.push(c[1])}function checkBufferArg(b){var c=false;for(var a=0;a<bufferRunArgs.length;a++){if(bufferRunArgs[a]==b){c=true}}return c}function processBuffer(){bufferArgs.reverse();bufferValue.reverse();for(var a=0;a<bufferArgs.length;a++){if(checkBufferArg(bufferArgs[a])===false){bufferRunArgs.push(bufferArgs[a]);setGlobals(bufferArgs[a],bufferValue[a])}}addServiceLinks()}function fragObj(a,b){this.frag=a;this.qs=b}function addToOptions(b){var c=[];c=b.split("=");c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1]);try{c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1])}catch(d){}setGlobals(c[0],c[1])}function addToOptionsLight(b){var c=[];c=b.split("-=-");c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1]);try{c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1])}catch(d){}setGlobals(c[0],c[1])}function addToOptions2(b){var c=[];c=b.split("=");c[0]=decodeURIComponent(c[0]);try{c[0]=decodeURIComponent(c[0]);c[1]=decodeURIComponent(c[1])}catch(d){}if(c[0]=="pageHost"){setGlobals("hostname",c[1])}else{if(c[0]=="pagePath"){setGlobals("location",c[1])}else{if(c[0]=="pageTitle"){setGlobals("title",c[1])}else{if(c[0]=="pageURL"){setGlobals("url",c[1])}else{if(c[0]=="pageImage"){setGlobals("image",c[1])}else{if(c[0]=="pageSummary"){setGlobals("summary",c[1])}}}}}}if(c[1]=="done"){if(fragmentPump.initRun===false){document.location.hash=glo_initFrag}glo_jsonStr=glo_jsonArray.join("");glo_jsonArray=[];processFrag()}else{if(c[0]=="jsonData"){glo_jsonArray.push(c[1])}}}function processFrag(){try{glo_jsonStr=decodeURIComponent(glo_jsonStr)}catch(c){}var b=glo_jsonStr;var d=[];try{d=stlib.json.decode(b);if(d==null){b=decodeURIComponent(b);d=stlib.json.decode(b)}}catch(c){b=decodeURIComponent(b);d=stlib.json.decode(b)}if(d&&d.length){for(var a=0;a<d.length;a++){setGlobals("title",d[a].title);setGlobals("type",d[a].type);setGlobals("summary",d[a].summary);setGlobals("content",d[a].content);setGlobals("url",d[a].url);setGlobals("icon",d[a].icon);setGlobals("category",d[a].category);setGlobals("updated",d[a].updated);setGlobals("published",d[a].published);setGlobals("author",d[a].author);setGlobals("thumb",d[a].icon);if(d[a].tags){setGlobals("glo_tags_array",d[a].tags)}if(d[a].description){setGlobals("glo_description_array",d[a].description)}}}addServiceLinks()}function setGlobals(d,f){if(d!="pageInfo"&&d!="shareInfo"){try{f=decodeURIComponent(f)}catch(e){}try{f=decodeURIComponent(f)}catch(e){}}if(f=="true"){f=true}else{if(f=="false"){f=false}}switch(d){case"url":widget.URL=f;if(widget.popup==true){initWidget()}var c=extractDomainFromURL(f);if(c==null){c=widget.URL}else{if(widget.hostname==null){widget.hostname=c}}widget.sharURL=f;break;case"title":widget.title=f;break;case"pUrl":if(widget.popup!=true||widget.URL==null){widget.URL=f;var c=extractDomainFromURL(f);if(c==null){c=f}else{if(widget.hostname==null){widget.hostname=c}}}break;case"fpc":widget.fpc=f;break;case"sessionID":widget.sessionID=f;break;case"publisher":widget.publisher=f;break;case"pageInfo":stlib.data.pageInfo=stlib.json.decode(f);break;case"summary":widget.summary=f;break;case"content":widget.content=f;break;case"icon":widget.icon=f;break;case"image":widget.thumb=f;break;case"category":widget.category=f;break;case"updated":widget.updated=f;break;case"author":widget.author=f;break;case"published":widget.published=f;break;case"thumb":widget.thumb=f;break;case"hostname":widget.hostname=f;break;case"location":widget.location=f;break;case"guid_index":widget.guid_index=f;break;case"page":widget.page=f;if(f&&f=="send"){getEmailService()}else{if(f&&f=="home"){showHome()}}break;case"toolbar":widget.toolbar=f;break;case"services":widget.services=f;break;case"headerTitle":if(f.length>0){document.getElementById("popular").innerHTML=f}break;case"headerfg":document.getElementById("popular").style.color=f;document.getElementById("doNotTrack").style.color=f;document.getElementById("trackPrivacySeperator").style.color=f;document.getElementById("privacy").style.color=f;document.getElementById("outercontainer").style.color=f;break;case"headerbg":document.getElementById("popular").style.background=f;document.getElementById("outercontainer").style.filter=null;document.getElementById("outercontainer").style.background=f;document.getElementById("footer").style.background=f;break;case"tracking":widget.tracking=true;if(widget.domReady==true){}break;case"linkfg":widget.linkfg=f;break;case"tabs":var b=new RegExp(/email|send/);if(b.test(f)==false){widget.email_service=false}if(b.test(f)==false){widget.sms_service=false}break;case"send_services":var b=new RegExp(/email/);if(b.test(f)==false){widget.email_service=false}b=new RegExp(/sms/);if(b.test(f)==false){widget.sms_service=false}break;case"exclusive_services":widget.showAllServices=false;break;case"post_services":if(widget.services==null){widget.services=f}else{widget.services+=","+f}break;case"stLight":widget.stLight=true;break;case"doneScreen":widget.doneScreen=f;break;case"jsref":widget.jsref=f;break;case"type":widget.type=f;break;case"service":widget.service=f;break;case"publisherGA":widget.publisherGA=f;break;case"relatedDomain":widget.relatedDomain=f;break;case"embeds":case"button":case"type":case"inactivefg":case"inactivebf":case"headerbg":case"style":case"charset":case"hash_flag":case"onmouseover":case"inactivebg":case"send_services":case"buttonText":case"offsetLeft":case"offsetTop":case"buttonText":break;default:break}}var widget=new function(){this.URL=null;this.title=null;this.sessionID=null;this.fpc=null;this.publisher=null;this.browser=null;this.services=[];this.publisher=null;this.icon;this.content;this.guid;this.guid_index;this.published;this.author;this.updated;this.summary;this.thumb;this.tags;this.hostname;this.location;this.headerTitle;this.headerfg;this.page;this.purl;this.sharCreated=false;this.all_services=stlib.allServices;this.top_services="email,facebook,twitter,digg,linkedin,stumbleupon,reddit,pinterest,tumblr,delicious";this.top_services_sprite_list="email,facebook,twitter,digg,linkedin,stumbleupon,reddit,pinterest,tumblr,delicious";this.exclusive_services=null;this.services="";this.sharebox={title:"Save",type:"sharebox"};this.chickletNumber=6;this.domReady=false;this.guid_index=0;this.page="home";this.toolbar=false;this.loginPoller=null;this.fsPoller=null;this.importPoller=null;this.metaInfo=null;this.mainCssLoaded=false;this.toolbar=false;this.pageTracker=null;this.pubTracker=null;this.tracking=false;this.lastURL=null;this.sharURL=null;this.poster=null;this.linkfg=null;this.email_service=true;this.sms_service=true;this.showAllServices=true;this.chicklet_loaded=false;this.segmentframe=null;this.segmentRun=false;this.ga=null;this.popup=false;this.cssInterval=null;this.stLight=false;this.optout=false;this.doneScreen=true;this.jsref="";this.type=null;this.service=null;this.publisherGA=null};var user=new function(){this.name=null;this.email=null;this.nickname=null;this.recents=null;this.chicklets=null;this.display=null;this.type=null;this.token=null;this.contacts=[];this.loggedIn=false;this.user_services=null;this.currentUserType=null;this.ThirdPartyUsers=null};function getServiceLink(c){if((widget.all_services[c]==undefined&&c!=="sharebox")||(widget.email_service==false&&c=="email")){var d=document.createElement("a");var b=document.createElement("li");b.appendChild(d);return null}var e=" rpChicklet";if(c=="email"){var d=document.createElement("a");d.className=c;d.className+=e;d.setAttribute("title",widget.all_services[c].title);d.setAttribute("id","post_"+c+"_link");if(d.attachEvent){d.attachEvent("onclick",function(){getEmailService()})}else{d.setAttribute("onclick","getEmailService();")}d.setAttribute("href","javascript:void(0);");d.appendChild(document.createTextNode(widget.all_services[c].title));if(widget.linkfg!=null){d.style.color=widget.linkfg}var b=document.createElement("li");b.appendChild(d);return b}else{if(c=="sharebox"){var d=document.createElement("a");d.className=c;d.className+=e;d.setAttribute("title",widget.sharebox.title);d.setAttribute("id","post_"+c+"_link");d.setAttribute("href","javascript:void(0);");d.appendChild(document.createTextNode(widget.sharebox.title));if(widget.linkfg!=null){d.style.color=widget.linkfg}var b=document.createElement("li");b.appendChild(d);return b}else{if(c=="wordpress"){var d=document.createElement("a");d.className=c;d.className+=e;d.setAttribute("title",widget.all_services[c].title);d.setAttribute("id","post_"+c+"_link");if(d.attachEvent){d.attachEvent("onclick",function(){createPoster("wordpress")})}else{d.setAttribute("onclick",'createPoster("wordpress")')}d.setAttribute("href","javascript:void(0);");d.appendChild(document.createTextNode(widget.all_services[c].title));if(widget.linkfg!=null){d.style.color=widget.linkfg}var b=document.createElement("li");b.appendChild(d);return b}else{var f="chicklet";if(widget.service==null){widget.service="legacy"}var d=document.createElement("a");d.className=c;d.className+=e;d.setAttribute("href","javascript:void(0);");d.setAttribute("title",widget.all_services[c].title);d.setAttribute("id","post_"+c+"_link");d.setAttribute("stservice",c);if(d.attachEvent){d.attachEvent("onclick",function(){serviceClicked(d)})}else{d.setAttribute("onclick","serviceClicked(this);")}d.appendChild(document.createTextNode(widget.all_services[c].title));if(widget.linkfg!=null){d.style.color=widget.linkfg}var b=document.createElement("li");b.appendChild(d);return b}}}}function turnPage(a){document.getElementById("mainPage").style.display="none";document.getElementById("emailPage").style.display="none";document.getElementById("posterPage").style.display="none";document.getElementById("donePage").style.display="none";document.getElementById("loadingPage").style.display="none";document.getElementById("captchaPage").style.display="none";document.getElementById(a+"Page").style.display="block";if(a=="main"){replaceStyles()}if(a=="email"){createShar()}}function getEmailService(a){stlib.gaLogger.gaLog("Chicklet","Email");stlib.gaLogger.shareLog("Email");widget.poster=null;updateServiceCount("email","Email");if(typeof(email)=="undefined"){odjs((("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/js/email.3c1db9fd74800cda5fca032eb90b8f5f.js":"http://w.sharethis.com/share4x/js/email.3c1db9fd74800cda5fca032eb90b8f5f.js"),function(){});turnPage("email")}else{turnPage("email");email.reClicked();document.getElementById("heading_div").firstChild.innerHTML=lang.strings.msg_email}}function emailServiceCallback(){document.getElementById("heading_div").firstChild.innerHTML=lang.strings.msg_email;if(widget.metaInfo){if(widget.metaInfo.require_captcha){}else{turnPage("email")}}else{turnPage("email")}document.getElementById("email_main").style.display="block";try{document.getElementById("txtYourAddr").focus()}catch(a){}if(user.email==null){document.getElementById("from_div").style.display="block"}else{if(user.email.length<2){document.getElementById("from_div").style.display="block"}else{document.getElementById("from_div").style.display="none"}}}function showLoadingBox(a){if(a){document.getElementById("loading").innerHTML=a}document.getElementById("loading_img").innerHTML='<img src="/images/spinner.gif" alt="'+lang.strings.msg_loading+'">';turnPage("loading")}function hideLoadingBox(){document.getElementById("loadingPage").style.display="none"}function addServiceLinks(){user.user_services=extractServicesFromCookie();var j;var c=document.getElementById("top_chicklets");this.services={abc:false};function b(k){if(typeof(k)=="undefined"||k==""){return}var l=getServiceLink(k);if(l!=null){g=document.createElement("div");g.className="largeChicklet lc_"+k;l.getElementsByTagName("a")[0].appendChild(g);c.appendChild(l);return true}return false}while(c.childNodes.length>=1){c.removeChild(c.firstChild)}var f=0;var h=widget.services.split(",");var g;for(var d=0;d<h.length;d++){if(typeof(this.services[h[d]])=="undefined"){if(b(h[d])){f++;this.services[h[d]]=true}}}if(!widget.showAllServices){return}if(user.user_services!==null){var a=user.user_services.split(",");for(var d=0;d<a.length;d++){if(f<10){if(typeof(this.services[a[d]])=="undefined"){if(b(a[d])){f++;this.services[a[d]]=true}}}}}var e=widget.top_services.split(",");for(var d=0;d<e.length;d++){if(f<10){if(typeof(this.services[e[d]])=="undefined"){if(b(e[d])){f++;this.services[h[d]]=true}}}}if(typeof(widget.all_services.sharethis)!="undefined"){delete stlib.allServices.sharethis}for(var d in widget.all_services){b(d)}replaceStyles()}function searchFocus(){var a=document.getElementById("chicklet_search_field");if(a.value==lang.strings.msg_search_services){a.value=""}stlib.gaLogger.gaLog("Search","focus")}function searchBlur(){var a=document.getElementById("chicklet_search_field");if(a.value==""){a.value=lang.strings.msg_search_services}}function searchAndDisplay(e){replaceStyles(true);var h=document.getElementById("chicklets");if(e==""){var a=document.getElementById("top_chicklets");for(g=0;g<a.childNodes.length;g++){var j=a.childNodes[g];var d=j.childNodes[0];d.innerHTML=d.innerHTML.replace("<span>","");d.innerHTML=d.innerHTML.replace("</span>","");d.className=d.className.replace(" searchedLi","")}return}try{var r=new RegExp("^"+e,"gi")}catch(f){return false}try{var c=new RegExp(e,"gi")}catch(f){return false}var b=[];var k=[];for(var g in widget.all_services){var n=widget.all_services[g].title;if(c.test(n)==true&&g!="sharebox"){k.push(g)}else{if(c.test(n)==true){}}if(r.test(n)==true&&g!="sharebox"){b.push(g)}}var l=document.getElementById("post_"+b[0]+"_link");l=l?l:document.getElementById("post_"+k[0]+"_link");if(l){var q=0;for(g=0;g<l.parentNode.parentNode.childNodes.length;g++){var j=l.parentNode.parentNode.childNodes[g];var d=j.childNodes[0];var p=d.childNodes[0].data;if(j==l.parentNode){q=Math.floor(g/2);d.innerHTML=d.innerHTML.replace("<span>","");d.innerHTML=d.innerHTML.replace("</span>","");try{var m=new RegExp(e+"(?=.*<di)","i")}catch(f){return false}d.innerHTML=d.innerHTML.replace(m,"<span>"+m.exec(d.innerHTML)+"</span>");d.className=d.className.replace(" searchedLi","");d.className=d.className+" searchedLi"}else{d.innerHTML=d.innerHTML.replace("<span>","");d.innerHTML=d.innerHTML.replace("</span>","");d.className=d.className.replace(" searchedLi","")}}moveServices(q,true)}widget.lastSearchTerm=e;return true}function extractServicesFromCookie(){var b=stlib.json.decode(stlib.cookie.getCookie("ServiceHistory"));var d=[];var c=null;for(o in b){d.push(b[o])}d.sort(serviceSort);if(d.length>0){c=""}for(var a=0;a<d.length;a++){if(a<d.length-1){c+=d[a].service+","}else{c+=d[a].service}}return c}function serviceClicked(c){var b=c.getAttribute("stservice");var a=c.getAttribute("title");updateServiceCount(b,a);stlib.data.resetShareData();stlib.data.set("url",widget.URL,"shareInfo");stlib.data.set("title",widget.title,"shareInfo");stlib.data.set("image",widget.thumb,"shareInfo");stlib.data.set("description",widget.summary,"shareInfo");stlib.data.set("buttonType","large","shareInfo");stlib.data.set("destination",b,"shareInfo");stlib.data.setSource("share4x",widget);stlib.sharer.share();stlib.gaLogger.gaLog("Share",b);showDoneScreen();stlib.gaLogger.shareLog(b)}function updateServiceCount(b,a){if(widget.all_services[b]==undefined||b=="sharebox"){return false}var e=stlib.json.decode(stlib.cookie.getCookie("ServiceHistory"));if(e==false||e==null||e.length<1){e={};e[b]={};e[b].service=b;e[b].title=a;e[b].count=1;stlib.cookie.setCookie("ServiceHistory",stlib.json.encode(e));return true}var g={};var f=null;var c=false;var h=[];for(o in e){if(e[o].service==b){e[o].count++;e[o].title=a;c=true}h.push(e[o])}if(c==false){e[b]={};e[b].service=b;e[b].title=a;e[b].count=1}else{h.sort(function(k,j){return j.count-k.count});e={};for(var d=0;d<h.length;d++){e[h[d].service]=h[d]}}stlib.cookie.setCookie("ServiceHistory",stlib.json.encode(e));return true}function serviceSort(d,c){if(d.count==c.count){return 0}else{if(d.count>c.count){return -1}else{return 1}}}function signIn(){window.open("http://sharethis.com/account/signin-widget","LoginWindow","status=1, height=450, width=970, resizable=0");clearInterval(widget.loginPoller);widget.loginPoller=setInterval(function(){checkForLoginCookie()},1000);stlib.gaLogger.gaLog("SignIn","Click")}function signOut(){if(typeof(window.localStorage)!=="undefined"){window.localStorage.clear()}stlib.gaLogger.gaLog("SignOut","Click");stlib.cookie.deleteCookie("ShareUT");stlib.cookie.deleteCookie("recents");stlib.cookie.deleteCookie("stOAuth");forgetUser();if(typeof(email)!=="undefined"){email.display=[];email.selected=[];document.getElementById("recents").style.display="none"}document.getElementById("signIn").style.display="block";document.getElementById("footer_info").style.display="none";document.getElementById("popular").innerHTML=lang.strings.msg_share;document.getElementById("notYou").innerHTML="";addServiceLinks()}function forgetUser(){user.name=null;user.email=null;user.nickname=null;user.recents=null;user.chicklets=null;user.display=null;user.type=null;user.token=null;user.contacts=[];user.loggedIn=false;user.user_services=null;user.currentUserType=null;user.ThirdPartyUsers=null;if(user.email==null&&typeof(email)!=="undefined"){document.getElementById("from_div").style.display="block"}}function checkLogin(){if(stlib.cookie.getCookie("ShareUT")!==false){var a=["return=json","cb=loginOnSuccess","service=getUserInfo"];a=a.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+a)}}function loginOnSuccess(b){stlib.gaLogger.gaLog("SignIn","Complete");if(b&&b.status=="SUCCESS"){user.email=b.data.email;user.name=b.data.name;user.nickname=b.data.nickname;user.recents=b.data.recipients;if(user.recents!==null){stlib.cookie.setCookie("recents",stlib.json.encode(user.recents))}user.display=user.email;user.currentUserType=b.data.CurrentUserType;user.ThirdPartyUsers=b.data.ThirdPartyUsers;var e=["facebook","twitter","linkedin"];for(var h=0;h<e.length;h++){if(user.ThirdPartyUsers!=null&&user.ThirdPartyUsers[e[h]]!=null){if(user.email!=null){user.ThirdPartyUsers[e[h]]=user.email}if(user.name!=null){user.ThirdPartyUsers[e[h]]=user.name}}}stlib.cookie.setCookie("stOAuth",stlib.json.encode(user.ThirdPartyUsers),365);if(b.data.CurrentUserType&&b.data.ThirdPartyUsers){if(user.name!==null){user.display="<span>"+user.name+"</span>"}else{user.display="<span>"+b.data.ThirdPartyUsers[b.data.CurrentUserType]+"</span>"}}if(typeof(window.localStorage)!=="undefined"){var f=stlib.cookie.getCookie("ShareUT");var g=window.localStorage;if(user.email!=null){g.email=user.email}if(user.name!=null){g.name=user.name}if(user.nickname!=null){g.nickname=user.nickname}if(user.currentUserType!=null){g.currentUserType=user.currentUserType}if(user.ThirdPartyUsers!=null){for(var h=0;h<e.length;h++){if(user.ThirdPartyUsers!=null&&user.ThirdPartyUsers[e[h]]!=null){if(user.email!=null){user.ThirdPartyUsers[e[h]]=user.email}if(user.name!=null){user.ThirdPartyUsers[e[h]]=user.name}}}g.ThirdPartyUsers=user.ThirdPartyUsers}var a=user.display;if(a!=null){a=a.replace(/ckimg/gi,"rpChicklet");g.display=a}}if(typeof(email)!=="undefined"){document.getElementById("from_div").style.display="none";email.getContacts();email.showRecents()}}document.getElementById("signIn").style.display="none";if(user.display!==null){var d=user.name;d=d?d:user.email;d=d?d:user.nickname;d=d.length>25?d.substring(0,23)+"...":d;d="<span>"+d+"</span>";document.getElementById("popular").innerHTML="<a id='header_email' target='_blank' href='http://sharethis.com/account' >Hi "+d+",</a> ";document.getElementById("notYou").innerHTML="Not You?"}document.getElementById("footer_info").style.display="block"}function checkForLoginCookie(){var a=stlib.cookie.getCookie("ShareUT");if(a){clearInterval(widget.loginPoller);checkLogin();clearInterval(widget.loginPoller)}}function checkForImportCookie(){var a=stlib.cookie.getCookie("StImported");var b=stlib.cookie.getCookie("ShareUT");if(b&&a&&a=="true"){stlib.cookie.deleteCookie("StImported");clearInterval(widget.importPoller);checkLogin();if(email){email.getContacts()}clearInterval(widget.importPoller)}}function getMainCss(){if(widget.mainCssLoaded==false){odcss((("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/css/share.1532b269c12f9266531452000cea04a2.css":"http://w.sharethis.com/share4x/css/share.1532b269c12f9266531452000cea04a2.css"),function(){},true);widget.mainCssLoaded=true}else{return false}}function showModal(a){document.getElementById("modalPage").style.display="block";document.getElementById("modal_text").innerHTML=a}function clearModal(){document.getElementById("modalPage").style.display="none"}function extractDomainFromURL(b,a){try{var d=b.replace(/(\w+):\/\/([^\/:]+)(:\d*)?([^# ]*)/,"$2");if(!a&&d.toLowerCase().indexOf("www.")==0){d=d.substring(4)}d=d.replace(/#.*?$/,"");return d}catch(c){return null}}function initWidget(){if(widget.URL==null){return true}else{var a=["return=json","url="+encodeURIComponent(widget.URL),"fpc="+widget.fpc,"cb=initWidgetOnSuccess","service=initWidget"];a=a.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+a);return true}}function initWidgetOnSuccess(a){if(a&&a.data){widget.metaInfo=a.data}replaceClass("closeX_replace","closeX");if(a&&a.data&&a.data.ga&&a.data.ga==true){stlib.gaLogger.initGA("UA-1645146-9",widget);if(typeof(email)!="undefined"){email.reClicked()}}}function replaceStyles(){var c=document.getElementById("top_chicklets");var d=c.getElementsByTagName("div");if(arguments.length>0){for(i=10;i<d.length;i++){var b=d[i].className.substring(17);if(widget.top_services_sprite_list.indexOf(b)!=-1){d[i].style.backgroundImage=(("https:"==document.location.protocol)?"url(https://ws.sharethis.com/images/sprite_32_small.png)":"url(http://w.sharethis.com/images/sprite_32_small.png)")}else{d[i].style.backgroundImage=(("https:"==document.location.protocol)?"url(https://ws.sharethis.com/images/sprite_32.png)":"url(http://w.sharethis.com/images/sprite_32.png)")}}}else{if(d.length>0){var a=d.length>10?10:d.length;for(i=0;i<a;i++){var b=d[i].className.substring(17);if(widget.top_services_sprite_list.indexOf(b)!=-1){d[i].style.backgroundImage=(("https:"==document.location.protocol)?"url(https://ws.sharethis.com/images/sprite_32_small.png)":"url(http://w.sharethis.com/images/sprite_32_small.png)")}else{d[i].style.backgroundImage=(("https:"==document.location.protocol)?"url(https://ws.sharethis.com/images/"+b+"_32.png)":"url(http://w.sharethis.com/images/"+b+"_32.png)");d[i].style.backgroundPosition="0px"}}}}}var jsonp={};jsonp.makeRequest=function(a){odjs(a,function(){})};function odjs(a,b){stlib.scriptLoader.loadJavascript(a,b)}function odcss(a,b){stlib.scriptLoader.loadCSS(a,b)}function initialize(){var e=false;var d=navigator.userAgent;var g=/bot|gomez|keynote/gi;if(d&&d!==null&&d.length>4){var c=d.match(g);if(c&&c!==null&&c.length>0){e=true}}else{e=true}if(fragmentPump.initRun==true){processBuffer()}getMainCss();widget.domReady=true;document.getElementById("chicklet_search_field").value=lang.strings.msg_search_services;document.getElementById("chicklet_search_field").onfocus=function(){searchFocus()};document.getElementById("chicklet_search_field").onblur=function(){searchBlur()};document.getElementById("signIn_text").onclick=function(){signIn()};document.getElementById("signOut").onclick=function(){signOut()};document.getElementById("notYou").onclick=function(){signOut();signIn()};document.getElementById("modal_button").onclick=function(){clearModal()};document.getElementById("popular").innerHTML=lang.strings.msg_share;document.getElementById("msg_share_success").innerHTML=lang.strings.msg_share_success;document.getElementById("btnShareAgain").innerHTML=lang.strings.msg_share_again;document.getElementById("btnFastShare").innerHTML=lang.strings.msg_fast_share;document.getElementById("relatedText").innerHTML=lang.strings.msg_related_shares;document.getElementById("msg_post_to").innerHTML=lang.strings.msg_post_to;document.getElementById("poster_message").innerHTML=lang.strings.msg_message;document.getElementById("poster_message2").innerHTML=lang.strings.msg_blog_url;document.getElementById("posterSubmit").innerHTML=lang.strings.msg_submit;document.getElementById("signIn_text").innerHTML=lang.strings.msg_signin;document.getElementById("signOut").innerHTML=lang.strings.msg_signout;if(stlib.cookie.getCookie("ShareUT")!==false){if(typeof(window.localStorage)!=="undefined"){var h=stlib.cookie.getCookie("ShareUT");var j=window.localStorage;if(typeof(j.email)!="undefined"){user.email=j.email}if(typeof(j.name)!="undefined"){user.name=j.name}if(typeof(j.nickname)!="undefined"){user.nickname=j.nickname}if(typeof(j.display)!="undefined"){user.display=j.display}if(typeof(j.currentUserType)!="undefined"){user.currentUserType=j.currentUserType}if(typeof(j.ThirdPartyUsers)!="undefined"){user.ThirdPartyUsers=j.ThirdPartyUsers}document.getElementById("signIn").style.display="none";if(user.display!==null){var f=user.name;f=f?f:user.email;f=f?f:user.nickname;document.getElementById("popular").innerHTML="<a id='header_email' target='_blank' href='http://sharethis.com/account' >Hi "+f+",</a> ";document.getElementById("notYou").innerHTML="Not You?"}document.getElementById("footer_info").style.display="block"}}if(stlib.cookie.getCookie("st_optout")!==false){var b=document.cookie;widget.optout=true;widget.fpc="optout"}}if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",initialize,false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("load",initialize,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",initialize)}}}function removeClass(a,b){var c=document.getElementById(a);c.className=c.className.replace(b,"")}function addClass(a,b){var c=document.getElementById(a);c.className+=" "+b}function replaceClass(a,e){var d=document.getElementsByTagName("*");var c=new RegExp(a,"ig");for(var b=0;b<d.length;b++){if(c.test(d[b].className)){d[b].className=d[b].className.replace(c,e)}else{if(c.test(d[b].className)){d[b].className=d[b].className.replace(c,e)}else{if(c.test(d[b].className)){d[b].className=d[b].className.replace(c,e)}}}}}function getRelatedShares(a){if(widget.doneScreen==false||a==null){document.getElementById("doneScreenContent").style.display="none";document.getElementById("msg_share_success").setAttribute("style","margin-top:40px;");return false}var e="";if(typeof(widget.relatedDomain)!="undefined"&&widget.relateDomain!=""){e=widget.relatedDomain}else{try{if(/(.*:\/\/)(.*?)(\/.*$)/.test(a)==true){var b=new RegExp(/(.*:\/\/)(.*?)(\/.*$)/);e=a.replace(b,"$2");e=encodeURIComponent(e)}else{var b=new RegExp(/(.*:\/\/)(.*?)/);e=a.replace(b,"$2");e=encodeURIComponent(e)}}catch(c){}}var d=["domain="+e,"return=json","url_limit=2","cb=getRelateShares_onSuccess","service=getLiveStream"];d=d.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+d)}function getRelateShares_onSuccess(f){var g=document.getElementById("relatedShares");while(g.childNodes.length>=1){g.removeChild(g.firstChild)}var j=document.createElement("div");j.className="clear";if(f&&f.urls&&f.url_count>0){for(var h=0;h<f.urls.length&&h<3;h++){var d=document.createElement("div");if(f.urls[h].img!=""){d.className="relatedShare hasImage";var m=(("https:"==document.location.protocol)?"https://ws":"http://w")+".sharethis.com/share5x/images/no-image.png";if(typeof(f.urls[h].imagehash)!=="undefined"){m="http://img.sharethis.com.s3.amazonaws.com/"+f.urls[h].imagehash+"/100_100.jpg"}var l=document.createElement("div");l.className="relatedImg";var e=document.createElement("img");e.setAttribute("stlink",f.urls[h].url);if(e.attachEvent){e.onclick=function(){stlib.gaLogger.gaLog("DoneScreen","ImgLinkClick");window.open(this.getAttribute("stlink"),"external","resizable=1,location=1,status=1,scrollbars=1,toolbar=1")}}else{e.setAttribute("onclick","stlib.gaLogger.gaLog('DoneScreen','ImgLinkClick');window.open('"+f.urls[h].url+"','external','resizable=1,location=1,status=1,scrollbars=1,toolbar=1');")}e.setAttribute("src",m);l.appendChild(e);d.appendChild(l)}else{d.className="relatedShare"}var c=document.createElement("div");c.className="relatedDetails";var b=document.createElement("span");b.className="relatedTitle link";b.setAttribute("stlink",f.urls[h].url);if(b.attachEvent){b.onclick=function(){stlib.gaLogger.gaLog("DoneScreen","TitleLinkClick");window.open(this.getAttribute("stlink"),"external","resizable=1,location=1,status=1,scrollbars=1,toolbar=1")}}else{b.setAttribute("onclick","stlib.gaLogger.gaLog('DoneScreen','TitleLinkClick');window.open('"+f.urls[h].url+"','external','resizable=1,location=1,status=1,scrollbars=1,toolbar=1');")}b.setAttribute("title",f.urls[h].title);b.innerHTML=f.urls[h].title.length>50?f.urls[h].title.substring(0,50)+"...":f.urls[h].title;c.appendChild(b);var a=document.createElement("span");a.className="relatedSource";a.appendChild(document.createTextNode(f.urls[h].domain.length>15?f.urls[h].domain.substring(0,15)+"...":f.urls[h].domain));c.appendChild(a);var k=document.createElement("span");k.className="relatedShareCount";k.appendChild(document.createTextNode(f.urls[h].shares+" share"+((f.urls[h].shares==1)?"":"s")));c.appendChild(k);d.appendChild(c);var j=document.createElement("div");j.className="clear";d.appendChild(j);g.appendChild(d)}}else{var d=document.createElement("div");document.getElementById("relatedText").style.display="none";var m=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/images/bullet_2.gif":"http://w.sharethis.com/share4x/images/bullet_2.gif");var l=document.createElement("div");l.className="relatedImg";var e=document.createElement("img");e.setAttribute("stlink","http://sharethis.com/publishers/getbutton/");if(e.attachEvent){e.onclick=function(){stlib.gaLogger.gaLog("DoneScreen","ImgLinkClick");window.open(this.getAttribute("stlink"),"external","resizable=1,location=1,status=1,scrollbars=1,toolbar=1")}}else{e.setAttribute("onclick","stlib.gaLogger.gaLog('DoneScreen','ImgLinkClick');window.open('http://sharethis.com/publishers/getbutton/','external','resizable=1,location=1,status=1,scrollbars=1,toolbar=1');")}e.setAttribute("src",m);l.appendChild(e);d.appendChild(l);d.className="relatedShare hasImage";d.setAttribute("style","margin-top:35px");var c=document.createElement("div");c.className="relatedDetails";var b=document.createElement("span");b.className="relatedTitle link";b.setAttribute("stlink","http://sharethis.com/publishers/getbutton/");if(b.attachEvent){b.onclick=function(){stlib.gaLogger.gaLog("DoneScreen","TitleLinkClick");window.open(this.getAttribute("stlink"),"external","resizable=1,location=1,status=1,scrollbars=1,toolbar=1")}}else{b.setAttribute("onclick","stlib.gaLogger.gaLog('DoneScreen','TitleLinkClick');window.open('http://sharethis.com/publishers/getbutton/','external','resizable=1,location=1,status=1,scrollbars=1,toolbar=1');")}b.innerHTML=lang.strings.msg_get_button;c.appendChild(b);var a=document.createElement("span");a.className="relatedSource";a.appendChild(document.createTextNode(lang.strings.msg_put_sharethis));c.appendChild(a);var k=document.createElement("span");k.className="relatedShareCount";c.appendChild(k);d.appendChild(c);var j=document.createElement("div");j.className="clear";d.appendChild(j);g.appendChild(d)}}function hideDoneScreen(){turnPage("main")}function showDoneScreen(){document.getElementById("msg_share_success").style.visibility="visible";getRelatedShares(widget.URL);turnPage("done");if(stlib.cookie.getCookie("ShareUT")){document.getElementById("btnShareAgain").onclick=function(){addServiceLinks();moveServices(0);hideDoneScreen();stlib.gaLogger.gaLog("DoneScreen","ShareAgain")};document.getElementById("btnShareAgain").style.display="block";document.getElementById("btnFastShare").style.display="none";document.getElementById("msg_share_success").innerHTML=lang.strings.msg_share_success}else{stlib.gaLogger.gaLog("DoneScreen","SeenFastShare");document.getElementById("btnFastShare").onclick=function(){showFastShareInfo()};document.getElementById("btnShareAgain").style.display="none";document.getElementById("btnFastShare").style.display="block";document.getElementById("msg_share_success").innerHTML=lang.strings.msg_share_success_fs}}function showFastShareInfo(){window.open("http://sharethis.com/account/signin-widget","LoginWindow","status=1, height=450, width=970, resizable=1");clearInterval(widget.fsPoller);widget.fsPoller=setInterval(function(){var a=stlib.cookie.getCookie("ShareUT");if(a){clearInterval(widget.fsPoller);showFastShareDone();clearInterval(widget.fsPoller)}},1000);stlib.gaLogger.gaLog("DoneScreen","FastShare")}function showFastShareDone(){clearInterval(widget.fsPoller);document.getElementById("successBox").style.display="none";document.getElementById("done_screen").style.display="none";document.getElementById("fsDoneBox").style.display="block";document.getElementById("fsExampleImg").src="images/fs-example.jpg";checkLogin();stlib.gaLogger.gaLog("DoneScreen","FastShareDone")}function showHome(){turnPage("main")}var poster={};function createPoster(a){if(widget.title==null){widget.title=widget.URL}if(a=="twitter"){updateServiceCount(a,"Tweet");stlib.gaLogger.gaLog("Twitter","poster_clicked");widget.poster="twitter";document.getElementById("poster_heading_service").innerHTML="Twitter";document.getElementById("poster_textArea").style.display="block";document.getElementById("poster_textArea").value="";createShar();document.getElementById("poster_main").style.display="block";document.getElementById("comment_box").style.display="block";document.getElementById("poster_input_div").style.display="none";document.getElementById("mainPage").style.display="none";document.getElementById("poster_textArea").onkeypress=poster.updateCounter;document.getElementById("poster_message_counter").style.display="block";turnPage("poster")}else{if(a=="wordpress"){updateServiceCount(a,"Wordpress");widget.poster="wordpress";stlib.gaLogger.gaLog("Wordpress","poster_clicked");document.getElementById("poster_heading_service").innerHTML="Wordpress";document.getElementById("poster_textArea").style.display="none";document.getElementById("comment_box").style.display="none";document.getElementById("poster_input_div").style.display="block";document.getElementById("poster_main").style.display="block";document.getElementById("mainPage").style.display="none";document.getElementById("poster_message_counter").style.display="none";document.getElementById("poster_message_counter").style.display="none";turnPage("poster")}}}poster.cancel=function(a){turnPage("main");widget.poster=null};poster.getCount=function(){var a=document.getElementById("poster_textArea");var b=a.value;if(b.length>=140){return false}else{return 140-b.length}};poster.updateCounter=function(d){try{var a=(window.event)?event.keyCode:d.keyCode}catch(b){a=0}var f=poster.getCount();var c=element=document.getElementById("counter");if(f===false){c.innerHTML=0;if(a!==0){return true}else{return false}}else{if(f<11){c.style.color="red"}else{c.style.color="#666666"}c.innerHTML=f}};poster.post=function(a){stlib.data.resetShareData();stlib.data.set("source","share4xPoster","shareInfo");stlib.data.set("buttonType","large","shareInfo");stlib.data.set("title",widget.title,"shareInfo");stlib.data.set("url",widget.URL,"shareInfo");stlib.data.set("sharURL",widget.sharURL,"shareInfo");stlib.data.set("status",document.getElementById("poster_textArea").value,"shareInfo");if(widget.poster=="twitter"){showLoadingBox(lang.strings.msg_posting_t);stlib.data.set("destination","twitter","shareInfo");stlib.sharer.oauth.share(poster.post_onSuccess)}else{if(widget.poster=="wordpress"){if(document.getElementById("poster_inputBox").value.length<1){showModal(lang.strings.msg_valid_blog);return false}else{if(widget.service==null){widget.service="legacy"}var b=document.getElementById("poster_inputBox").value;stlib.data.set("destination","wordpress","shareInfo");stlib.data.set("wpurl",b,"shareInfo");stlib.data.set("service",widget.service,"shareInfo");stlib.sharer.share();widget.poster=null;showDoneScreen();return true}}}return true};poster.post_onSuccess=function(a){widget.poster=null;showDoneScreen()};function createShar(){var b=widget.URL;if(b==widget.lastURL){var a=((widget.title!=null)?widget.title+" - ":"")+widget.sharURL;document.getElementById("poster_textArea").value=a;poster.updateCounter()}else{if(b!==""&&b!==" "&&b!==null&&!widget.sharCreated){document.getElementById("poster_textArea").value=lang.strings.msg_loading;widget.lastURL=b;var c=["return=json","cb=createShar_onSuccess","service=createSharURL","url="+encodeURIComponent(b),"sessionID="+widget.sessionID,"fpc="+widget.fpc];c=c.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+c)}}}function createShar_onSuccess(b){if(b.status=="SUCCESS"){widget.sharURL=b.data.sharURL;widget.sharCreated=true}var a=((widget.title!=null)?widget.title+" - ":"")+widget.sharURL;document.getElementById("poster_textArea").value=a;poster.updateCounter()}if(typeof(lang)=="undefined"){var lang={};lang.strings=new Object;lang.strings.msg_loading="Loading";lang.strings.msg_posting_t="Posting to Twitter";lang.strings.msg_text="Text to a Friend:";lang.strings.msg_email="Email to a Friend:";lang.strings.msg_sendign_inProgress="Sharing Message";lang.strings.msg_search_services="Search for services";lang.strings.msg_get_button="Get the Button!";lang.strings.msg_put_sharethis="Put ShareThis on your website or blog in minutes!";lang.strings.msg_valid_blog="Sorry, there was something wrong with that URL, please try again.";lang.strings.msg_post_wordpress="Post to Wordpress";lang.strings.msg_email_to="To:";lang.strings.msg_email_from="From:";lang.strings.msg_email_send="Send";lang.strings.msg_email_cancel="Cancel";lang.strings.msg_email_preview="Preview";lang.strings.msg_email_close_preview="Close Preview";lang.strings.msg_email_char_limit="2000 characters left";lang.strings.email_message="Message:";lang.strings.msg_email_privacy="Privacy Policy";lang.strings.msg_email_load_cont="Loading Contacts...";lang.strings.msg_import_serv="Import Contacts From";lang.strings.msg_email_captcha_info="Please type the words below:";lang.strings.msg_valid_email_add="Please enter a valid email address.";lang.strings.msg_valid_email_add_from='Please enter a valid email address in the "From" field.';lang.strings.msg_valid_recipients="Please enter a valid recipient";lang.strings.msg_captcha="Please enter the Captcha response.";lang.strings.msg_share="Share this with friends!";lang.strings.msg_view_all="View All";lang.strings.msg_hide_all="Hide All";lang.strings.msg_share_success="Your message was successfully shared!";lang.strings.msg_share_success_fs="Your message was successfully shared! Log-in with FastShare to share with just one click next time.";lang.strings.msg_share_again="Share Again";lang.strings.msg_fast_share="Enable FastShare";lang.strings.msg_related_shares="Popular Shares:";lang.strings.msg_post_to="Post to";lang.strings.msg_message="Message:";lang.strings.msg_blog_url="Blog URL";lang.strings.msg_submit="Submit";lang.strings.msg_friends="What are your friends sharing?";lang.strings.msg_my_acct="My Account";lang.strings.msg_signin="Sign In";lang.strings.msg_signout="Sign Out"}var stlib_slider={};stlib_slider.getValue;stlib_slider.createSlider=function(c,j,b,f,k,h,e){c.style.top=((b-j)/(f-j))*h-1+"px";c.style.backgroundImage=(("https:"==document.location.protocol)?"url(https://ws.sharethis.com/images/scroll.png)":"url(http://w.sharethis.com/images/scroll.png)");var a;stlib_slider.setValue=function(l){var m=(h-e)*l;c.style.top=(m-1)+"px"};d(c,"mousedown",function(m){replaceStyles(true);if(m.preventDefault){m.preventDefault()}var n=[];n.El=c;n.starty=m.pageY?m.pageY:m.clientY+document.documentElement.scrollTop;n.parent=c.parentNode;n.startTop=(c.style.top=="auto")||(c.style.top=="")?b:parseInt(c.style.top.replace(/px/i,""));a=function(r){var q=n;var u=r.pageY?r.pageY:r.clientY+document.documentElement.scrollTop;var p=u-q.starty;var t=q.startTop+p;t=t>h-e?h-e:t;t=t<0?0:t;c.style.top=(t-1)+"px";stlib_slider.getValue=function(){return t/(h-e)};if(k){k()}};function l(q){var p=q.relatedTarget||q.toElement;if(p){if(p.tagName.toLowerCase()=="html"){g(document,"mouseout",l,false);g(document,"mousemove",a,false)}}else{g(document,"mouseout",l,false);g(document,"mousemove",a,false)}}d(document,"mousemove",a,false);d(document,"mouseup",function(){g(document,"mouseout",l,false);g(document,"mousemove",a,false)},false);d(document,"mouseout",l,false)},false);function d(q,m,p,l){if(q.addEventListener){q.addEventListener(m,p,l);return true}else{if(q.attachEvent){var n=q.attachEvent("on"+m,p);return n}}}function g(q,m,p,l){if(q.removeEventListener){q.removeEventListener(m,p,l);return true}else{if(q.detachEvent){var n=q.detachEvent("on"+m,p);return n}}}};stlib_slider.createSlider(document.getElementById("sts_sliderKnob"),0,0,100,repositionServices,228,58);document.onselectstart=function(){var a=navigator.userAgent;var b=a.indexOf("IE 7")!=-1;b=a.indexOf("IE 8")!=-1?true:b;if(b){var c=document.getElementById("sts_sliderKnob");c.unselectable="on"}};function repositionServices(){var b=navigator.userAgent;var e=b.indexOf("IE 9")!=-1;e=b.indexOf("Firefox")!=-1?true:e;var d=stlib_slider.getValue();var c=document.getElementById("top_chicklets");var g=Math.floor((c.childNodes.length+1)/2);if(g<6){c.style.top="0px;"}else{var a=e?-46*(g-5)-15:-46*(g-5);var f=-(g*42.2)*d;f=f<a?a:f;c.style.top=f+"px"}}function moveServices(f,c){var a=document.getElementById("top_chicklets");if(f==0){a.style.top="0px";stlib_slider.setValue(0);var b=document.getElementById("chicklet_search_field");if(b!=null&&typeof(c)=="undefined"&&!c){b.value=lang.strings.msg_search_services}return}var e=Math.ceil(a.childNodes.length/2);var g=e-5;var d=stlib_slider.setValue((f+1)/(e-5)>1?1:(f+1)/(e-5));a.style.top=f>g?-((e-5)*46)+"px":-(f*46)+"px"}if(typeof(stlib.global.hash)=="string"&&stlib.global.hash.substring(0,5)=="popup"){var cleanHash="#"+stlib.global.hash;_$d_();_$d1("Popup initiated");_$d1(cleanHash);fragmentPump.checkFragment(cleanHash);_$d1("Done Checking Frag")};
