Container = {
    adjust: function() {
        // width definitions
        var width = {
            'min': 1024,
            'max': 1680,
            'screen': $(window).width()
        };
        // middle width
        if (width.screen > width.min && width.screen < width.max) {
            $('#container').css('width', '100%');
            $('#content').css('left', (width.screen - width.min) / 2 + 'px');
        }
        // minimum width
        else if (width.screen <= width.min) {
            $('#container').css('width', width.min + 'px');
            $('#content').css('left', '0');
        }
        // maximum width
        else {
            $('#container').css('width', width.max + 'px');
            $('#content').css('left', (width.max - width.min) / 2 + 'px');
        }
    }
}

$(document).ready(function() {

    jQuery("ul.worldcup-nav li a").css("font-size", "15.5px");

    Container.adjust();
    
    $(window).bind('resize', Container.adjust);

    //Width Fix for flash top Navegation
    $("div#header-container").css("width", "100%");

});
