    var timerID = 0;
    function loadingTwitter() {
        $('#twitter_feed').append('.');
        timerID = window.setTimeout('loadingTwitter()', 700);
    }
    
    var newsShowing = 5;
    var newsTotal = 0;
    $(document).ready(function(event){
        // load the twitter feed (with nice little animation)
        loadingTwitter();
        $('#twitter_feed').load('/index.php?twitter=rss', function(e){
            window.clearTimeout(timerID);
        });
        
        // find out how many news items there are...
        newsTotal = $('div#infolinks .item').length;
        
        // show only the first 5 news items
        $('div#infolinks .item').hide();
        $('div#infolinks .item:lt(' +newsShowing+')').show();
        
        
        $('#moreNews').click(function(e){
            newsShowing += 10;
            if ( newsShowing >= newsTotal ) {
                newsShowing = newsTotal;
                $('#moreNews').hide();
            }
            $('div#infolinks .item:lt(' +newsShowing+')').show();
            return false;
        });
        
        // $('#show-March-2011-01').click(function(e){
        $('.showItemDetails').click(function(e){
            $(this).parent().parent().next().slideToggle();
        });
        $('.hideItemDetails').click(function(e){
            $(this).parent().slideUp();
        });
    });

