/*
$(function()
{
	$('#twitterTopBox').click(function()
	{
		var direction;
		
		if($('#twitterIndexOpen').is(':visible'))
		{
			direction = 'up';
		}
		else
		{
			direction = 'down';
		}
		
		// Work out the sizing:
		var openHeight = $('#twitterIndexOpen').height();
		var closedHeight = $('#twitterIndexClosed').height();
		
		var containerHeight;
		if(openHeight > closedHeight) {
			containerHeight = openHeight;
		} else {
			containerHeight = closedHeight;
		}
		
		if(direction == 'down') {
			// Show the image:
			$('#twitterIndexBoxOpenImg').show();
			$('#twitterIndexBoxClosedImg').hide();
			
			$('#twitterIndexOpen').css('height', 0);
			$('#twitterIndexContent').animate({
				height: containerHeight
			}, 1000);
			
			$('#twitterIndexOpen').animate({
				height: containerHeight
			}, 500);
		} else {
			// Show the image:
			$('#twitterIndexBoxOpenImg').hide();
			$('#twitterIndexBoxClosedImg').show();
			
			$('#twitterIndexContent').animate({
				height: closedHeight
			}, 500);
			
			$('#twitterIndexOpen').animate({
				height: 0
			}, 1000, function() { 
				$('#twitterIndexOpen').hide(); $('#twitterIndexOpen').css('height', openHeight); 
			});
		}
	});
});
*/
