function sharethispage(){

var thispage = location.href;

var sharethisblock =  '<style>.sharethis li a {background-position:0px 2px;background-repeat:no-repeat;height:24px;padding:4px 0pt 0pt 22px;max-width:160px;}</style>\n';
    sharethisblock += '<h5>Share this page</h5><ul class="dot-list sharethis" style="padding-bottom:0;margin-bottom:0;">';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/delicious.gif)"     rel="nofollow" target="_blank" href="http://del.icio.us/post?url='+thispage+'">del.icio.us</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/facebook.gif)"      rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u='+thispage+'">Facebook</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/digg.gif)"          rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&url='+thispage+'">Digg</a></li>\n';
    sharethisblock += '  <li><a id="sharethislink" href="#">Show More Options</a></li>';
    sharethisblock += '</ul><div id="sharethis" style="display:none;max-width:160px;"><ul class="dot-list sharethis">\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/furl.gif)"          rel="nofollow" target="_blank" href="http://furl.net/storeIt.jsp?u='+thispage+'">Furl</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/netscape.gif)"      rel="nofollow" target="_blank" href="http://www.netscape.com/submit/?U='+thispage+'">Netscape</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/yahoo_myweb.gif)"   rel="nofollow" target="_blank" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+thispage+'">Yahoo! My Web</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/stumbleupon.gif)"   rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url='+thispage+'">Stumbleupon</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/google_bmarks.gif)" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&bkmk='+thispage+'">Google Bookmarks</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/technorati.gif)"    rel="nofollow" target="_blank" href="http://www.technorati.com/faves?add='+thispage+'">Technorati</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/blinklist.gif)"     rel="nofollow" target="_blank" href="http://blinklist.com/index.php?Action=Blink/addblink.php&Url='+thispage+'">Blinklist</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/newsvine.gif)"      rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&save?popoff=0&u='+thispage+'">Newsvine</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/magnolia.gif)"      rel="nofollow" target="_blank" href="http://ma.gnolia.com/bookmarklet/add?url='+thispage+'">mag.nolia</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/reddit.gif)"        rel="nofollow" target="_blank" href="http://reddit.com/submit?url='+thispage+'">Reddit</a></li>\n';
    sharethisblock += '  <li><a style="background-image:url(/img/bookmarks/tailrank.gif)"      rel="nofollow" target="_blank" href="http://tailrank.com/share/?link_href='+thispage+'">Tailrank</a></li>\n';
    sharethisblock += '</ul></div>';

document.write(sharethisblock);
}

$(document).ready(function() {
    $('a#sharethislink').toggle(function(){
        //$('a#sharethislink').fadeOut('fast');
        $('div#sharethis').fadeIn('slow');
        $('a#sharethislink').html('Hide More Options');
        return false;
    }, function () {
        $('div#sharethis').fadeOut('slow');
        $('a#sharethislink').html('Show More Options');
        return false;
    });
});