$(function() {
    // Share
    $("#share").append("<p></p>");
    $("#share ul li").hover(
        function() {
            $(this).animate({
                top: "-0.5em"
            });
            $("#share p").html( $(this).find("img").attr("alt") );
        },
        function() {
            $(this).animate({
                top: "0em"
            });
        }   
    );
    $("#share").hover(
        function() {
            $("#share p").show('slow');
        },
        function() {
            $("#share p").hide('slow');
        }
    );
    // Zoom
    font_size = 12;
    function zoom_text(k) {
        font_size = font_size * k;
        $("#article").css("font-size", font_size+"px");
        $("#articles-list").css("font-size", font_size+"px");
    }
    $("#zoom a.in").click(function(event) {
        zoom_text(1.1);
        event.preventDefault();
    });
    $("#zoom a.out").click(function(event) {
        zoom_text(0.9);
        event.preventDefault();
    });
});    

