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;i0){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=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('')}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=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('')}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=" "}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=" "}else{r.appendChild(document.createTextNode(u))}c.appendChild(r);if(J=="twitter"){var B=document.createElement("span");B.className="stTwbutton";B.innerHTML=" ";c=B}else{if(J=="facebook"){var A=document.createElement("span");A.className="stFb";A.innerHTML=" ";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=" ";var e=document.createElement("span");e.className="stButton_right";e.innerHTML=" ";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=" ";var z=document.createElement("span");z.className="stCSSText";if(u==null){z.innerHTML=" "}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;c0)?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=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=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');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