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"
        }
    }
}();
var browser=new function(){
    iemode=null;
    if(window.navigator.appName=="Microsoft Internet Explorer"){
        if(document.documentMode){
            iemode=document.documentMode
            }else{
            iemode=5;
            if(document.compatMode){
                if(document.compatMode=="CSS1Compat"){
                    iemode=7
                    }
                }
        }
}
return{
    getIEVersion:function(){
        return iemode
        }
    }
}();
__stgetPubGA=function(){
    if(typeof(_gaq)!=="undefined"&&typeof(__stPubGA)=="undefined"){
        if(typeof(_gat)!=="undefined"){
            __stPubGA=_gat._getTrackerByName("~0")._getAccount()
            }
            if(typeof(__stPubGA)!=="undefined"&&__stPubGA=="UA-XXXXX-X"){
            _gaq.push(function(){
                var a=_gat._getTrackerByName();
                __stPubGA=a._getAccount()
                })
            }
        }
    if(__stPubGA=="UA-XXXXX-X"){
    delete __stPubGA
    }
};

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
            }
        }
        }
    var esiLoaded=false,stIsLoggedIn=false,servicesLoggedIn={};

var stFastShareObj={};

if("https:"==document.location.protocol){
    var useFastShare=false
    }
    if(typeof(useFastShare)=="undefined"){
    var useFastShare=true
    }
    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(){
    if(stLight.readyRun==true){
        return false
        }
        stLight.processSTQ();
    stLight.readyRun=true;
    if(stLight.publisher==null){
        if(typeof(window.console)!=="undefined"){
            try{
                console.debug("Please specify a ShareThis Publisher Key \nFor help, contact support@sharethis.com")
                }catch(a){}
        }
    }
var b=stLight.getSource();
stLight.log("pview",b,"");
stWidget.options.sessionID=stLight.sessionID;
stWidget.options.fpc=stLight.fpc;
stLight.loadServicesLoggedIn(function(){
    stButtons.onReady()
    })
};

stLight.getSource=function(){
    var a="share4x";
    if(switchTo5x){
        a="share5x"
        }
        if(stLight.hasButtonOnPage()){
        if(stLight.loadedFromBar){
            if(switchTo5x){
                a="bar_share5x"
                }else{
                a="bar_share4x"
                }
            }
    }else{
    if(stLight.loadedFromBar){
        a="bar"
        }
    }
return a
};

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 j=document.referrer;
    if(j&&j.length>0){
        var g=/\/\/.*?\//;
        var d=j.match(g);
        if(typeof(d)!=="undefined"&&typeof(d[0])!=="undefined"){
            var b=new RegExp(document.domain,"gi");
            if(b.test(d[0])==true){
                return false
                }
            }
        var f=/(http:\/\/)(.*?)\/.*/i;
    var e=/(^.*\?)(.*)/ig;
    var a="";
    var c=j.replace(f,"$2");
    var b=new RegExp(c,"gi");
    if(c.length>0){
        a+="&refDomain="+c
        }else{
        return false
        }
        var h=j.replace(e,"$2");
    if(h.length>0){
        a+="&refQuery="+encodeURIComponent(h)
        }
        return a
    }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=="complete"||(a.indexOf("checkOAuth.esi")!=-1&&this.readyState=="loaded")){
            b()
            }
        };

this.head.appendChild(this.script)
    };

stLight.loadServicesLoggedIn=function(b){
    if(useFastShare){
        try{
            stLight.odjs((("https:"==document.location.protocol)?"https://wd-edge.sharethis.com/button/checkOAuth.esi":"http://wd-edge.sharethis.com/button/checkOAuth.esi"),function(){
                if(typeof(userDetails)!=="undefined"){
                    stIsLoggedIn=true;
                    if(userDetails!=="null"){
                        servicesLoggedIn=userDetails
                        }
                        for(var c in userDetails){
                        if(c=="buzz"){
                            servicesLoggedIn.gbuzz=userDetails[c];
                            break
                        }
                    }
                    }
                    esiLoaded=true;
            if(b!=null){
                b()
                }
            })
}catch(a){}
}else{
    if(b!=null){
        b()
        }
    }
};

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(t){
    var f=t.service;
    var E=t.text;
    if(E==null&&(t.type=="vcount"||t.type=="hcount")){
        E="Share";
        if(f=="email"){
            E="Mail"
            }
        }
    if(f=="fb_like"){
    f="fblike"
    }else{
    if(f=="fblike_fbLong"){
        f="fblike";
        t.type="fbLong"
        }
    }
var g=stWidget.ogurl?stWidget.ogurl:document.location.href;
g=t.url?t.url:g;
var H=stWidget.ogtitle?stWidget.ogtitle:document.title;
H=t.title?t.title:H;
var e=(t.thumbnail&&t.thumbnail!=null)?t.thumbnail:stWidget.ogimg;
var T=stWidget.desc?stWidget.desc:"";
T=stWidget.ogdesc?stWidget.ogdesc:stWidget.desc;
T=(t.description&&t.description!=null)?t.description:T;
if(/(http|https):\/\//.test(g)==false){
    g=decodeURIComponent(g);
    H=decodeURIComponent(H)
    }
    if(/(http|https):\/\//.test(g)==false){
    g=decodeURIComponent(g);
    H=decodeURIComponent(H)
    }
    var Z=document.createElement("span");
Z.setAttribute("style","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;");
Z.className="stButton";
if(t.type=="custom"&&f!="email"&&f!="sharethis"&&f!="wordpress"){
    t.element.onclick=function(){
        stLight.callSubscribers("click",f,g);
        var aa=document.createElement("form");
        aa.setAttribute("method","GET");
        aa.setAttribute("action",(("https:"==document.location.protocol)?"https://ws":"http://wd")+".sharethis.com/api/sharer.php");
        aa.setAttribute("target","_blank");
        aa.setAttribute("accept-charset","UTF-8");
        var ab={
            url:g,
            title:H,
            destination:f,
            publisher:stLight.publisher,
            fpc:stLight.fpc,
            sessionID:stLight.sessionID
            };

        if(typeof(e)!="undefined"&&e!=null){
            ab.image=e
            }
            if(typeof(T)!="undefined"&&T!=null){
            ab.desc=T
            }
            ab.service=t.service;
        ab.type=t.type;
        for(var b in ab){
            var a=document.createElement("input");
            a.setAttribute("type","hidden");
            a.setAttribute("name",b);
            a.setAttribute("value",ab[b]);
            aa.appendChild(a)
            }
            document.body.appendChild(aa);
        aa.submit()
        };

    return false
    }
    if(!((f=="email"||f=="sharethis"||f=="wordpress")||(stIsLoggedIn&&servicesLoggedIn&&typeof(servicesLoggedIn[f])!="undefined"&&((useFastShare||(!useFastShare&&switchTo5x))&&(f=="facebook"||f=="twitter"||f=="gbuzz"||f=="yahoo"||f=="linkedin"))))){
    Z.onclick=function(){
        stLight.callSubscribers("click",f,g);
        var ab=this.getElementsByTagName("*");
        for(var aa=0;aa<ab.length;aa++){
            if(ab[aa].className=="stBubble_hcount"||ab[aa].className=="stBubble_count"){
                if(!isNaN(ab[aa].innerHTML)){
                    ab[aa].innerHTML=Number(ab[aa].innerHTML)+1
                    }
                }
        }
        if(stWidget.options.tracking){
    shareLog(f)
    }
    var ac=document.createElement("form");
ac.setAttribute("method","GET");
ac.setAttribute("action",(("https:"==document.location.protocol)?"https://ws":"http://wd")+".sharethis.com/api/sharer.php");
ac.setAttribute("target","_blank");
ac.setAttribute("accept-charset","UTF-8");
var ad={
    url:g,
    title:H,
    destination:f,
    publisher:stLight.publisher,
    fpc:stLight.fpc,
    sessionID:stLight.sessionID
    };

if(typeof(e)!="undefined"&&e!=null){
    ad.image=e
    }
    if(typeof(T)!="undefined"&&T!=null){
    ad.desc=T
    }
    ad.service=t.service;
ad.type=t.type;
for(var b in ad){
    var a=document.createElement("input");
    a.setAttribute("type","hidden");
    a.setAttribute("name",b);
    a.setAttribute("value",ad[b]);
    ac.appendChild(a)
    }
    document.body.appendChild(ac);
ac.submit()
}
}
if(f=="fblike"||f=="fbsend"||f=="fbrec"){
    return stButtons.makeFBButton(f,t.type,g)
    }
    if(f=="plusone"){
    stButtons.loadPlusone=true;
    var C=document.createElement("div");
    C.innerHTML="&nbsp;";
    iedocmode=browser.getIEVersion();
    var u=(navigator.userAgent.indexOf("MSIE 7.0")!=-1);
    var h=(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1);
    var L="display:inline-block;overflow:hidden;line-height:0px;";
    var z="overflow:hidden;zoom:1;display:inline;vertical-align:bottom;";
    var A="overflow:hidden;zoom:1;display:inline;line-height:0px;position:relative;";
    var d=document.createElement("g:plusone");
    d.setAttribute("href",g);
    if(t.type=="vcount"){
        d.setAttribute("size","tall");
        C.setAttribute("style",L+"vertical-align:bottom;width:55px; height:61px;");
        u&&C.style.setAttribute?C.style.setAttribute("cssText",L+"vertical-align:bottom;width:55px; height:61px;",0):null;
        (iedocmode&&(iedocmode==7)&&C.style.setAttribute)?C.style.setAttribute("cssText",A+"vertical-align:bottom;bottom:-8px;width:55px; height:80px;",0):(null)
        }else{
        if(t.type=="hcount"){
            d.setAttribute("size","medium");
            d.setAttribute("count","true");
            C.setAttribute("style",L+"position:relative;vertical-align:middle;bottom:0px;width:75px; height:21px;");
            u&&C.style.setAttribute?C.style.setAttribute("cssText",L+"position:relative;vertical-align:middle;width:75px; height:21px;",0):null;
            (iedocmode&&(iedocmode==7)&&C.style.setAttribute)?C.style.setAttribute("cssText",A+"vertical-align:middle;bottom:2px;width:75px; height:21px;",0):(null)
            }else{
            if(t.type=="button"){
                d.setAttribute("size","medium");
                d.setAttribute("count","false");
                C.setAttribute("style",L+"position:relative;vertical-align:middle;bottom:0px;width:36px; height:21px;");
                u&&C.style.setAttribute?C.style.setAttribute("cssText",L+"position:relative;vertical-align:middle;width:36px; height:21px;",0):null;
                (iedocmode&&(iedocmode==7)&&C.style.setAttribute)?C.style.setAttribute("cssText",A+"vertical-align:middle;bottom:-8px;width:36px; height:39px;",0):(null)
                }else{
                if(t.type=="large"){
                    d.setAttribute("size","medium");
                    d.setAttribute("count","false");
                    C.setAttribute("style",L+"position:relative;vertical-align:middle;bottom:8px;width:36px; height:30px;");
                    u&&C.style.setAttribute?C.style.setAttribute("cssText",L+"position:relative;vertical-align:middle;bottom:8px;width:36px; height:30px;",0):null;
                    (iedocmode&&(iedocmode==7)&&C.style.setAttribute)?C.style.setAttribute("cssText",A+"vertical-align:middle;bottom:-3px;width:36px; height:39px;",0):(null)
                    }else{
                    d.setAttribute("size","small");
                    d.setAttribute("count","false");
                    C.setAttribute("style",L+"position:relative;vertical-align:middle;bottom:0px;width:36px; height:16px;");
                    u&&C.style.setAttribute?C.style.setAttribute("cssText",L+"position:relative;vertical-align:middle;width:36px; height:16px;",0):null;
                    (iedocmode&&(iedocmode==7)&&C.style.setAttribute)?C.style.setAttribute("cssText",A+"vertical-align:middle;bottom:-12px;width:36px; height:36px;",0):(null)
                    }
                }
        }
}
C.appendChild(d);
d.setAttribute("callback","plusoneCallback");
return C
}
var j=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";
var S=document.createElement("img");
S.src=j+"check-big.png";
S.style.position="absolute";
S.style.top="-7px";
S.style.right="-7px";
S.style.width="19px";
S.style.height="19px";
S.style.maxWidth="19px";
S.style.maxHeight="19px";
var q=f;
function m(a){
    var aa=new Date();
    var b=null;
    var ab=0;
    do{
        b=new Date();
        ab++;
        if(ab>a){
            break
        }
    }while(((b-aa)<a)||!esiLoaded)
}
if(!esiLoaded&&(f=="facebook"||f=="twitter"||f=="gbuzz"||f=="linkedin"||f=="yahoo")){
    m(500)
    }
    if(!(useFastShare&&servicesLoggedIn&&typeof(servicesLoggedIn[f])!="undefined"&&(f=="facebook"||f=="twitter"||f=="gbuzz"||f=="linkedin"||f=="yahoo"))){
    S.style.display="none"
    }
    if(t.type=="chicklet"){
    var J=document.createElement("span");
    J.className="chicklets "+f;
    if(E==null){
        J.innerHTML="&nbsp;";
        Z.style.paddingLeft="0px";
        Z.style.paddingRight="0px";
        Z.style.width="16px"
        }else{
        J.appendChild(document.createTextNode(E));
        S.style.right="auto";
        S.style.left="8px";
        S.style.top="-5px"
        }
        Z.appendChild(J);
    S.src=j+"check-small.png";
    S.style.top="-6px";
    S.style.width="13px";
    S.style.height="13px";
    S.style.maxWidth="13px";
    S.style.maxHeight="13px";
    Z.appendChild(S);
    return Z
    }else{
    if(t.type=="large"){
        var J=document.createElement("span");
        J.className="stLarge";
        Z.appendChild(J);
        J.style.backgroundImage="url('"+j+q+"_32.png')";
        Z.appendChild(S);
        return Z
        }else{
        if(t.type=="pcount"||t.type=="stbar"||t.type=="stsmbar"){
            var y=document.createElement("span");
            var J=document.createElement("span");
            if(t.type=="stsmbar"){
                J.className="stSmBar";
                var j=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";
                J.style.backgroundImage="url('"+j+q+"_16.png')";
                S.src=j+"check-small.png"
                }else{
                J.className="stLarge";
                var j=("https:"==document.location.protocol)?"https://ws.sharethis.com/images/":"http://w.sharethis.com/images/";
                J.style.backgroundImage="url('"+j+q+"_32.png')"
                }
                J.appendChild(S);
            y.appendChild(J);
            var r=document.createElement("span");
            var Y=document.createElement("div");
            if(t.type=="stsmbar"){
                Y.className="stBubbleSmHoriz"
                }else{
                Y.className="stBubbleSm"
                }
                Y.setAttribute("id","stBubble_"+t.count);
            Y.style.visibility="hidden";
            var Q=document.createElement("div");
            Q.className="stBubble_count_sm";
            Y.appendChild(Q);
            r.appendChild(Y);
            r.appendChild(y);
            Z.appendChild(r);
            stButtons.getCount(g,f,Q);
            y.onmouseover=function(){
                var a=document.getElementById("stBubble_"+t.count);
                a.style.visibility="visible"
                };

            y.onmouseout=function(){
                var a=document.getElementById("stBubble_"+t.count);
                a.style.visibility="hidden"
                };

            return Z
            }else{
            if(t.type=="button"||t.type=="vcount"||t.type=="hcount"){
                var y=document.createElement("span");
                y.className="stButton_gradient";
                var F=document.createElement("span");
                F.className="chicklets "+f;
                if(E==null){
                    F.innerHTML="&nbsp;"
                    }else{
                    F.appendChild(document.createTextNode(E))
                    }
                    y.appendChild(F);
                if(f=="facebook"||f=="twitter"||f=="gbuzz"||f=="linkedin"||f=="yahoo"){
                    var s=document.createElement("span");
                    s.className="stMainServices st-"+f+"-counter";
                    s.innerHTML="&nbsp";
                    y=s;
                    s.style.backgroundImage="url('"+j+q+"_counter.png')"
                    }
                    y.appendChild(S);
                if(t.type=="vcount"){
                    var r=document.createElement("div");
                    var Y=document.createElement("div");
                    Y.className="stBubble";
                    var Q=document.createElement("div");
                    Q.className="stBubble_count";
                    Y.appendChild(Q);
                    r.appendChild(Y);
                    r.appendChild(y);
                    Z.appendChild(r);
                    stButtons.getCount(g,f,Q)
                    }else{
                    if(t.type=="hcount"){
                        var r=document.createElement("span");
                        var K=document.createElement("span");
                        K.className="stButton_gradient stHBubble";
                        var p=document.createElement("span");
                        p.className="stButton_left";
                        p.innerHTML="&nbsp;";
                        var v=document.createElement("span");
                        v.className="stButton_right";
                        v.innerHTML="&nbsp;";
                        var Q=document.createElement("span");
                        Q.className="stBubble_hcount";
                        K.appendChild(Q);
                        r.appendChild(y);
                        var B=document.createElement("span");
                        B.className="stArrow";
                        B.appendChild(K);
                        r.appendChild(B);
                        Z.appendChild(r);
                        stButtons.getCount(g,f,Q)
                        }else{
                        Z.appendChild(y)
                        }
                    }
                if(t.type=="vcount"||t.type=="hcount"){
                if(t.ctype=="native"){
                    if(f=="twitter"){
                        var R=document.createElement("span");
                        R.className="stButton";
                        var D=55;
                        var V=20;
                        var O="";
                        var k="none";
                        var G=7;
                        if(t.type=="vcount"){
                            var o=document.createElement("div");
                            D=55;
                            V=62;
                            O="top:42px;";
                            k="vertical";
                            S.style.top="34px"
                            }else{
                            if(t.type=="hcount"){
                                var o=document.createElement("span");
                                D=110;
                                V=20;
                                k="horizontal";
                                S.style.right="44px"
                                }
                            }
                        iedocmode=browser.getIEVersion();
                    var P=document.createElement("span");
                    P.setAttribute("style","vertical-align:bottom;line-height:0px;position:absolute;padding:0px !important;"+O+"width:55px;height:20px;");
                    (iedocmode&&(iedocmode==7)&&P.style.setAttribute)?P.style.setAttribute("cssText","vertical-align:bottom;line-height:0px;position:absolute;padding:0px !important;"+O+"width:55px;height:20px;",0):null;
                    try{
                        var N=document.createElement('<iframe name="stframe" allowTransparency="true" scrolling="no" frameBorder="0"></iframe>')
                        }catch(U){
                        N=document.createElement("iframe");
                        N.setAttribute("allowTransparency","true");
                        N.setAttribute("frameborder","0");
                        N.setAttribute("scrolling","no")
                        }
                        var X="http://wd.sharethis.com/api/sharer.php?destination=twitter&url="+encodeURIComponent(g);
                    N.setAttribute("src","http://platform.twitter.com/widgets/tweet_button.html?count="+k+"&url="+X);
                    N.setAttribute("style","width:"+D+"px;height:"+V+"px;");
                    (iedocmode&&(iedocmode==7)&&N.style.setAttribute)?N.style.setAttribute("cssText","width:"+D+"px;height:"+V+"px;",0):null;
                    if((useFastShare&&servicesLoggedIn&&typeof(servicesLoggedIn[f])!="undefined")){
                        o.appendChild(P)
                        }
                        o.appendChild(N);
                    y=o;
                    y.appendChild(S);
                    R.appendChild(y);
                    R.setAttribute("style","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;vertical-align:bottom;margin-top:6px;width:"+D+"px;height:"+V+"px;");
                    (iedocmode&&(iedocmode==7)&&R.style.setAttribute)?R.style.setAttribute("cssText","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;vertical-align:bottom;width:"+D+"px;height:"+V+"px;",0):null;
                    Z=R
                    }else{
                    if(f=="facebook"){
                        stButtons.getXFBMLFromFB();
                        return stButtons.makeFBButton("fblike",t.type,g)
                        }else{
                        if(f=="linkedin"){}
                }
            }
        }
}
}else{
    if(t.type=="css"){
        var y=document.createElement("div");
        y.className="stCSSButton";
        if(t.cssType=="cssV"){
            var x=document.createElement("div");
            x.className="stCSSVBubble";
            var I=document.createElement("div");
            I.className="stCSSVBubble_count";
            x.appendChild(I);
            var l=document.createElement("div");
            l.className="stCSSVArrow";
            var M=document.createElement("div");
            M.className="stCSSVArrowBorder";
            M.appendChild(l);
            Z.appendChild(x);
            Z.appendChild(M);
            stButtons.getCount(g,f,I)
            }
            var c=document.createElement("div");
        c.className="stCSSSprite "+f;
        c.innerHTML="&nbsp;";
        var J=document.createElement("span");
        J.className="stCSSText";
        y.appendChild(c);
        if(E==null||E==""){}else{
            J.appendChild(document.createTextNode(E));
            y.appendChild(J)
            }
            y.appendChild(S);
        Z.appendChild(y);
        if(t.cssType=="cssH"){
            var w=document.createElement("div");
            w.className="stCSSHBubble";
            var I=document.createElement("div");
            I.className="stCSSHBubble_count";
            w.appendChild(I);
            var W=document.createElement("div");
            W.className="stCSSHArrow";
            var n=document.createElement("div");
            n.className="stCSSHArrowBorder";
            n.appendChild(W);
            Z.appendChild(n);
            Z.appendChild(w);
            stButtons.getCount(g,f,I)
            }
        }
}
}
}
}
return Z
};

stButtons.makeFBButton=function(j,l,b){
    try{
        var h=document.createElement("<div></div>")
        }catch(d){
        h=document.createElement("div")
        }
        var c=b;
    var g="button_count";
    var m="fb-send";
    var e="";
    iedocmode=browser.getIEVersion();
    var f="";
    if(l=="vcount"){
        g="box_count"
        }else{
        if(l=="hcount"){}else{
            if(l=="large"){
                f=(iedocmode&&(iedocmode==7))?"vertical-align:bottom;bottom:3px;":"bottom:7px;margin-top:9px;"
                }else{
                if(l=="fbLong"){
                    g="";
                    h.setAttribute("data-width","450")
                    }else{
                    if(l=="button"){}else{
                        f="top:1px;margin-top:0px;"
                        }
                    }
            }
    }
}(j=="fbrec")?e="recommend":null;
if(j!="fbsend"){
    m="fb-like";
    h.setAttribute("data-action",e);
    h.setAttribute("data-send","false");
    h.setAttribute("data-layout",g);
    h.setAttribute("data-show-faces","false")
    }
    h.setAttribute("class",m);
h.setAttribute("data-href",c);
if(iedocmode&&(iedocmode==7)){
    if(j!="fbsend"){
        h=document.createElement("<div class='"+m+"' data-action='"+e+"' data-send='false' data-layout='"+g+"' data-show-faces='false' data-href='"+c+"'></div>")
        }else{
        h=document.createElement("<div class='"+m+"' data-href='"+c+"'></div>")
        }
    }
var a=document.createElement("span");
a.setAttribute("style","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;position:relative;margin:3px 3px 0;padding:0px;font-size:11px;line-height:16px;vertical-align:bottom;overflow:visible;"+f);
(iedocmode&&(iedocmode==7)&&a.style.setAttribute)?a.style.setAttribute("cssText","text-decoration:none;color:#000000;display:inline-block;cursor:pointer;position:relative;margin:3px 3px 0;font-size:11px;line-height:0px;"+f,0):(null);
var k=document.createElement("div");
k.setAttribute("id","fb-root");
a.appendChild(k);
a.appendChild(h);
return a
};

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(a){
    stButtons.countsResp[a.ourl]=a;
    stButtons.processCount(a)
    };

stButtons.processCount=function(b){
    if(!(b)){
        return
    }
    stButtons.storedCountResponse=b;
    var a=false;
    for(var c=0;c<stButtons.cbQueue.length;c++){
        var e=stButtons.cbQueue[c];
        if(b.ourl==e.url){
            var g="";
            try{
                if(e.service=="sharethis"){
                    if(stWidget.options.newOrZero=="zero"){
                        g=(b.total>0)?stButtons.human(b.total):"0"
                        }else{
                        g=(b.total>0)?stButtons.human(b.total):"New"
                        }
                    }else{
                if(e.service=="facebook"&&typeof(b.facebook2)!="undefined"){
                    g=stButtons.human(b.facebook2)
                    }else{
                    if(typeof(b[e.service])!="undefined"){
                        g=(b[e.service]>0)?stButtons.human(b[e.service]):"0"
                        }else{
                        g="0"
                        }
                    }
            }
        if(/stHBubble/.test(e.element.parentNode.className)==true){
        e.element.parentNode.style.display="inline-block"
        }else{
        if(/stBubble/.test(e.element.parentNode.className)==true){
            e.element.parentNode.style.display="block"
            }
        }
    e.element.innerHTML=g
    }catch(d){
    if(!e.element.hasChildNodes()){
        var f=document.createElement("div");
        f.innerHTML=g;
        e.element.appendChild(f)
        }
    }
a=true
}
}
};

stButtons.human=function(a){
    if(a>=100000){
        a=a/1000;
        a=Math.round(a);
        a=a+"K"
        }else{
        if(a>=10000){
            a=a/100;
            a=Math.round(a);
            a=a/10;
            a=a+"K"
            }
        }
    return a
};

stButtons.locateElements=function(e){
    var G=document.getElementsByTagName("*");
    var F=[];
    var I=new RegExp(/st_(.*?)_custom/);
    var H=new RegExp(/st_(.*?)_vcount/);
    var b=new RegExp(/st_(.*?)_vcount_native/);
    var D=new RegExp(/st_(.*?)_hcount/);
    var f=new RegExp(/st_(.*?)_hcount_native/);
    var B=new RegExp(/st_(.*?)_button/);
    var A=new RegExp(/st_(.*?)_large/);
    var v=new RegExp(/st_(.*?)_pcount/);
    var s=new RegExp(/st_(.*?)_stbar/);
    var q=new RegExp(/st_(.*?)_stsmbar/);
    var p=new RegExp(/st_(.*?)_css/);
    var a=new RegExp(/^st_(.*?)$/);
    var w=G.length;
    var r=0,l,o,C,d=[],J=false;
    if(typeof(stRecentServices)!="undefined"&&stRecentServices!="undefined"&&stRecentServices!="false"&&stRecentServices){
        J=true
        }
        for(var u=0;u<w;u++){
        l="";
        o=false;
        C=false;
        if(typeof(G[u].className)=="string"&&G[u].className!=""){
            if(G[u].className.match(I)&&G[u].className.match(I).length>=2&&G[u].className.match(I)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(I)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"custom"
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(H)&&G[u].className.match(H).length>=2&&G[u].className.match(H)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(H)[1];
                    var c="";
                    if(G[u].className.match(b)&&G[u].className.match(b).length>=2&&G[u].className.match(b)[1]){
                        c="native"
                        }
                        F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"vcount",
                        ctype:c
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(D)&&G[u].className.match(D).length>=2&&G[u].className.match(D)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(D)[1];
                    var c="";
                    if(G[u].className.match(f)&&G[u].className.match(f).length>=2&&G[u].className.match(f)[1]){
                        c="native"
                        }
                        F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"hcount",
                        ctype:c
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(B)&&G[u].className.match(B).length>=2&&G[u].className.match(B)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(B)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"button"
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(A)&&G[u].className.match(A).length>=2&&G[u].className.match(A)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(A)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"large"
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(v)&&G[u].className.match(v).length>=2&&G[u].className.match(v)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(v)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"pcount",
                        count:u
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(s)&&G[u].className.match(s).length>=2&&G[u].className.match(s)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(s)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"stbar",
                        count:u
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(q)&&G[u].className.match(q).length>=2&&G[u].className.match(q)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(q)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"stsmbar",
                        count:u
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(p)&&G[u].className.match(p).length>=2&&G[u].className.match(p)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(p)[1];
                    var E=G[u].className.split("_");
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"css",
                        cssType:E[E.length-1]
                        });
                    G[u].setAttribute("st_processed","yes")
                    }
                }else{
            if(G[u].className.match(a)&&G[u].className.match(a).length>=2&&G[u].className.match(a)[1]){
                if(stButtons.testElem(G[u])==false){
                    C=true;
                    l=G[u].className.match(a)[1];
                    F.push({
                        service:l,
                        element:G[u],
                        url:G[u].getAttribute("st_url"),
                        title:G[u].getAttribute("st_title"),
                        image:(G[u].getAttribute("st_img")!=null)?G[u].getAttribute("st_img"):G[u].getAttribute("st_image"),
                        summary:G[u].getAttribute("st_summary"),
                        text:G[u].getAttribute("displayText"),
                        type:"chicklet"
                    });
                    G[u].setAttribute("st_processed","yes")
                    }
                }
        }
    }
}
}
}
}
}
}
}
if(J){
    if(C){
        for(r=0;r<d.length;r++){
            if(d[r].service==l){
                d[r].count++;
                o=true
                }
            }
        if(!o){
        d.push({
            service:l,
            count:1,
            doNotReplace:false,
            processed:false
        })
        }
    }
}
}
}
if(J){
    var n=[];
    for(var j=d.length-1;j>=0;j--){
        if(d[j].service=="sharethis"||d[j].doNotReplace){
            d[j].processed=true;
            continue
        }else{
            for(var h in stRecentServices){
                var m=false;
                if(!stRecentServices[h].processed){
                    for(var t=0;t<d.length;t++){
                        if(h==d[t].service&&!d[t].processed){
                            m=true;
                            d[t].doNotReplace=true;
                            stRecentServices[h].processed=true;
                            break
                        }
                    }
                    if(m){
                    d[j].processed=true
                    }else{
                    n.push({
                        oldService:d[j].service,
                        newService:h
                    });
                    for(var g=0;g<F.length;g++){
                        if(F[g].service==d[j].service){
                            F[g].service=h;
                            F[g].text=stRecentServices[h].title;
                            F[g].element.setAttribute("displayText",stRecentServices[h].title);
                            F[g].element.className=F[g].element.className.replace(d[j].service,h)
                            }
                        }
                    stRecentServices[h].processed=true;
                d[j].processed=true;
                break
            }
            }
            }
    }
}
}
for(var u=0;u<F.length;u++){
    stWidget.addEntry(F[u])
    }
};

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(){
    if(typeof(stButtons.button_css_called)=="undefined"){
        var a=(("https:"==document.location.protocol)?"https://ws.sharethis.com/button/css/buttons-secure.css":"http://w.sharethis.com/button/css/buttons.75629ccedf64ecdd08e26260af818da8.css");
        stButtons.odcss(a,function(){});
        stButtons.button_css_called=true
        }
        stButtons.locateElements()
    };

stButtons.getPlusOneFromGoogle=function(){
    if(stButtons.plusOneLoaded==false){
        if(stButtons.plusOneLoading==false){
            var a=document.createElement("script");
            a.setAttribute("type","text/javascript");
            a.setAttribute("src","https://apis.google.com/js/plusone.js");
            a.onload=function(){
                gapi.plusone.go();
                stButtons.plusOneLoaded=true;
                stButtons.plusOneLoading=false
                };

            a.onreadystatechange=function(){
                if(this.readyState=="complete"){
                    gapi.plusone.go();
                    stButtons.plusOneLoaded=true;
                    stButtons.plusOneLoading=false
                    }
                };

        stButtons.plusOneLoading=true;
        document.getElementsByTagName("head")[0].appendChild(a)
        }
    }else{
    gapi.plusone.go()
    }
};

stButtons.getXFBMLFromFB=function(){
    if(stButtons.xfbmlLoaded==false){
        if(stButtons.xfbmlLoading==false){
            stButtons.xfbmlLoading=true;
            var a="en_US";
            var c,b=document.getElementsByTagName("script")[0];
            if(document.getElementById("facebook-jssdk")){
                return
            }
            c=document.createElement("script");
            c.id="facebook-jssdk";
            c.src="//connect.facebook.net/"+a+"/all.js#xfbml=1";
            c.onload=function(){
                FB.init({
                    appId:"",
                    xfbml:true
                });
                FB.XFBML.parse();
                stButtons.xfbmlLoaded=true;
                stButtons.xfbmlLoading=false
                };

            c.onreadystatechange=function(){
                if(this.readyState=="complete"||this.readyState=="loaded"){
                    FB.init({
                        appId:"",
                        xfbml:true
                    });
                    FB.XFBML.parse();
                    stButtons.xfbmlLoaded=true;
                    stButtons.xfbmlLoading=false
                    }
                };

        b.parentNode.insertBefore(c,b)
        }
    }else{
    FB.XFBML.parse()
    }
};

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)
        }
        if(stButtons.countsResp[c]){
        stButtons.processCount(stButtons.countsResp[c])
        }
    };

stButtons.checkQueue=function(a){
    for(var b=0;b<stButtons.queue.length;b++){
        if(stButtons.queue[b]==a){
            return true
            }
        }
    return false
};

stButtons.testElem=function(b){
    var a=false;
    if(b.getAttribute("st_processed")!=null){
        return true
        }else{
        return false
        }
    };

function Shareable(c){
    var a={};

    a.facebook="450";
    a.twitter="684";
    a.yahoo="500";
    a.gbuzz="873";
    a.linkedin="600";
    var b={};

    b.facebook="300";
    b.twitter="718";
    b.yahoo="460";
    b.gbuzz="519";
    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")&&!detectMobileDevice()&&((!switchTo5x)||(switchTo5x&&(c.service=="sharethis"||c.service=="email"||c.service=="wordpress")))){
            f.onmouseover=this.mouseOn;
            f.onmouseout=this.mouseOut
            }
            f.onclick=function(g){
            d.decideFastShare()
            }
        };

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.mouseTimer=null;
    this.mouseOutTimer=null;
    this.frameReady=false;
    this.stopClosing=false;
    this.buttonClicked=false;
    this.frameUrl5x=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure5x/index.html":"http://edge.sharethis.com/share5x/index.52331d9b3224bfad45fb41e661372ab2.html");
    this.frameUrl4x=(("https:"==document.location.protocol)?"https://ws.sharethis.com/secure/index.html":"http://edge.sharethis.com/share4x/index.d6c0a545242845907b211345db656892.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="353px";
this.mainstframe.height="350px";
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="430px";
    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;
        if(switchTo5x){
            window.frames.stLframe.location.replace(stWidget.frameUrl5x+stWidget.createFrag(null,"init"))
            }else{
            window.frames.stLframe.location.replace(stWidget.frameUrl4x+stWidget.createFrag(null,"init"))
            }
        }
}
};

stWidget.options=new function(){
    this.fpc=stLight.fpc;
    this.sessionID=null;
    this.publisher=null;
    this.tracking=true;
    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.popup=false;
    this.newOrZero="new";
    this.publisherGA=null;
    this.services="";
    this.relatedDomain=null
    };

stWidget.addEntry=function(a){
    if(!a.element){
        return false
        }
        if(a&&a.service&&((a.service=="email"||a.service=="sharethis"||a.service=="wordpress")||((stIsLoggedIn&&servicesLoggedIn&&typeof(servicesLoggedIn[a.service])!="undefined"&&((useFastShare||(!useFastShare&&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));
            if(a.service=="plusone"){
                stButtons.getPlusOneFromGoogle()
                }
                if(a.service=="fblike"||a.service=="fbsend"||a.service=="fbrec"){
                stButtons.getXFBMLFromFB()
                }
            }else{
        stButtons.makeButton(a)
        }
        return true
    }else{
    if(a.type!="custom"){
        a.element.appendChild(stButtons.makeButton(a));
        if(a.service=="plusone"){
            stButtons.getPlusOneFromGoogle()
            }
            if(a.service=="fblike"||a.service=="fbsend"||a.service=="fbrec"){
            stButtons.getXFBMLFromFB()
            }
        }else{
    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.decideFastShare,500)
    };

b.mouseOut=function(){
    clearInterval(stWidget.mouseOnTimer)
    };

b.decideFastShare=function(){
    if(!useFastShare||!stIsLoggedIn||a.service=="email"||a.service=="sharethis"||a.service=="wordpress"||(typeof(servicesLoggedIn[a.service])=="undefined"&&(a.service=="facebook"||a.service=="twitter"||a.service=="gbuzz"||a.service=="linkedin"||a.service=="yahoo"))){
        if(detectMobileDevice()){
            if(a.service=="sharethis"){
                var f=document.createElement("form");
                f.setAttribute("method","GET");
                f.setAttribute("action","http://edge.sharethis.com/share4x/mobile.html");
                f.setAttribute("target","_blank");
                var h={
                    url:b.url,
                    title:b.title,
                    destination:a.service,
                    publisher:stLight.publisher,
                    fpc:stLight.fpc,
                    sessionID:stLight.sessionID
                    };

                if(typeof(b.image)!="undefined"&&b.image!=null){
                    h.image=b.image
                    }
                    if(typeof(b.summary)!="undefined"&&b.summary!=null){
                    h.desc=b.summary
                    }
                    h.service=a.service;
                h.type=a.type;
                for(var e in h){
                    var c=document.createElement("input");
                    c.setAttribute("type","hidden");
                    c.setAttribute("name",e);
                    c.setAttribute("value",h[e]);
                    f.appendChild(c)
                    }
                    document.body.appendChild(f);
                f.submit()
                }else{
                if(a.service=="email"){
                    var d="mailto:?subject="+encodeURIComponent(b.title)+"&body="+encodeURIComponent(b.url);
                    var f=document.createElement("form");
                    f.setAttribute("method","POST");
                    f.setAttribute("action",d);
                    f.setAttribute("target","_blank");
                    f.setAttribute("accept-charset","UTF-8");
                    document.body.appendChild(f);
                    f.submit()
                    }
                }
        }else{
    b.popup()
    }
}else{
    var g=stLight.getSource();
    stLight.log("fastShare",g,"");
    stFastShareObj.url=b.url;
    stFastShareObj.title=b.title;
    stFastShareObj.image=b.image;
    stFastShareObj.summary=b.summary;
    stFastShareObj.element=a.element;
    stFastShareObj.service=a.service;
    stFastShareObj.publisher=stLight.publisher;
    stFastShareObj.fpc=stLight.fpc;
    stFastShareObj.sessionID=stLight.sessionID;
    stFastShareObj.hostname=stLight.meta.hostname;
    stFastShareObj.username=servicesLoggedIn[a.service];
    if(typeof(fastShare)=="undefined"){
        stLight.odjs((("https:"==document.location.protocol)?"https://ws.sharethis.com/button/fastShare.js":"http://w.sharethis.com/button/fastShare.js"),function(){
            fastShare.showWidget()
            })
        }else{
        fastShare.showWidget()
        }
    }
};

b.popup=function(){
    if(stWidget.widgetOpen==false){
        if(!switchTo5x){
            stWidget.stCancelClose()
            }
            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);
if(stWidget.options.popup&&!switchTo5x){
    window.open(stWidget.frameUrl4x+stWidget.createFrag(b),"newstframe","status=1,toolbar=0,width=345,height=375")
    }else{
    if(stWidget.options.popup&&switchTo5x){
        var e="http://sharethis.com/share?url="+b.url+"&title="+b.title+"&img="+b.image+"&summary="+b.summary;
        window.open(e,"newstframe","status=1,toolbar=0,width=820,height=950")
        }else{
        if(switchTo5x&&(a.service=="sharethis"||a.service=="email"||a.service=="wordpress"||a.service=="facebook"||a.service=="twitter"||a.service=="linkedin"||a.service=="gbuzz"||a.service=="yahoo")){
            window.frames.stLframe.location.replace(stWidget.frameUrl5x+stWidget.createFrag(b))
            }else{
            window.frames.stLframe.location.replace(stWidget.frameUrl4x+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";
    f=stWidget.options.popup?"#popup":f;
    __stgetPubGA();
    if(b=="init"){
        f="#init";
        if(stWidget.options.tracking&&stWidget.options.publisherGA==null){
            if(typeof(pageTracker)!="undefined"&&pageTracker!==null){
                stWidget.options.publisherGA=pageTracker._getAccount()
                }else{
                if(stWidget.options.publisherGA==null&&typeof(__stPubGA)!=="undefined"){
                    stWidget.options.publisherGA=__stPubGA
                    }
                }
        }
    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"
                        }else{
                        if(c.service=="wordpress"){
                            f=f+"/page-=-wphome"
                            }
                        }
                }
        }
}
}
}
}
return f
};

stWidget.positionWidget=function(o){
    function getHW(elem){
        var retH=0;
        var retW=0;
        var going=true;
        while(elem!=null){
            retW+=elem.offsetLeft;
            if(going){
                retH+=elem.offsetTop
                }
                if(window.getComputedStyle){
                if(document.defaultView.getComputedStyle(elem,null).getPropertyValue("position")=="fixed"){
                    retH+=(document.documentElement.scrollTop||document.body.scrollTop);
                    going=false
                    }
                }else{
            if(elem.currentStyle){
                if(elem.currentStyle.position=="fixed"){
                    retH+=(document.documentElement.scrollTop||document.body.scrollTop);
                    going=false
                    }
                }
        }
    elem=elem.offsetParent
}
return{
    height:retH,
    width:retW
}
}
if(!o){
    return false
    }
    if(!switchTo5x){
    shareel=o.element;
    var curleft=curtop=0;
    var mPos=getHW(shareel);
    curleft=mPos.width;
    curtop=mPos.height;
    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=330;
        var widgetW=330;
        var needH=widgetH+elemH;
        var needW=widgetW+elemW;
        var diffH=needH-effectiveH;
        var diffW=needW-effectiveW;
        var newH=elemH-diffH;
        var newW=elemW-diffW;
        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="500px"
            }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"){
    if(document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1){
        stWidget.wrapper.style.left="500px"
        }else{
        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.closetimeout=null;
stWidget.stClose=function(a){
    if(!a){
        a=1000
        }
        if(!switchTo5x&&stWidget.options.autoclose!=null&&(stWidget.options.autoclose==true||stWidget.options.autoclose=="true")){
        if(stWidget.openDuration<0.5&&stWidget.stopClosing==false){
            stWidget.closetimeout=setTimeout("stWidget.closeWidget()",a)
            }else{
            stWidget.stopClosing=true
            }
        }
};

stWidget.stCancelClose=function(){
    clearTimeout(stWidget.closetimeout);
    stWidget.buttonClicked=true;
    setTimeout(function(){
        stWidget.buttonClicked=false
        },100)
    };

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{
        if(switchTo5x){
            window.frames.stLframe.location.replace(stWidget.frameUrl5x+c)
            }else{
            window.frames.stLframe.location.replace(stWidget.frameUrl4x+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")
                                }
                            }
                    }
            }
    }
}
}
};

var deviceIphone="iphone";
var deviceIpod="ipod";
var deviceIpad="ipad";
var uagent=navigator.userAgent.toLowerCase();
function detectIphone(){
    if(uagent.search(deviceIphone)>-1){
        return true
        }else{
        return false
        }
    }
function detectIpod(){
    if(uagent.search(deviceIpod)>-1){
        return true
        }else{
        return false
        }
    }
function detectIpad(){
    if(uagent.search(deviceIpad)>-1){
        return true
        }else{
        return false
        }
    }
function detectIphoneOrIpod(){
    if(detectIphone()){
        return true
        }else{
        if(detectIpod()){
            return true
            }else{
            return false
            }
        }
}
function detectAndroid(){
    var a=uagent.indexOf("android")>-1;
    if(a){
        return true
        }else{
        return false
        }
    }
function detectBlackBerry(){
    var a=uagent.indexOf("blackberry")>-1;
    if(a){
        return true
        }else{
        return false
        }
    }
function detectMobileDevice(){
    if(detectIphone()){
        return true
        }else{
        if(detectIpad()){
            return true
            }else{
            if(detectIpod()){
                return true
                }else{
                if(detectAndroid()){
                    return true
                    }else{
                    if(detectBlackBerry()){
                        return true
                        }else{
                        return false
                        }
                    }
            }
    }
}
}
function shareLog(a){
    if(typeof(pageTracker)!="undefined"&&pageTracker!==null){
        pageTracker._trackEvent("ShareThis",a)
        }else{
        if(typeof(_gaq)!="undefined"&&_gaq!==null){
            _gaq.push(["_trackEvent","ShareThis",a])
            }else{
            if(stButtons.publisherTracker!==null){
                stButtons.publisherTracker._trackEvent("ShareThis",a)
                }else{
                if(typeof(_gat)!="undefined"&&_gat!==null){
                    if(typeof(stWidget.options.publisherGA)!="undefined"&&stWidget.options.publisherGA!=null){
                        stButtons.publisherTracker=_gat._getTracker(stWidget.options.publisherGA);
                        stButtons.publisherTracker._trackEvent("ShareThis",a)
                        }
                    }
            }
    }
}
}
stButtons.completeInit=function(){
    if(!stButtons.goToInit){
        stButtons.goToInit=true;
        stWidget.getOGTags();
        document.body.appendChild(stWidget.wrapper);
        if(switchTo5x){
            document.body.appendChild(stWidget.overlay)
            }
            if(!switchTo5x){
            try{
                var b=document.getElementById("stLframe");
                b.onmouseover=function(){
                    stWidget.stCancelClose();
                    stWidget.inTime=(new Date()).getTime()
                    };

                b.onmouseout=function(){
                    stWidget.outTime=(new Date()).getTime();
                    stWidget.openDuration=(stWidget.outTime-stWidget.inTime)/1000;
                    stWidget.stClose()
                    };

                try{
                    if(document.body.attachEvent){
                        document.body.attachEvent("onclick",function(){
                            if(stWidget.buttonClicked==false){
                                stWidget.stopClosing=false;
                                stWidget.openDuration=0;
                                stWidget.stClose(100)
                                }
                            })
                    }else{
                    document.body.setAttribute("onclick","if(stWidget.buttonClicked==false){stWidget.stopClosing=false;stWidget.openDuration=0;stWidget.stClose(100);}")
                    }
                }catch(a){
            document.body.onclick=function(){
                if(stWidget.buttonClicked==false){
                    stWidget.stopClosing=false;
                    stWidget.openDuration=0;
                    stWidget.stClose(100)
                    }
                }
        }
}catch(a){}
}
stButtons.makeButtons();
stWidget.init()
}
};

plusoneCallback=function(c){
    if(c.state=="on"){
        var a=(("https:"==document.location.protocol)?"https://ws":"http://wd")+".sharethis.com/api/sharer.php?destination=plusone&url="+encodeURIComponent(c.href);
        a+="&publisher="+encodeURIComponent(stLight.publisher);
        a+="&hostname="+encodeURIComponent(stLight.meta.hostname);
        a+="&location="+encodeURIComponent(stLight.meta.location);
        a+="&ts="+(new Date()).getTime();
        a+="&sessionID="+stLight.sessionID;
        a+="&fpc="+stLight.fpc;
        var b=new Image(1,1);
        b.src=a;
        b.onload=function(){
            return
        }
    }
};

stButtons.trackFB=function(){
    try{
        if(typeof(FB)!="undefined"&&typeof(FB.Event)!="undefined"&&typeof(FB.Event.subscribe)!="undefined"){
            FB.Event.subscribe("edge.create",function(b){
                stButtons.trackShare("fblike_auto",b);
                stLight.callSubscribers("click","fblike",b)
                });
            FB.Event.subscribe("edge.remove",function(b){
                stButtons.trackShare("fbunlike_auto",b);
                stLight.callSubscribers("click","fbunlike",b)
                });
            FB.Event.subscribe("message.send",function(b){
                stButtons.trackShare("fbsend_auto",b);
                stLight.callSubscribers("click","fbsend",b)
                })
            }
        }catch(a){}
};

stButtons.trackTwitter=function(){
    if(typeof(twttr)!="undefined"&&typeof(twttr.events)!="undefined"&&typeof(twttr.events.bind)!="undefined"){
        twttr.events.bind("click",function(a){
            stButtons.trackTwitterEvent("click");
            stLight.callSubscribers("click","twitter")
            });
        twttr.events.bind("tweet",function(){
            stButtons.trackTwitterEvent("tweet")
            });
        twttr.events.bind("retweet",function(){
            stButtons.trackTwitterEvent("retweet");
            stLight.callSubscribers("click","retweet")
            });
        twttr.events.bind("favorite",function(){
            stButtons.trackTwitterEvent("favorite");
            stLight.callSubscribers("click","favorite")
            });
        twttr.events.bind("follow",function(){
            stButtons.trackTwitterEvent("follow");
            stLight.callSubscribers("click","follow")
            })
        }
    };

stButtons.trackTwitterEvent=function(a){
    stButtons.trackShare("twitter_"+a+"_auto")
    };

stButtons.trackShare=function(a,c){
    if(typeof(c)!=="undefined"||c!==null){
        var b=c
        }else{
        var b=document.location.href
        }
        var d=(("https:"==document.location.protocol)?"https://ws":"http://wd")+".sharethis.com/api/sharer.php?destination="+a+"&url="+encodeURIComponent(b);
    d+="&publisher="+encodeURIComponent(stLight.publisher);
    d+="&hostname="+encodeURIComponent(stLight.meta.hostname);
    d+="&location="+encodeURIComponent(stLight.meta.location);
    d+="&ts="+(new Date()).getTime();
    d+="&sessionID="+stLight.sessionID;
    d+="&fpc="+stLight.fpc;
    var e=new Image(1,1);
    e.src=d;
    e.onload=function(){
        return
    }
};

stLight.processSTQ=function(){
    if(typeof(_stq)!="undefined"){
        for(var a=0;a<_stq.length;a++){
            var b=_stq[a];
            stLight.options(b)
            }
        }else{
    return false
    }
};

stLight.onDomContentLoaded=function(){
    stLight.onReady()
    };

stLight.messageReceiver=function(b){
    if(b&&(b.origin=="http://edge.sharethis.com"||b.origin=="https://ws.sharethis.com")){
        var c=b.data;
        c=c.split("|");
        if(c[0]=="ShareThis"&&c.length>2){
            var a=(typeof(c[3])=="undefined")?document.location.href:c[3];
            stLight.callSubscribers(c[1],c[2],a)
            }
        }
};

stLight.subscribe=function(b,a){
    if(b=="click"){
        stLight.clickSubscribers.push(a)
        }
    };

stLight.callSubscribers=function(d,a,b){
    if(d=="click"){
        for(var c=0;c<stLight.clickSubscribers.length;c++){
            stLight.clickSubscribers[c]("click",a,b)
            }
        }
    };

stLight.gaTS=function(c,a,b){
    if(a=="fblike"){
        network="ShareThis_Facebook";
        action="Like"
        }else{
        if(a=="fbunlike"){
            network="ShareThis_Facebook";
            action="UnLike"
            }else{
            if(a=="fbsend"){
                network="ShareThis_Facebook";
                action="Send"
                }else{
                if(a=="twitter"){
                    network="ShareThis_Twitter";
                    action="Share"
                    }else{
                    network="ShareThis_"+a;
                    action="Share"
                    }
                }
        }
}
if(typeof(_gaq)!="undefined"){
    _gaq.push(["_trackSocial",network,action,b])
    }
};

stButtons.onReady=function(){
    stButtons.trackFB();
    stButtons.trackTwitter();
    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()
    }
    stLight.subscribe("click",stLight.gaTS)
};

stLight.domReady=function(){
    stLight.onReady();
    __stgetPubGA();
    if(typeof(__stPubGA)!=="undefined"&&stLight.readyRun==true&&stWidget.frameReady==true){
        stWidget.sendEvent("publisherGA",__stPubGA)
        }
    };

stButtons.goToInit=false;
stButtons.widget=false;
stButtons.widgetArray=[];
stButtons.queue=[];
stButtons.cbQueue=[];
stButtons.cbVal=0;
stButtons.queuePos=0;
stButtons.counts=[];
st_showing=false;
stButtons.urlElements=[];
stButtons.publisherTracker=null;
stButtons.plusOneLoaded=false;
stButtons.plusOneLoading=false;
stButtons.xfbmlLoaded=false;
stButtons.xfbmlLoading=false;
stButtons.countsResp=[];
stWidget.getOGTags();
stLight.loadServicesLoggedIn(function(){
    stButtons.locateElements();
    stButtons.makeButtons()
    });
stLight.clickSubscribers=[];
var __stPubGA;
if(window.document.readyState=="completed"){
    stLight.domReady()
        }else{
    if(typeof(window.addEventListener)!="undefined"){
        window.addEventListener("load",stLight.domReady,false)
            }else{
        if(typeof(document.addEventListener)!="undefined"){
            document.addEventListener("load",stLight.domReady,false)
                }else{
            if(typeof window.attachEvent!="undefined"){
                window.attachEvent("onload",stLight.domReady)
                    }
                }
    }
}
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"){
            window.attachEvent("onclick",function(){
                stWidget.closeWidget()
                })
            }
            }
}
if(typeof(__st_loadLate)=="undefined"){
    if(typeof(window.addEventListener)!="undefined"){
        window.addEventListener("DOMContentLoaded",stLight.onDomContentLoaded,false)
            }else{
        if(typeof(document.addEventListener)!="undefined"){
            document.addEventListener("DOMContentLoaded",stLight.onDomContentLoaded,false)
                }
            }
}
if(typeof(window.addEventListener)!="undefined"){
    window.addEventListener("message",stLight.messageReceiver,false)
        }else{
    if(typeof(document.addEventListener)!="undefined"){
        document.addEventListener("message",stLight.messageReceiver,false)
            }else{
        if(typeof window.attachEvent!="undefined"){
            window.attachEvent("onmessage",stLight.messageReceiver)
                }
            }
}
if(document.readyState=="complete"&&stLight.readyRun==false){
    stLight.domReady()
        };
