jQuery(document).ready(function($) {
    var resizing = function() {
        var pageWidth = $(window).width();
        var containerWidth = pageWidth;
        if (containerWidth < 485) {
            containerWidth = 485;
        }
        var cssOpts = {
            'width':     containerWidth + 'px !important',
            'min-width': containerWidth
        };
        $('#container').css(cssOpts);
        var useWidth = parseInt(pageWidth - 328) + 'px';
        if (pageWidth > 1024) {
            useWidth = '73%';
        }
        else {
            if (pageWidth > 820) {
                useWidth = '63%';
            }
            else {
                if (parseInt(useWidth) < 180) {
                    useWidth = '180px';
                }
            }
        }
        $('#right').css('width', useWidth);
    };
    $(window).bind('resize', resizing)
        .trigger('resize');
});

