var is_ns6 = false;
var is_moz = false;
var is_ie = false;
var is_mac = false;
var startoffset = 0
// Gebruikte browser checks.

if(typeof( window.innerWidth ) == 'number' ) {
    is_moz = true;
    startoffset = 6;
    if (navigator.userAgent.indexOf("Netscape")!= -1) {
        is_ns6 = true;
    }
} else  {
    startoffset = -1;
    is_ie = true;
    if (navigator.userAgent.indexOf("Mac")!= -1) {
        is_mac = true;
    }
}




function tijdenslaad() {
    document.getElementById('coolmenuspacer').style.height= document.getElementById('MN_50002bbar').style.height;
    fixme();
}


function fixme() {

    var myWidth = 0, myHeight = 0;
    var mainposition;

    mainposition = document.getElementById('mainposition');
    if (!mainposition) {
        mainposition = document.getElementById('contentposition');
    }
    if(is_moz) {
        //Non-IE
        myHeight = window.innerHeight;
        myWidth = window.innerWidth;
     } else {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
     }

    // Check voor scroolbar
    if (myHeight < document.body.scrollHeight) {
        myHeight = document.body.scrollHeight;
    }

    // Achterground
    if (mainposition) {
       mainposition.style.height = myHeight;
    }
}
