// functions to modify layout for different window sizes              //
// Kelvin Owers www.spittingcat.com                                   //


function setSizeOption() {
    var windowWidth  = getWindowWidth();
    var windowHeight = getWindowHeight();

    if ((windowWidth < 650)&&(windowHeight < 500)) {
        document.getElementById("wrapper").className = "width_nano"
    }
    else {
        if ((windowWidth < 750)&&(windowHeight < 600)) {
            document.getElementById("wrapper").className = "width_mini"
        }
        else {
            if ((windowWidth < 1000)&&(windowHeight < 750)) {
                document.getElementById("wrapper").className = "width_small"
            }
                else {
                if ((windowWidth < 1250)&&(windowHeight < 950)) {
                    document.getElementById("wrapper").className = "width_normal"
                }
                    else {
                    if ((windowWidth < 1400)&&(windowHeight < 1050)) {
                        document.getElementById("wrapper").className = "width_medium"
                    }
                    else {
                        if ((windowWidth < 1680)&&(windowHeight < 1500)) {
                            document.getElementById("wrapper").className = "width_large"
                        }
                        else {
                            document.getElementById("wrapper").className = "width_largest"
                        }
                    }
                }
            }
        }
    }

    if (windowWidth < 1040) {
        document.getElementById("content_and_extras").className = "page_left"
    }
    else {
            document.getElementById("content_and_extras").className = "page_centred";
    }

} //setSizeOption