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 resize()
{
	fixme();
}

function fixme() {
    var myHeight = 0;

    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;
    }

    // set Items
	/* document.getElementById('bottomframe').style.top = myHeight - 16;*/
	document.getElementById('contentmainframe').style.height = myHeight;



    //Coolmenu left align
	if (navigator.appName == "Netscape") {
	    MN_50002.fromLeft=Math.max(0,(window.innerWidth - 772) / 2)+2;
	} else {
   		MN_50002.fromLeft=Math.max(0,(document.body.clientWidth -772) / 2)+2;
  }
//MN_50002.fromLeft=50;
//alert(MN_50002.fromLeft);

//alert(document.getElementById('contentkolom').offsetLeft);


  //ondermenu1 uitlijn

     document.getElementById("ondermenu1").style.top = parseInt(document.getElementById('MN_50002bbar').style.height) + 285;
     document.getElementById("ondermenu1").style.height = parseInt(document.body.scrollHeight) - parseInt(document.getElementById("ondermenu1").style.top) - 16;
     document.getElementById("ondermenu1").style.display = "";

 //ondermenu uitlijn

     document.getElementById("ondermenu").style.top = parseInt(document.getElementById('MN_50002bbar').style.height) + 108;
     document.getElementById("ondermenu").style.height = parseInt(document.body.scrollHeight) - parseInt(document.getElementById("ondermenu").style.top) - 16;
     document.getElementById("ondermenu").style.display = "";
}



