function fixSmallTagCloud()
{
    var $tagcloud = $('#tagcloud');

    if ($tagcloud.length > 0)
    {
        var tagcloudHeight = $tagcloud.height();

        var $column = $tagcloud.parents('.left-column');

        var columnHeight = $column.height();
        var containerHeight = $column.parent().height();

        if (columnHeight < containerHeight)
        {
            var newHeight = tagcloudHeight + (containerHeight - columnHeight);
            $tagcloud.css('height', newHeight);
        }
    }
}

function positionTagCloud()
{
    var $tagcloud = $('#tagcloud');

    if ($tagcloud.hasClass('tagcloud-small'))
    {
        var $column = $tagcloud.parent();
        var $columnWrapper = $column.parent();
        $column.height($columnWrapper.height());
    }

    $tagcloud.show();
}