﻿function checkBrowser() {
    if (window.navigator.userAgent.indexOf("MSIE") >= 1) {
        browser = 1;
    } else if (window.navigator.userAgent.indexOf("Firefox") >= 1) {
        browser = 2;
    } else if (window.navigator.userAgent.indexOf("Safari") >= 1) {
        browser = 3;
    } else {
        browser = 0;
    }
    return browser;
}
function checkResolution() {

}
function initPage() {
    var content = document.getElementById("content");
    var footer = document.getElementById("footer");
    switch (checkBrowser()) {
        case 1:
            content.style.height = (document.body.clientHeight - 148);
            break;
        case 2:
            content.style.height = (document.body.clientHeight - 148) + 'px';
            break;
        case 3:
            content.style.height = (document.body.clientHeight - 118) + 'px';
            break;
        case 0:
            content.style.height = (document.body.clientHeight - 168) + 'px';
            break;
        default:
            content.style.height = (document.body.clientHeight - 168);
    }
}
