﻿// deze funtie voegt functies toe aan de onload ipv deze te overschrijven
function addLoadEvent(func) {
  //alert('Addload')
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
    
    var maat =  document.getElementById("maat");
    var sitecontainer =  document.getElementById("bg");
    
    
    if (navigator.appVersion.indexOf("MSIE") == -1) {
        sitecontainer = document.getElementById("ctl00_WebsiteContainer");
    }
    var BackGroundGlobalizer = document.getElementById("ctl00_BackGroundGlobalizer");



    if (navigator.appVersion.indexOf("MSIE 6.0") != -1) {
       if (BackGroundGlobalizer.offsetHeight < (maat.offsetHeight - 171)) {
            BackGroundGlobalizer.style.height = maat.offsetHeight - 171 + "px";
       }
    } else {
       if (BackGroundGlobalizer.offsetHeight < (maat.offsetHeight - 120)) {
            BackGroundGlobalizer.style.height = maat.offsetHeight - 120 + "px";
      }
    }
    }
    
) 

window.onresize = function(){
       // setTimeout("location.reload();",500)
    };


