function adjustStyle(width) {
    width = parseInt(width);
    if (width < 900) {
        $("#size").attr("href", "/styles/min.css");
	} else if ((width >= 901) && (width < 1172)) {
        $("#size").attr("href", "/styles/1152.css");
    } else if ((width >= 1153) && (width < 1300)) {
        $("#size").attr("href", "/styles/1280.css");
    } else if ((width >= 1281) && (width < 1460)) {
        $("#size").attr("href", "/styles/1440.css");
	} else if ((width >= 1441) && (width < 1700)) {
        $("#size").attr("href", "/styles/1680.css");	
    } else {
       $("#size").attr("href", "/styles/1920.css");
    }
};

$(document).ready(function() {
    adjustStyle($(this).width());
    $(window).resize(function() {
        adjustStyle($(this).width());
    });
});
