<!--
//====================== Paginagrootte aangepast aan schermgrootte
function MinimumSize() {
      /*var fSize = parseInt(document.body.currentStyle.fontSize.substr(0,2));
      fSize = fSize*(16/12);*/
      var minSize = 760;
      //minSize = minSize<760?760:minSize;
      var maxSize = 960;
      //maxSize = maxSize<960?960:maxSize;
      var margins = 20;
      var w = document.body.offsetWidth;
  var sizeElts = new Array("kop-zone","navigatie-zone","paginatitel-zone","inhoud-zone","voet-zone","talenversies-zone");

      if (w < minSize + margins) {
    adjustSizes(sizeElts,minSize+"px");
      } else if (w > maxSize + margins) {
    adjustSizes(sizeElts,maxSize+"px");
      } else if ((w > minSize + margins) && (w <= maxSize + margins)) {
    adjustSizes(sizeElts,"99%");
      }
}

function adjustSizes(elts,sizeValue) {
  for (var eltcount=0; eltcount<elts.length; eltcount++) {
    var eltnam = elts[eltcount];
    if (document.getElementById(eltnam)) {
      document.getElementById(eltnam).style.width = sizeValue;
    }
  }
}
//======================
//====================== Bereken schermgrootte
function winWidth() {
      var myWidth = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
            //Non-IE
            myWidth = window.innerWidth;
      } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
            //IE 6+ in 'standards compliant mode'
            myWidth = document.documentElement.clientWidth;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
            //IE 4 compatible
            myWidth = document.body.clientWidth;
      }
      return myWidth;
}
//======================
//======================
/*checkSize = function(n){
      var fSize = parseInt(document.body.currentStyle.fontSize.substr(0,2));
      if(!(fSize == n)){
            alert(fSize);
            MinimumSize();
      }
      setTimeout("checkSize("+fSize+")",10);
}*/
//======================
//====================== Stylesheet wordt geschreven als javascript aan staat:
// Bemating van pagina wordt aangepast zodat verspringing alleen optreed bij kleine vensters;
if(IE){
      //var fSize = 16;
      var minSize = 760;
      var maxSize = 960;
      var margins = 0;
      var w = winWidth();
      var nSize = 960;
      if (w < minSize + margins) {
            nSize = minSize + "px";
      } else if (w > maxSize + margins) {
            nSize = maxSize + "px";
      } else if ((w > minSize + margins) && (w <= maxSize + margins)) {
            nSize = "100%";
      }

      cssAddRule("#kop-zone", "width:"+nSize);
      cssAddRule("#navigatie-zone", "width:"+nSize);
      cssAddRule("#inhoud-zone", "width:"+nSize);
      cssAddRule("#voet-zone", "width:"+nSize);/**/
}
//======================

//-->