function HighlightTemplateLink(linkID)
{
    $(linkID).addClass('activeLink');
}

function ResizeContainer()
{   
    var containerLine = parseInt($('#container').height()) - parseInt($('#container').css('padding-bottom').replace('px', ''));
    var childBottom = 0;  
    
    $('#container').children().each(function()
    {
        var thisChildBottom = parseInt($(this).height()) + parseInt($(this).css('top').replace('px', ''));
        
        if(thisChildBottom > childBottom)
        {
            childBottom = thisChildBottom;
        }
    });
    
    if(childBottom > containerLine)
    {
        var additionalOffset = 50;
        var offset = childBottom - containerLine;
        $('#container').height($('#container').height() + offset + additionalOffset);
    }
}

$(window).load(function () {
    ResizeContainer();
});