﻿window.onresize = function() {
    setBottom();
}

function setBottom() {
    var myHeight = 0, myWidth = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        myHeight = window.innerHeight;
        myWidth = window.innerWidth;

    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight + 1;
        myWidth = document.documentElement.clientWidth;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
        myWidth = document.body.clientWidth;
    }

    var height = myHeight - 725;



    if (myHeight < 768) {

        if (height < 0) {

            document.getElementById("bottom").style.height = "100px";
        }
        else {

            document.getElementById("bottom").style.height = "100px";
        }
    }
    else {
        document.getElementById("bottom").style.height = height + "px";
    }


    var width = myWidth - 260 - myWidth * 0.50;
    if (width > 700) {
        document.getElementById("capitol").style.width = "700px";

    }
    else if (width > 0) {

        document.getElementById("capitol").style.width = width + "px";
    }
    else { }


    if (myWidth < 1025) {
        //document.getElementById("mission").style.fontStyle = "italic";

    }
    else {
        //document.getElementById("mission").style.fontStyle = "normal";

    }

}
   