window.twttr=window.twttr||{};(function(){function m(c){c=c||window.event;for(var a=c.target||c.srcElement,b,d;a&&a.nodeName.toLowerCase()!=="a";)a=a.parentNode;if(a&&a.nodeName.toLowerCase()==="a"&&a.href)if(b=a.href.match(t)){b=Math.round(u/2-n/2);d=0;if(o>k)d=Math.round(o/2-k/2);window.open(a.href,"intent",v+",width="+n+",height="+k+",left="+b+",top="+d);c.returnValue=false;c.preventDefault&&c.preventDefault()}}function p(c){var a,b;for(b in c){a=w.apply(this,b.split("."));for(var d=0,e;e=a[d];d++)(new c[b](e)).render()}}function w(c,a){var b,d=[],e,g;try{if(document.querySelectorAll)d=document.querySelectorAll(c+"."+a);else if(document.getElementsByClassName){b=document.getElementsByClassName(a);for(e=0;g=b[e];e++)g.tagName.toLowerCase()==c&&d.push(g)}else{b=document.getElementsByTagName(c);var h=RegExp("\\b"+a+"\\b");for(e=0;g=b[e];e++)g.className.match(h)&&d.push(g)}}catch(j){}return d}function q(c){for(var a=[],b=0,d=c.length;b<d;b++)a.push(c[b]);return a}var t=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,v="scrollbars=yes,resizable=yes,toolbar=no,location=yes",n=550,k=420,o=screen.height,u=screen.width;if(!window.__twitterIntentHandler){if(document.addEventListener)document.addEventListener("click",m,false);else document.attachEvent&&document.attachEvent("onclick",m);window.__twitterIntentHandler=true}if(!twttr.widgets)twttr.widgets={};if(!twttr.widgets.host)twttr.widgets.host="platform{i}.twitter.com";if(typeof twttr.widgets.ignoreSSL==="undefined")twttr.widgets.ignoreSSL=false;var x=document.title,y=encodeURI(location.href),l=0,z={en:{vertical:[55,62],horizontal:[110,20],none:[55,20]},de:{vertical:[67,62],horizontal:[110,20],none:[67,20]},es:{vertical:[64,62],horizontal:[110,20],none:[64,20]},fr:{vertical:[65,62],horizontal:[110,20],none:[65,20]},it:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ko:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ja:{vertical:[80,62],horizontal:[130,20],none:[80,20]},ru:{vertical:[68,62],horizontal:[110,20],none:[68,20]},tr:{vertical:[66,62],horizontal:[110,20],none:[66,20]},pt:{vertical:[66,62],horizontal:[110,20],none:[66,20]}},A={en:1,de:1,es:1,fr:1,it:1,ko:1,ja:1,ru:1,tr:1,pt:1},B={vertical:1,horizontal:1,none:1},C={en:"Twitter For Websites: Tweet Button",de:"Twitter f\u00fcr Webseiten: Tweet-Schaltfl\u00e4che",es:"Twi`tter para sitios web: Bot\u00f3n para Twittear",fr:'Twitter pour votre site web : bouton "Tweeter"',it:"Tweeter per i siti web: Bottone Tweet",ja:"WEB\u30b5\u30a4\u30c8\u5411\u3051Twitter: \u30c4\u30a4\u30fc\u30c8\u30dc\u30bf\u30f3",ko:"Twitter \uc6f9\ubc84\uc804: \ud2b8\uc717 \ubc84\ud2bc",pt:"Twitter para websites: Bot\u00e3o de Tweet",ru:"\u0422\u0432\u0438\u0442\u0442\u0435\u0440 \u0434\u043b\u044f \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430: \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0422\u0432\u0438\u0442\u043d\u0443\u0442\u044c\u00bb",tr:"Web siteleri i\u00e7in Twitter: Tweetle Butonu"};twttr.TweetButton=function(c){this.originElement=c;var a=c.href.split("?")[1],b;if(a){b={};var d,e;if(a){a=a.split("&");for(e=0;d=a[e];e++){d=d.split("=");if(d.length==2)b[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}}b=b}else b={};b=b;a=b.count||c.getAttribute("data-count");e=b.lang||c.getAttribute("data-lang");this.text=b.text||c.getAttribute("data-text")||x;if(!(d=b.via)){if(!(d=c.getAttribute("data-via")))a:{var g=document.getElementsByTagName("a"),h=document.getElementsByTagName("link");d=/\bme\b/;var j=/^https?\:\/\/(www\.)?twitter.com\/(#!\/)?([a-zA-Z0-9_]+)\/?$/;g=q(g).concat(q(h));for(var f,i,r=0;i=g[r];r++){h=i.getAttribute("rel");i=i.getAttribute("href");if(h&&i&&h.match(d)&&(f=i.match(j))){d=f[3];break a}}d=void 0}d=d}this.via=d;if(!(f=b.url)){if(!(f=c.getAttribute("data-url"))){a:{f=document.getElementsByTagName("link");for(d=0;j=f[d];d++)if(j.getAttribute("rel")=="canonical"){f=j.getAttribute("href");d=void 0;if(f.match(/^https?:\/\//))f=f;else{d=location.host;if(location.port.length>0)d+=":"+location.port;f=f.match(/^\/[^\/]/)?[location.protocol,"//",d,f].join(""):[location.protocol,"//",d,location.pathname.replace(/\/([^\/]+)$/,"/"),f].join("")}break a}f=null}f=f||y}f=f}this.url=f;this.statusID=b.status_id||c.getAttribute("data-status-id");this.related=b.related||c.getAttribute("data-related");this.counturl=b.counturl||c.getAttribute("data-counturl");this.searchlink=b.searchlink||c.getAttribute("data-searchlink");this.placeid=b.placeid||c.getAttribute("data-placeid");B[a]||(a="horizontal");this.count=a;A[e]||(e="en");this.lang=e};(function(c,a){for(var b in a)c[b]=a[b];return c})(twttr.TweetButton.prototype,{parameters:function(){var c;c=this.statusID?{status_id:this.statusID}:{text:this.text,url:this.url,via:this.via,related:this.related,count:this.count,lang:this.lang,counturl:this.counturl,searchlink:this.searchlink,placeid:this.placeid};c._=(new Date).getTime();var a=[],b;for(b in c)c[b]!==null&&typeof c[b]!=="undefined"&&a.push(encodeURIComponent(b).replace(/\+/g,"%2B")+"="+encodeURIComponent(c[b]).replace(/\+/g,"%2B"));return a.sort().join("&")},render:function(){if(!twttr.TweetButton.fragment){twttr.TweetButton.fragment=document.createElement("div");twttr.TweetButton.fragment.innerHTML='<iframe allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" class="twitter-share-button twitter-count-'+this.count+'"></iframe>'}var c=twttr.TweetButton.fragment.firstChild.cloneNode(false),a=(window.location.protocol.match(/s\:$/)||0)&&!twttr.widgets.ignoreSSL?"https":"http",b=twttr.widgets.host.replace("{i}",l++);if(l==3)l=0;c.src=a+"://"+b+"/widgets/tweet_button.html?"+this.parameters();a=z[this.lang][this.count];c.style.width=a[0]+"px";c.style.height=a[1]+"px";c.title=C[this.lang];(a=this.originElement.parentNode)&&a.replaceChild(c,this.originElement)}});var s={"a.twitter-share-button":twttr.TweetButton};p(s);(function(c){var a,b,d=function(){document.readyState=="complete"&&a()},e,g=function(){try{document.documentElement.doScroll("left");a()}catch(h){}};if(window.addEventListener){a=function(){if(!b){b=true;c()}window.removeEventListener("DOMContentLoaded",a,false);window.removeEventListener("load",a,false)};window.addEventListener("DOMContentLoaded",a,false);window.addEventListener("load",a,false)}else if(window.attachEvent){e=window.setInterval(g,13);a=function(){if(!b){b=true;c()}window.clearInterval(e);window.detachEvent("onreadystatechange",d);window.detachEvent("onload",a)};window.attachEvent("onreadystatechange",d);window.attachEvent("onload",a)}})(function(){p(s)})})();var bookmarkscroll={setting:{duration:1000,yoffset:0},topkeyword:'#top',scrollTo:function(dest,options,hash){var $=jQuery,options=options||{}
var $dest=(typeof dest=="string"&&dest.length>0)?(dest==this.topkeyword?0:$('#'+dest)):(dest)?$(dest):[]
if($dest===0||$dest.length==1&&(!options.autorun||options.autorun&&Math.abs($dest.offset().top+(options.yoffset||this.setting.yoffset)-$(window).scrollTop())>5)){this.$body.animate({scrollTop:($dest===0)?0:$dest.offset().top+(options.yoffset||this.setting.yoffset)},(options.duration||this.setting.duration),function(){if($dest!==0&&hash)
location.hash=hash})}},urlparamselect:function(){var param=window.location.search.match(/scrollto=[\w\-_,]+/i)
return(param)?param[0].split('=')[1]:null},init:function(){jQuery(document).ready(function($){var mainobj=bookmarkscroll
mainobj.$body=(window.opera)?(document.compatMode=="CSS1Compat"?$('html'):$('body')):$('html,body')
var urlselectid=mainobj.urlparamselect()
if(urlselectid)
setTimeout(function(){mainobj.scrollTo(document.getElementById(urlselectid)||$('a[name='+urlselectid+']:eq(0)').get(0),{autorun:true})},100)
$('a[href^="#"]').each(function(){var hashvalue=this.getAttribute('href').match(/#\w+$/i)
hashvalue=(hashvalue)?hashvalue[0].substring(1):null
if(this.hash.length>1){var $bookmark=$('a[name='+this.hash.substr(1)+']:eq(0)')
if($bookmark.length==1||this.hash==mainobj.topkeyword){if($bookmark.length==1&&!document.all)
$bookmark.html('.').css({position:'absolute',fontSize:1,visibility:'hidden'})
$(this).click(function(e){mainobj.scrollTo((this.hash==mainobj.topkeyword)?mainobj.topkeyword:$bookmark.get(0),{},this.hash)
e.preventDefault()})}}})})}}
bookmarkscroll.init()
var switchTo5x=false;var cookie=new function(){return{setCookie:function(d,f,h){if(h){var c=new Date();c.setTime(c.getTime()+(h*24*60*60*1000));var a="; expires="+c.toGMTString()}else{var a=""}var b=d+"="+escape(f)+a;var g=document.domain.split(/\./);var e="";if(g.length>1){e="."+g[g.length-2]+"."+g[g.length-1]}b+="; domain="+escape(e)+";path=/";document.cookie=b},getCookie:function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}},deleteCookie:function(a){var c="/";var d=document.domain.split(/\./);var b="";if(d.length>1){b="."+d[d.length-2]+"."+d[d.length-1]}document.cookie=a+"="+((c)?";path="+c:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}}();if(typeof(stLight)=="undefined"&&typeof(SHARETHIS)=="undefined"){var stRecentServices=false;var betaBlacklist=["computerworld.com","networkworld.com","cio.com","infoworld.com","forbes.com","perezhilton.com","pgestore.com","thepostgame.com"];if(typeof(switchTo5x)=="undefined"){switchTo5x=false;var rNumFor5x=cookie.getCookie("__switchTo5x");if(rNumFor5x==false){var rNumFor5x=1+Math.floor(Math.random()*100);cookie.setCookie("__switchTo5x",rNumFor5x,"300")}var testLimitFor5x=0;if(rNumFor5x<=testLimitFor5x){switchTo5x=true}for(var i=0;i<betaBlacklist.length;i++){if(document.domain.search(betaBlacklist[i])!="-1"){switchTo5x=false;break}}}stLight=new function(){this.publisher=null;this.sessionID_time=(new Date()).getTime().toString();this.sessionID_rand=Number(Math.random().toPrecision(5).toString().substr(2)).toString();this.sessionID=this.sessionID_time+"."+this.sessionID_rand;this.fpc=null;this.counter=0;this.readyRun=false;this.meta={hostname:document.location.host,location:document.location.pathname};this.loadedFromBar=false;this.clickCallBack=false};stLight.onReady=function(){stLight.readyRun=true;if(stLight.publisher==null){if(typeof(window.console)!=="undefined"){try{console.log("Please specify a ShareThis Publisher Key \nFor help, contact support@sharethis.com")}catch(a){}}}var b="share4x";if(switchTo5x){b="share5x"}if(stLight.hasButtonOnPage()){if(stLight.loadedFromBar){if(switchTo5x){b="bar_share5x"}else{b="bar_share4x"}}}else{if(stLight.loadedFromBar){b="bar"}}stLight.log("pview",b,"");stWidget.options.sessionID=stLight.sessionID;stWidget.options.fpc=stLight.fpc;stButtons.onReady()};stLight.log=function(d,e,c){var f=(("https:"==document.location.protocol)?"https://l.":"http://l.")+"sharethis.com/log?event=";if(d=="pview"){f=(("https:"==document.location.protocol)?"https://l.":"http://l.")+"sharethis.com/pview?event="}var a=stLight.dbrInfo();if(a==false){a=""}f+=d;f+="&source="+e;if(c!=""){f+="&type="+c}f+="&publisher="+encodeURIComponent(stLight.publisher)+"&hostname="+encodeURIComponent(stLight.meta.hostname)+"&location="+encodeURIComponent(stLight.meta.location)+"&url="+encodeURIComponent(document.location.href)+"&sessionID="+stLight.sessionID+"&fpc="+stLight.fpc+"&ts"+(new Date()).getTime()+"."+stLight.counter+++a;var b=new Image(1,1);b.src=f;b.onload=function(){return};if(d=="pview"){stLight.createSegmentFrame()}};stLight._stFpc=function(){if(!document.domain||document.domain.search(/\.gov/)>0){return false}var g=stLight._stGetFpc("__unam");if(g==false){var c=Math.round(Math.random()*2147483647);c=c.toString(16);var h=(new Date()).getTime();h=h.toString(16);var e="";var a=stLight._stGetD();a=a.split(/\./)[1];if(!a){return false}e=stLight._stdHash(a)+"-"+h+"-"+c+"-1";g=e;stLight._stSetFpc(g)}else{var b=g;var f=b.split(/\-/);if(f.length==4){var d=Number(f[3]);d++;b=f[0]+"-"+f[1]+"-"+f[2]+"-"+d;g=b;stLight._stSetFpc(g)}}return g};stLight._stSetFpc=function(g){var a="__unam";var c=new Date;var j=c.getFullYear();var f=c.getMonth()+9;var h=c.getDate();var d=a+"="+escape(g);if(j){var b=new Date(j,f,h);d+="; expires="+b.toGMTString()}var e=stLight._stGetD();d+="; domain="+escape(e)+";path=/";document.cookie=d};stLight._stGetD=function(){var b=document.domain.split(/\./);var a="";if(b.length>1){a="."+b[b.length-2]+"."+b[b.length-1]}return a};stLight._stGetFpc=function(b){var a=document.cookie.match("(^|;) ?"+b+"=([^;]*)(;|$)");if(a){return(unescape(a[2]))}else{return false}};stLight._stdHash=function(a){var e=0,d=0;for(var c=a.length-1;c>=0;c--){var b=parseInt(a.charCodeAt(c));e=((e<<8)&268435455)+b+(b<<12);if((d=e&161119850)!=0){e=(e^(d>>20))}}return e.toString(16)};stLight._thisScript=null;stLight.getShareThisLightScript=function(){var d=document.getElementsByTagName("script");var c=null;for(var b=0;b<d.length;b++){var a=d[b].src;if(a.search(/.*sharethis.*\/button\/light.*/)>=0){c=d[b]}}return c};stLight.dbrInfo=function(){var a=document.referrer;var d=new RegExp(document.domain,"gi");if(d.test(a)==true){return false}if(a&&a.length>0){var c=/(http:\/\/)(.*?)\/.*/i;var b=/(^.*\?)(.*)/ig;var g="";var f=a.replace(c,"$2");if(f.length>0){g+="&refDomain="+f}else{return false}var e=a.replace(b,"$2");if(e.length>0){g+="&refQuery="+encodeURIComponent(e)}return g}else{return false}};stLight.odjs=function(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.script=document.createElement("script");this.script.setAttribute("type","text/javascript");this.script.setAttribute("src",this.scriptSrc);this.script.onload=b;this.script.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){b()}};this.head.appendChild(this.script)};if(window.document.readyState=="completed"){stLight.onReady()}else{if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",stLight.onReady,false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("load",stLight.onReady,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",stLight.onReady)}}}}stLight.createSegmentFrame=function(){try{stLight.segmentframe=document.createElement('<iframe name="stframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(b){stLight.segmentframe=document.createElement("iframe")}stLight.segmentframe.id="stSegmentFrame";stLight.segmentframe.name="stSegmentFrame";var c=document.body;var a=(("https:"==document.location.protocol)?"https://seg.":"http://seg.")+"sharethis.com/getSegment.php?purl="+encodeURIComponent(document.location.href)+"&jsref="+encodeURIComponent(document.referrer)+"&rnd="+(new Date()).getTime();stLight.segmentframe.src=a;stLight.segmentframe.frameBorder="0";stLight.segmentframe.scrolling="no";stLight.segmentframe.width="0px";stLight.segmentframe.height="0px";stLight.segmentframe.setAttribute("style","display:none;");c.appendChild(stLight.segmentframe)};stLight.fpc=stLight._stFpc();stLight.options=function(a){if(a&&a.publisher){stLight.publisher=a.publisher}if(a&&a.loadedFromBar){stLight.loadedFromBar=a.loadedFromBar}if(a&&a.clickCallBack&&typeof(a.clickCallBack)=="function"){stLight.clickCallBack=a.clickCallBack}for(var b in a){if(stWidget.options.hasOwnProperty(b)&&a[b]!==null){stWidget.options[b]=a[b]}}};stLight.hasButtonOnPage=function(){var d=document.getElementsByTagName("*");var c=new RegExp(/^st_(.*?)$/);var a=d.length;for(var b=0;b<a;b++){if(typeof(d[b].className)=="string"&&d[b].className!=""){if(d[b].className.match(c)&&d[b].className.match(c).length>=2&&d[b].className.match(c)[1]){return true}}}return false}}var stButtons={};stButtons.smartifyButtons=function(a){if(typeof(a)!="undefined"&&a!="undefined"){stRecentServices=a;for(var b in stRecentServices){stRecentServices[b].processed=false}}stButtons.completeInit()};stButtons.makeButton=function(d){var J=d.service;var u=d.text;if(u==null&&(d.type=="vcount"||d.type=="hcount")){u="Share"}if(J=="fb_like"){J="fblike"}var j=stWidget.ogurl?stWidget.ogurl:document.location.href;j=d.url?d.url:j;var I=stWidget.ogtitle?stWidget.ogtitle:document.title;I=d.title?d.title:I;var x=(d.thumbnail&&d.thumbnail!=null)?d.thumbnail:stWidget.ogimg;var n=stWidget.desc?stWidget.desc:"";n=stWidget.ogdesc?stWidget.ogdesc:stWidget.desc;n=(d.description&&d.description!=null)?d.description:n;if(/(http|https):\/\//.test(j)==false){j=decodeURIComponent(j);I=decodeURIComponent(I)}if(/(http|https):\/\//.test(j)==false){j=decodeURIComponent(j);I=decodeURIComponent(I)}var G=document.createElement("span");G.setAttribute("style","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;");G.className="stButton";if(d.type=="custom"){d.element.onclick=function(){var K=document.createElement("form");K.setAttribute("method","GET");K.setAttribute("action","http://wd.sharethis.com/api/sharer.php");K.setAttribute("target","_blank");var L={url:j,title:I,destination:J,publisher:stLight.publisher,fpc:stLight.fpc,sessionID:stLight.sessionID};if(typeof(x)!="undefined"&&x!=null){L.image=x}if(typeof(n)!="undefined"&&n!=null){L.desc=n}L.service=d.service;L.type=d.type;for(var b in L){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",b);a.setAttribute("value",L[b]);K.appendChild(a)}document.body.appendChild(K);K.submit()};return false}if(!((J=="email"||J=="sharethis")||(switchTo5x&&(J=="facebook"||J=="twitter"||J=="gbuzz"||J=="yahoo"||J=="linkedin")))){G.onclick=function(){if(stWidget.options.tracking){if(getPubGA()){pubService=J;shareLog(J)}}var K=document.createElement("form");K.setAttribute("method","GET");K.setAttribute("action","http://wd.sharethis.com/api/sharer.php");K.setAttribute("target","_blank");var L={url:j,title:I,destination:J,publisher:stLight.publisher,fpc:stLight.fpc,sessionID:stLight.sessionID};if(typeof(x)!="undefined"&&x!=null){L.image=x}if(typeof(n)!="undefined"&&n!=null){L.desc=n}L.service=d.service;L.type=d.type;for(var b in L){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",b);a.setAttribute("value",L[b]);K.appendChild(a)}document.body.appendChild(K);K.submit()}}if(J=="fblike"){try{var w=document.createElement('<iframe name="stLframe" scrolling="no" frameBorder="0" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(k){w=document.createElement("iframe");w.allowTransparency="true";w.setAttribute("allowTransparency","true");w.frameBorder="0";w.setAttribute("frameBorder","0");w.scrolling="no";w.setAttribute("scrolling","no")}var q="http://wd.sharethis.com/api/sharer.php?destination=fblike&url="+encodeURIComponent(j);var C="button_count";if(d.type=="vcount"){C="box_count";w.setAttribute("style","border:none; overflow:hidden; width:55px; height:65px; position:relative; top:12px;");w.width="55px";w.height="65px"}else{w.setAttribute("style","border:none; overflow:hidden; width:90px; height:21px; position:relative; top:7px;");w.width="90px";w.height="21px"}w.src="http://www.facebook.com/plugins/like.php?href="+encodeURIComponent(q)+"&layout="+C+"&show_faces=true&width=90&action=like&colorscheme=light&height=21";return w}if(d.type=="chicklet"){var z=document.createElement("span");z.className="chicklets "+J;if(u==null){z.innerHTML="&nbsp;"}else{z.appendChild(document.createTextNode(u))}G.appendChild(z);return G}else{if(d.type=="large"){var z=document.createElement("span");z.className="stLarge";var g=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";z.style.backgroundImage="url('"+g+J+"_32.png')";G.appendChild(z);return G}else{if(d.type=="pcount"||d.type=="stbar"||d.type=="stsmbar"){var c=document.createElement("span");var z=document.createElement("span");if(d.type=="stsmbar"){z.className="stSmBar";var g=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";z.style.backgroundImage="url('"+g+J+"_16.png')"}else{z.className="stLarge";var g=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";z.style.backgroundImage="url('"+g+J+"_32.png')"}c.appendChild(z);var p=document.createElement("span");var E=document.createElement("div");if(d.type=="stsmbar"){E.className="stBubbleSmHoriz"}else{E.className="stBubbleSm"}E.setAttribute("id","stBubble_"+d.count);E.style.visibility="hidden";var m=document.createElement("div");m.className="stBubble_count_sm";E.appendChild(m);p.appendChild(E);p.appendChild(c);G.appendChild(p);stButtons.getCount(j,J,m);c.onmouseover=function(){var a=document.getElementById("stBubble_"+d.count);a.style.visibility="visible"};c.onmouseout=function(){var a=document.getElementById("stBubble_"+d.count);a.style.visibility="hidden"};return G}else{if(d.type=="button"||d.type=="vcount"||d.type=="hcount"){var c=document.createElement("span");c.className="stButton_gradient";var r=document.createElement("span");r.className="chicklets "+J;if(u==null){r.innerHTML="&nbsp;"}else{r.appendChild(document.createTextNode(u))}c.appendChild(r);if(J=="twitter"){var B=document.createElement("span");B.className="stTwbutton";B.innerHTML="&nbsp;";c=B}else{if(J=="facebook"){var A=document.createElement("span");A.className="stFb";A.innerHTML="&nbsp;";c=A}}if(d.type=="vcount"){var p=document.createElement("div");var E=document.createElement("div");E.className="stBubble";var m=document.createElement("div");m.className="stBubble_count";E.appendChild(m);p.appendChild(E);p.appendChild(c);G.appendChild(p);stButtons.getCount(j,J,m)}else{if(d.type=="hcount"){var p=document.createElement("span");var D=document.createElement("span");D.className="stButton_gradient stHBubble";var o=document.createElement("span");o.className="stButton_left";o.innerHTML="&nbsp;";var e=document.createElement("span");e.className="stButton_right";e.innerHTML="&nbsp;";var m=document.createElement("span");m.className="stBubble_hcount";D.appendChild(m);p.appendChild(c);var F=document.createElement("span");F.className="stArrow";F.appendChild(D);p.appendChild(F);G.appendChild(p);stButtons.getCount(j,J,m)}else{G.appendChild(c)}}}else{if(d.type=="css"){var c=document.createElement("div");c.className="stCSSButton";if(d.cssType=="cssV"){var h=document.createElement("div");h.className="stCSSVBubble";var l=document.createElement("div");l.className="stCSSVBubble_count";h.appendChild(l);var H=document.createElement("div");H.className="stCSSVArrow";var t=document.createElement("div");t.className="stCSSVArrowBorder";t.appendChild(H);G.appendChild(h);G.appendChild(t);stButtons.getCount(j,J,l)}var s=document.createElement("div");s.className="stCSSSprite "+J;s.innerHTML="&nbsp;";var z=document.createElement("span");z.className="stCSSText";if(u==null){z.innerHTML="&nbsp;"}else{z.appendChild(document.createTextNode(u))}c.appendChild(s);c.appendChild(z);G.appendChild(c);if(d.cssType=="cssH"){var v=document.createElement("div");v.className="stCSSHBubble";var l=document.createElement("div");l.className="stCSSHBubble_count";v.appendChild(l);var f=document.createElement("div");f.className="stCSSHArrow";var y=document.createElement("div");y.className="stCSSHArrowBorder";y.appendChild(f);G.appendChild(y);G.appendChild(v);stButtons.getCount(j,J,l)}}}}}}return G};stButtons.getCount=function(c,a,d){var b=false;if(d&&d!==null){while(d.childNodes.length>=1){try{d.removeChild(d.firstChild)}catch(e){}}}stButtons.cbQueue.push({url:c,service:a,element:d});stButtons.getCountsFromService(c,a,d)};stButtons.processCB=function(b){var a=false;for(var c=0;c<stButtons.cbQueue.length;c++){var e=stButtons.cbQueue[c];if(b.ourl==e.url){var f="";try{if(e.service=="sharethis"){if(stWidget.options.newOrZero=="zero"){f=(b.total>0)?stButtons.human(b.total):"0"}else{f=(b.total>0)?stButtons.human(b.total):"New"}}else{if(e.service=="facebook"&&typeof(b.facebook2)!="undefined"){f=stButtons.human(b.facebook2)}else{if(typeof(b[e.service])!="undefined"){f=(b[e.service]>0)?stButtons.human(b[e.service]):"0"}else{f="0"}}}e.element.innerHTML=f}catch(d){}a=true}}};stButtons.human=function(a){if(a>=10000){a=a/100;a=Math.round(a);a=a/10;a=a+"K"}return a};stButtons.locateElements=function(c){var D=document.getElementsByTagName("*");var C=[];var F=new RegExp(/st_(.*?)_custom/);var E=new RegExp(/st_(.*?)_vcount/);var A=new RegExp(/st_(.*?)_hcount/);var v=new RegExp(/st_(.*?)_button/);var u=new RegExp(/st_(.*?)_large/);var s=new RegExp(/st_(.*?)_pcount/);var p=new RegExp(/st_(.*?)_stbar/);var n=new RegExp(/st_(.*?)_stsmbar/);var m=new RegExp(/st_(.*?)_css/);var a=new RegExp(/^st_(.*?)$/);var t=D.length;var o=0,g,l,w,b=[],G=false;if(typeof(stRecentServices)!="undefined"&&stRecentServices!="undefined"&&stRecentServices!="false"&&stRecentServices){G=true}for(var r=0;r<t;r++){g="";l=false;w=false;if(typeof(D[r].className)=="string"&&D[r].className!=""){if(D[r].className.match(F)&&D[r].className.match(F).length>=2&&D[r].className.match(F)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(F)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"custom"})}}else{if(D[r].className.match(E)&&D[r].className.match(E).length>=2&&D[r].className.match(E)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(E)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"vcount"})}}else{if(D[r].className.match(A)&&D[r].className.match(A).length>=2&&D[r].className.match(A)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(A)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"hcount"})}}else{if(D[r].className.match(v)&&D[r].className.match(v).length>=2&&D[r].className.match(v)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(v)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"button"})}}else{if(D[r].className.match(u)&&D[r].className.match(u).length>=2&&D[r].className.match(u)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(u)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"large"})}}else{if(D[r].className.match(s)&&D[r].className.match(s).length>=2&&D[r].className.match(s)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(s)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"pcount",count:r})}}else{if(D[r].className.match(p)&&D[r].className.match(p).length>=2&&D[r].className.match(p)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(p)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"stbar",count:r})}}else{if(D[r].className.match(n)&&D[r].className.match(n).length>=2&&D[r].className.match(n)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(n)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"stsmbar",count:r})}}else{if(D[r].className.match(m)&&D[r].className.match(m).length>=2&&D[r].className.match(m)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(m)[1];stButtons.elemArr.push(D[r]);var B=D[r].className.split("_");C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:(D[r].getAttribute("st_img")!=null)?D[r].getAttribute("st_img"):D[r].getAttribute("st_image"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"css",cssType:B[B.length-1]})}}else{if(D[r].className.match(a)&&D[r].className.match(a).length>=2&&D[r].className.match(a)[1]){if(stButtons.testElem(D[r])==false){w=true;g=D[r].className.match(a)[1];stButtons.elemArr.push(D[r]);C.push({service:g,element:D[r],url:D[r].getAttribute("st_url"),title:D[r].getAttribute("st_title"),image:D[r].getAttribute("st_img"),summary:D[r].getAttribute("st_summary"),text:D[r].getAttribute("displayText"),type:"chicklet"})}}}}}}}}}}}if(G){if(w){stButtons.elemArr.push(D[r]);for(o=0;o<b.length;o++){if(b[o].service==g){b[o].count++;l=true}}if(!l){b.push({service:g,count:1,doNotReplace:false,processed:false})}}}}}if(G){var j=[];for(var f=b.length-1;f>=0;f--){if(b[f].service=="sharethis"||b[f].doNotReplace){b[f].processed=true;continue}else{for(var e in stRecentServices){var h=false;if(!stRecentServices[e].processed){for(var q=0;q<b.length;q++){if(e==b[q].service&&!b[q].processed){h=true;b[q].doNotReplace=true;stRecentServices[e].processed=true;break}}if(h){b[f].processed=true}else{j.push({oldService:b[f].service,newService:e});for(var d=0;d<C.length;d++){if(C[d].service==b[f].service){C[d].service=e;C[d].text=stRecentServices[e].title;C[d].element.setAttribute("displayText",stRecentServices[e].title);C[d].element.className=C[d].element.className.replace(b[f].service,e)}}stRecentServices[e].processed=true;b[f].processed=true;break}}}}}}for(var r=0;r<C.length;r++){stWidget.addEntry(C[r])}};stButtons.odcss=function(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.css=document.createElement("link");this.css.setAttribute("rel","stylesheet");this.css.setAttribute("type","text/css");this.css.setAttribute("href",this.scriptSrc);setTimeout(function(){b()},500);this.head.appendChild(this.css)};stButtons.makeButtons=function(){var a=(("https:"==document.location.protocol)?"http://www.urbanelementz.ca/css/social-buttons-secure.css":"http://www.urbanelementz.ca/css/social-buttons.css");stButtons.odcss(a,function(){});stButtons.locateElements()};stButtons.addCount=function(a){stButtons.counts.push(a)};stButtons.getCountsFromService=function(c,b,d){if(stButtons.checkQueue(c)==false){var a=a+"-"+stButtons.cbVal;a="stButtons.processCB";stButtons.cbVal++;var e=(("https:"==document.location.protocol)?"https://ws.sharethis.com/api/getCount2.php?cb="+a+"&url=":"http://wd.sharethis.com/api/getCount2.php?cb="+a+"&url=");stLight.odjs(e+encodeURIComponent(c),function(){});stButtons.queue.push(c)}};stButtons.checkQueue=function(a){for(var b=0;b<stButtons.queue.length;b++){if(stButtons.queue[b]==a){return true}}return false};stButtons.elemArr=[];stButtons.testElem=function(c){var a=false;for(var b=0;b<stButtons.elemArr.length;b++){if(c==stButtons.elemArr[b]){a=true}}if(a==true){return true}else{return false}};function Shareable(c){var a={};a.facebook="450";a.twitter="684";a.yahoo="500";a.gbuzz="550";a.linkedin="600";var b={};b.facebook="300";b.twitter="718";b.yahoo="460";b.gbuzz="400";b.linkedin="433";this.idx=-1;this.url=null;this.title=null;this.image=null;this.element=null;this.service=null;this.screen="home";this.summary=null;this.content=null;this.buttonText=null;this.frag=null;this.onhover=true;this.type=null;var d=this;var e=false;this.attachButton=function(f){this.element=f;if((this.onhover==true||this.onhover=="true")&&((!switchTo5x)||(switchTo5x&&(c.service=="sharethis"||c.service=="email")))){f.onmouseover=this.mouseOn;f.onmouseout=this.mouseOut}f.onclick=function(){if(switchTo5x){if(c&&(c.service=="yahoo"||c.service=="buzz"||c.service=="facebook"||c.service=="twitter"||c.service=="gbuzz"||c.service=="linkedin")){if(c.service=="buzz"||c.service=="gbuzz"){oAuthURL="http://rest.sharethis.com/auth/getOAuth.php?provider=buzz&linking=true&pub_key=12be4dda-f838-40e0-b748-f78357a63cc8&access_key=96ba6b476151d07e675125a7cc8ec0ea&redirect_url=http://sharethis.com"}else{oAuthURL="http://sharethis.com/account/linking?provider="+c.service}window.open(oAuthURL,"AccountLinkingWindow","status=1, height="+b[c.service]+", width="+a[c.service]+", resizable=0")}}d.popup()}};this.init=function(){stWidget.merge(this,c);stWidget.shareables.push(this);if(c.element!==null){this.attachButton(c.element)}};return this}var stWidget=new function(){this.shareables=[];this.entries=0;this.widgetOpen=false;this.mouseOnTimer=null;this.mouseOutTimer=null;this.frameReady=false;if(switchTo5x){this.frameUrl=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure5x/index.html":"http://edge.sharethis.com/share5x/index.41dcd4822d351316454422fd972900ee.html")}else{this.frameUrl=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/index.html":"http://edge.sharethis.com/share4x/index.4db30204c922cf9bad98e4b9ce5adc24.html")}this.secure=false;try{this.mainstframe=document.createElement('<iframe name="stLframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>');this.mainstframe.onreadystatechange=function(){if(stWidget.mainstframe.readyState==="complete"){stWidget.frameReady=true}}}catch(a){this.mainstframe=document.createElement("iframe");this.mainstframe.allowTransparency="true";this.mainstframe.setAttribute("allowTransparency","true");this.mainstframe.onload=function(){stWidget.frameReady=true}}this.mainstframe.id="stLframe";this.mainstframe.className="stLframe";this.mainstframe.name="stLframe";this.mainstframe.frameBorder="0";this.mainstframe.scrolling="no";this.mainstframe.width="345px";this.mainstframe.height="450px";this.mainstframe.style.top="0px";this.mainstframe.style.left="0px";this.mainstframe.src="";this.wrapper=document.createElement("div");this.wrapper.id="stwrapper";this.wrapper.className="stwrapper";this.wrapper.style.visibility="hidden";this.wrapper.style.top="-999px";this.wrapper.style.left="-999px";this.closewrapper=document.createElement("div");this.closewrapper.className="stclose";if(switchTo5x){this.mainstframe.width="500px";this.mainstframe.height="730px";this.wrapper.style.top="-999px";this.wrapper.style.left="-999px";this.wrapper.style.width="500px";this.wrapper.style.zIndex=89999999;this.overlay=document.createElement("div");this.overlay.style.height="100%";this.overlay.style.width="100%";this.overlay.style.backgroundColor="#000";this.overlay.style.opacity="0.6";this.overlay.style.filter="Alpha(Opacity=60)";this.overlay.style.position="fixed";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){this.overlay.style.position="absolute"}this.overlay.style.display="none";this.overlay.style.left="0";this.overlay.style.top="0";this.overlay.style.zIndex=89999990;this.overlay.setAttribute("id","stOverlay");this.closewrapper.className="stCloseNew2"}this.closewrapper.onclick=function(){stWidget.closeWidget()};this.wrapper.appendChild(this.closewrapper);this.wrapper.appendChild(this.mainstframe);this.ogtitle=null;this.ogdesc=null;this.ogurl=null;this.ogimg=null;this.ogtype=null;this.desc=null;this.initFire=false;this.merge=function(d,c){for(var b in c){if(d.hasOwnProperty(b)&&c[b]!==null){d[b]=c[b]}}};this.oldScroll=0;this.init=function(){if(stWidget.initFire==false){stWidget.initFire=true;window.frames.stLframe.location.replace(stWidget.frameUrl+stWidget.createFrag(null,"init"))}}};stWidget.options=new function(){this.fpc=stLight.fpc;this.sessionID=null;this.publisher=null;this.tracking=null;this.send_services=null;this.exclusive_services=null;this.headerTitle=null;this.headerfg=null;this.headerbg=null;this.offsetLeft=null;this.offsetTop=null;this.onhover=true;this.autoclose=true;this.autoPosition=true;this.embeds=false;this.doneScreen=true;this.minorServices=true;this.excludeServices=null;this.theme=1;this.serviceBarColor=null;this.shareButtonColor=null;this.footerColor=null;this.headerTextColor=null;this.helpTextColor=null;this.mainWidgetColor=null;this.textBoxFontColor=null;this.textRightToLeft=false;this.shorten=true;this.newOrZero="new"};stWidget.addEntry=function(a){if(!a.element){return false}if(a&&((a.service=="email"||a.service=="sharethis")||(switchTo5x&&(a.service=="facebook"||a.service=="twitter"||a.service=="gbuzz"||a.service=="yahoo"||a.service=="linkedin")))){openWidget=true}else{openWidget=false}if(!openWidget){if(a.type!=="custom"){a.element.appendChild(stButtons.makeButton(a))}else{if(!(a.type=="custom"&&a.service=="sharethis")){stButtons.makeButton(a)}}return true}else{if(a.type!="custom"){a.element.appendChild(stButtons.makeButton(a))}else{if(!(a.type=="custom"&&a.service=="sharethis")){stButtons.makeButton(a)}}var b=new Shareable(a);b.idx=stWidget.entries;stWidget.entries++;b.publisher=stLight.publisher;b.sessionID=stLight.sessionID;b.fpc=stLight.fpc;if(a.element.image==null&&stWidget.ogimg!=null){b.image=stWidget.ogimg}if(a.element.summary==null&&stWidget.ogdesc!=null){b.summary=stWidget.ogdesc}else{if(a.element.summary==null&&stWidget.desc!=null){b.summary=stWidget.desc}}b.url=stWidget.ogurl?stWidget.ogurl:document.location.href;b.url=a.url?a.url:b.url;b.title=stWidget.ogtitle?stWidget.ogtitle:document.title;b.title=a.title?a.title:b.title;stWidget.merge(b,stWidget.options);if(typeof(stWidget.options.textRightToLeft)!="undefined"&&stWidget.options.textRightToLeft!="null"&&stWidget.options.textRightToLeft==true){document.getElementById("stwrapper").style.top="auto";document.getElementById("stwrapper").style.left="auto"}b.mouseOn=function(){stWidget.mouseOnTimer=setTimeout(b.popup,500)};b.mouseOut=function(){clearInterval(stWidget.mouseOnTimer)};b.popup=function(){if(stWidget.widgetOpen==false){var d="share4x";if(switchTo5x){d="share5x";try{if(stLight.clickCallBack!=false){stLight.clickCallBack(a.service)}}catch(c){}}if(a.type=="stbar"||a.type=="stsmbar"){d="bar"}stLight.log("widget",d,a.service+"_"+a.type);window.frames.stLframe.location.replace(stWidget.frameUrl+stWidget.createFrag(b));stWidget.positionWidget(b);if(stWidget.options.embeds==false){stWidget.hideEmbeds()}setTimeout(function(){stWidget.widgetOpen=true;st_showing=true},200)}else{if(stWidget.widgetOpen==true&&stWidget.options.onhover==false){}}return false};b.init();return b}};stWidget.createFrag=function(c,b){var f="#light";if(b=="init"){f="#init";for(var e in stWidget.options){if(stWidget.options.hasOwnProperty(e)==true&&stWidget.options[e]!==null&&typeof(stWidget.options[e])!="function"&&typeof(stWidget.options[e])!="object"){var a=stWidget.options[e];try{a=decodeURIComponent(a);a=decodeURIComponent(a)}catch(d){}f=f+"/"+e+"="+encodeURIComponent(a)}}f=f+"/pUrl="+encodeURIComponent(encodeURIComponent(document.location.href))+((document.title!="")?"/title="+encodeURIComponent(encodeURIComponent(document.title)):"")+"/stLight=true"}else{for(var e in c){if(c.hasOwnProperty(e)==true&&c[e]!==null&&typeof(c[e])!="function"&&typeof(c[e])!="object"&&e!=="idx"){f=f+"/"+e+"-=-"+encodeURIComponent(encodeURIComponent(c[e]))}}if(c.service=="email"){f=f+"/page-=-send"}if(switchTo5x){if(c.service=="facebook"){f=f+"/page-=-fbhome"}else{if(c.service=="twitter"){f=f+"/page-=-twhome"}else{if(c.service=="gbuzz"){f=f+"/page-=-gbhome"}else{if(c.service=="yahoo"){f=f+"/page-=-ybhome"}else{if(c.service=="linkedin"){f=f+"/page-=-lihome"}}}}}}}return f};stWidget.positionWidget=function(o){if(!o){return false}if(!switchTo5x){shareel=o.element;var curleft=curtop=0;if(shareel.offsetParent){curleft=shareel.offsetLeft;curtop=shareel.offsetTop;while(shareel=shareel.offsetParent){curleft+=shareel.offsetLeft;curtop+=shareel.offsetTop}}shareel=o.element;var eltop=0;var elleft=0;var topVal=0;var leftVal=0;var elemH=0;var elemW=0;eltop=curtop+shareel.offsetHeight+5;elleft=curleft+5;topVal=(eltop+(stWidget.options.offsetTop?stWidget.options.offsetTop:0));topVal=eval(topVal);elemH=topVal;topVal+="px";leftVal=(elleft+(stWidget.options.offsetLeft?stWidget.options.offsetLeft:0));leftVal=eval(leftVal);elemW=leftVal;leftVal+="px";stWidget.wrapper.style.top=topVal;stWidget.wrapper.style.left=leftVal;if(stWidget.options.autoPosition==true){stWidget.oldScroll=document.body.scrollTop;var pginfo=stWidget.pageSize();var effectiveH=pginfo.height+pginfo.scrY;var effectiveW=pginfo.width+pginfo.scrX;var widgetH=180;var widgetW=355;var needH=widgetH+elemH;var needW=widgetW+elemW;var diffH=needH-effectiveH;var diffW=needW-effectiveW;var newH=elemH-diffH;var newW=elemW-diffW;function getHW(elem){var retH=0;var retW=0;while(elem!=null){retH+=elem.offsetTop;retW+=elem.offsetLeft;elem=elem.offsetParent}return{height:retH,width:retW}}var buttonPos=getHW(shareel);var leftA,rightA,topA,bottomA=false;if(diffH>0){bottomA=false;topA=true;if((buttonPos.height-widgetH)>0){newH=buttonPos.height-widgetH}stWidget.wrapper.style.top=newH+"px"}if(diffW>0){leftA=false;rightA=true;if((buttonPos.width-widgetW)>0){newW=buttonPos.width-widgetW}stWidget.wrapper.style.left=newW+"px"}}if(stWidget.options.autoPosition=="center"){stWidget.wrapper.style.top="15%";stWidget.wrapper.style.left="35%";stWidget.wrapper.style.position="fixed"}}else{document.getElementById("stOverlay").style.display="block";var topVal;if(stWidget.options.autoPosition==true){if(document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1){stWidget.wrapper.style.left="300px"}else{stWidget.wrapper.style.left="10%"}stWidget.wrapper.style.right="10%";topVal=(document.documentElement.clientHeight-parseFloat(stWidget.wrapper.offsetHeight)/2)/2;if(topVal>20){topVal=20}else{if(topVal<5){topVal=5}}stWidget.wrapper.style.top=topVal+"px";stWidget.wrapper.style.marginLeft="auto";stWidget.wrapper.style.marginRight="auto";stWidget.wrapper.style.textAlign="left";stWidget.wrapper.style.position="fixed";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){stWidget.wrapper.style.left="300px";stWidget.wrapper.style.position="absolute"}}if(stWidget.options.autoPosition=="center"){stWidget.wrapper.style.left="10%";stWidget.wrapper.style.right="10%";stWidget.wrapper.style.marginLeft="auto";stWidget.wrapper.style.marginRight="auto";stWidget.wrapper.style.position="fixed";topVal=(document.documentElement.clientHeight-parseFloat(stWidget.wrapper.offsetHeight)/2)/2;if(topVal>20){topVal=20}else{if(topVal<5){topVal=5}}stWidget.wrapper.style.top=topVal+"px";if(document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1){stWidget.wrapper.style.position="absolute"}}}stWidget.wrapper.style.visibility="visible";stWidget.mainstframe.style.visibility="visible"},stWidget.hideWidget=function(){if(stWidget.wrapper.style.visibility!=="hidden"){stWidget.wrapper.style.visibility="hidden"}if(stWidget.mainstframe.style.visibility!=="hidden"){stWidget.mainstframe.style.visibility="hidden"}if(switchTo5x){document.getElementById("stOverlay").style.display="none"}};stWidget.pageSize=function(){var e=[0,0,0,0];var b=0;var a=0;var d=0;var c=0;if(typeof(window.pageYOffset)=="number"){b=window.pageXOffset;a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){b=document.body.scrollLeft;a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){b=document.documentElement.scrollLeft;a=document.documentElement.scrollTop}}}if(window.innerWidth){d=window.innerWidth;c=window.innerHeight}else{if(document.documentElement.offsetWidth){d=document.documentElement.offsetWidth;c=document.documentElement.offsetHeight}}e={scrX:b,scrY:a,width:d,height:c};return e};stWidget.closeWidget=function(){if(st_showing==false){return false}st_showing=false;stWidget.widgetOpen=false;stWidget.wrapper.style.visibility="hidden";stWidget.mainstframe.style.visibility="hidden";stWidget.showEmbeds();stWidget.sendEvent("screen","home");if(switchTo5x){document.getElementById("stOverlay").style.display="none"}else{stWidget.wrapper.style.top="-999px";stWidget.wrapper.style.left="-999px"}};stWidget.hideEmbeds=function(){var b=document.getElementsByTagName("embed");for(var a=0;a<b.length;a++){b[a].style.visibility="hidden"}};stWidget.showEmbeds=function(){if(stWidget.options.embeds==true){return true}var b=document.getElementsByTagName("embed");for(var a=0;a<b.length;a++){b[a].style.visibility="visible"}};stWidget.sendEvent=function(a,d){var c="#widget/"+a+"="+d;try{window.frames.stLframe.location.replace(stWidget.frameUrl+c)}catch(b){}};stWidget.getOGTags=function(){var b=document.getElementsByTagName("meta");for(var a=0;a<b.length;a++){if(b[a].getAttribute("property")=="og:title"){stWidget.ogtitle=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:type"){stWidget.ogtype=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:url"){stWidget.ogurl=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:image"){stWidget.ogimg=b[a].getAttribute("content")}else{if(b[a].getAttribute("property")=="og:description"){stWidget.ogdesc=b[a].getAttribute("content")}else{if(b[a].getAttribute("name")=="description"||b[a].getAttribute("name")=="Description"){stWidget.desc=b[a].getAttribute("content")}}}}}}}};function odjs(a,b){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=a;this.script=document.createElement("script");this.script.setAttribute("type","text/javascript");this.script.setAttribute("src",this.scriptSrc);this.script.onload=b;this.script.onreadystatechange=function(){if(this.readyState=="loaded"){b()}};this.head.appendChild(this.script)}var jsonp={};jsonp.makeRequest=function(a){odjs(a,function(){})};function getPubGA(){if(!loadedPubGA){loadedPubGA=true;var a=["return=json","cb=getPubGA_onSuccess","service=getPublisherDomains","publisher="+stWidget.publisher];a=a.join("&");jsonp.makeRequest((("https:"==document.location.protocol)?"https://ws.sharethis.com/":"http://wd.sharethis.com/")+"api/getApi.php?"+a);return false}return true}function getPubGA_onSuccess(a){var c=null;var d=new RegExp(stWidget.hostname,"i");for(var b=0;b<a.data.domain.length;b++){if(true==(d.test(a.data.domain[b].name))){c=a.data.domain[b].google_analytics;b=a.data.domain.length}}if(c==null){for(var b=0;b<a.data.domain.length;b++){if(d.test(a.data.domain[b].name)){c=a.data.domain[b].google_analytics}}}if(typeof(_gat)!="undefined"&&c!==null&&typeof(c)!="undefined"){stButtons.pubTracker=_gat._getTracker(c)}shareLog(pubService)}function shareLog(a){if(stButtons.pubTracker!=null){stButtons.pubTracker._trackEvent("ShareThis",a)}}stButtons.onReady=function(){var g=document.getElementsByTagName("*");var b=[];var c=new RegExp(/sharethis_smartbuttons/);var a=false;for(var j=0;j<g.length;j++){if(typeof(g[j].className)=="string"&&g[j].className!=""){if(g[j].className.match(c)){a=true;break}}}if(a){var f=document.getElementsByTagName("head")[0];var d=["return=json","cb=stButtons.smartifyButtons"];d=d.join("&");var e=(("https:"==document.location.protocol)?"https://ws.":"http://wd.")+"sharethis.com/api/getRecentServices.php?"+d;var h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",e);f.appendChild(h);setTimeout("stButtons.completeInit()",2000)}else{stButtons.completeInit()}};stButtons.completeInit=function(){if(!stButtons.goToInit){stButtons.goToInit=true;stWidget.getOGTags();document.body.appendChild(stWidget.wrapper);if(switchTo5x){document.body.appendChild(stWidget.overlay)}stButtons.makeButtons();stWidget.init()}};if(document.readyState=="complete"&&stLight.readyRun==false){stLight.onReady()}stButtons.goToInit=false;stButtons.widget=false;stButtons.widgetArray=[];stButtons.queue=[];stButtons.cbQueue=[];stButtons.cbVal=0;stButtons.queuePos=0;stButtons.counts=[];st_showing=false;loadedPubGA=false;pubService="";stButtons.urlElements=[];if(typeof(window.addEventListener)!="undefined"){window.addEventListener("click",function(){stWidget.closeWidget()},false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("click",function(){stWidget.closeWidget()},false)}else{if(typeof window.attachEvent!="undefined"){document.attachEvent("onclick",function(){stWidget.closeWidget()})}}};stLight.options({publisherGA:"UA-22747505-1"});window.olark||(function(i){var e=window,h=document,a=e.location.protocol=="https:"?"https:":"http:",g=i.name,b="load";(function(){e[g]=function(){(c.s=c.s||[]).push(arguments)};var c=e[g]._={},f=i.methods.length;while(f--){(function(j){e[g][j]=function(){e[g]("call",j,arguments)}})(i.methods[f])}c.l=i.loader;c.i=arguments.callee;c.f=setTimeout(function(){if(c.f){(new Image).src=a+"//"+c.l.replace(".js",".png")+"&"+escape(e.location.href)}c.f=null},20000);c.p={0:+new Date};c.P=function(j){c.p[j]=new Date-c.p[0]};function d(){c.P(b);e[g](b)}e.addEventListener?e.addEventListener(b,d,false):e.attachEvent("on"+b,d);(function(){function l(j){j="head";return["<",j,"></",j,"><",z,' onl'+'oad="var d=',B,";d.getElementsByTagName('head')[0].",y,"(d.",A,"('script')).",u,"='",a,"//",c.l,"'",'"',"></",z,">"].join("")}var z="body",s=h[z];if(!s){return setTimeout(arguments.callee,100)}c.P(1);var y="appendChild",A="createElement",u="src",r=h[A]("div"),G=r[y](h[A](g)),D=h[A]("iframe"),B="document",C="domain",q;r.style.display="none";s.insertBefore(r,s.firstChild).id=g;D.frameBorder="0";D.id=g+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){D.src="javascript:false"}D.allowTransparency="true";G[y](D);try{D.contentWindow[B].open()}catch(F){i[C]=h[C];q="javascript:var d="+B+".open();d.domain='"+h.domain+"';";D[u]=q+"void(0);"}try{var H=D.contentWindow[B];H.write(l());H.close()}catch(E){D[u]=q+'d.write("'+l().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}c.P(2)})()})()})({loader:(function(a){return"static.olark.com/jsclient/loader0.js?ts="+(a?a[1]:(+new Date))})(document.cookie.match(/olarkld=([0-9]+)/)),name:"olark",methods:["configure","extend","declare","identify"]});olark.identify('2790-166-10-3636');
