$(document).ready(function(){
    coding = $('#nav ul li:eq(1)')
    coding.empty();
    coding.html('coding');
    coding.hover(
        function(){
            $(this).css('cursor', 'pointer');
        },
        function(){
            $(this).css('cursor', 'auto');
        }
    );
    coding.click(function(){
        /* recent activity
         * Need a proxy on my server for that.. shiat!?
         * /
        
        /* get repos */
        $.getJSON('http://github.com/api/v2/json/repos/show/originell?callback=?', function(data){
            $('#content').empty();
            $('#side').empty();
            $('#content').append('<div id="gitfolio"></div');
            $.each(data.repositories, function(i, item){
                $('#content #gitfolio').append('<h1><a href="'+ item.url +'">'+ item.name +'</a></h1><p>'+ item.description +'</p>');
            });
            $('#side').append('<div><h1>Projects</h1><p>These are Luis&rsquo; public coding projects.</p><p>They are living at <a href="http://github.com/">GitHub</a></p><p><a href="http://github.com/originell/">Jump to Luis\' GitHub Profile...</a></p></div>');
        });
    });
});

