$(document).ready(function() {
    $('div.nw_twitter_timeline .nw_twitter_loadmoretweets').css({margin:'0 0 10px 10px',clear:'both'})
        .append(
        $('<a href="#" id="nw_twitter_loadmorelink" title="Read more tweets from NewWest.Net">Show more tweets...</a>')
            .css({fontSize:'0.825em'})
            .click(function(event) 
                {
                event.preventDefault();
                $(this).fadeOut(500);
                $('div.nw_tweets .nw_tweet_loader')
                    .css({height:$(this).attr('height')+'px', overflow:'auto'})
                    .animate({height:'+=100'},500,function ()
                        {
                            $('div.nw_tweets li.nw_twitter_more').fadeIn(500);
                            $('div.nw_tweets a#nw_twitter_hidemorelink').fadeIn(500);
                        }
                    );
                }
            )
        )
        .append(
        $('<a href="#" id="nw_twitter_hidemorelink" title="Collapse extra tweets display.">Hide extra tweets.</a>')
            .css({fontSize:'0.825em',display:'none'})
            .click(function(event) 
            {
                event.preventDefault();
                $('div.nw_tweets .nw_tweet_loader').animate({scrollTop:'0'},300);
                $(this).fadeOut(350, function()
                {
                    $('div.nw_tweets li.nw_twitter_more').fadeOut(500);
                    $('div.nw_tweets .nw_tweet_loader').animate({height:'-=100'},500, function()
                        {
                            $('div.nw_tweets a#nw_twitter_loadmorelink').fadeIn(500);
                        });
                });
            })
        );
});        

