                                             //====================== Browser checksvar IE = (document.all && document.getElementById) ? true:false;var Opera = window.opera ? true : false;//====================== //====================== Initialiseer de volgende functiesfunction init(){   if(IE){       MinimumSize();       //checkSize(12);   }}//====================== //====================== Aanroep functies bij Onload-eventwindow.onload = function() {   init();   tekstGrootteAan();   tekstGrootte();    printKnop();   initExternalLinks();   if (document.getElementById("selectHabtype") != null) {        checkSelectedHabtype();   }   gload();      //voegt mouseover/mouseouts toe aan buttons   knopMuisOver();      //call of surf_and_edit function   if (document.getElementById("surf_n_edit") != null){             surf_and_edit("a");   }   if (document.getElementById("zoekresultaat") != null){    location.href= location.href + "#zoekresultaat";   }             //zorg ervoor dat 'naar boven links' alleen getoond worden als er een verticale scrollbar is   // hideTopLinks();   }//====================== //====================== Aanroep functies bij Onresize-eventwindow.onresize = function() {   if(IE){       MinimumSize();    }	}//====================== //====================== Zet print-knop display en functionaliteitfunction printKnop() {   // bestaat de print-knop?   var pk = document.getElementById('print-knop');   if (!pk) {      return false;   }   else {      // laat ons de print-knop zien!      pk.style.display = 'block';      plink = pk.getElementsByTagName("A")[0];      // print deze pagina      this.plink.onclick = function () {         window.print();           return false;      }   }}//====================== //====================== Zet tekstgrootte visibilityfunction tekstGrootteAan() {   // bestaat het tekstgrootte element?   var tg = document.getElementById('tekstgr');   if (!tg) {      return false;   }   else {      // laat ons de print-knop zien!      tg.style.visibility = 'visible';   }}function initExternalLinks() {    for (i = 0; i < document.links.length; i++) {        if ( (document.links[i].id == 'external') ||              (document.links[i].className == 'extern') ||             (document.links[i].className == 'download') ) {            document.links[i].target = "_blank";        }    }}//====================== Zet mouseover/mouseout functionaliteit op knoppen (buttons)function knopMuisOver(){   var alleInputTags=document.getElementsByTagName('input');    for(var i=0;i<alleInputTags.length;i++)     {      if(alleInputTags[i].className.indexOf('zoek') != -1 || alleInputTags[i].className.indexOf('toon') != -1 || alleInputTags[i].className.indexOf('knop') != -1)      {         //mouseover toevoegen         alleInputTags[i].onmouseover = function () { veranderKlasse(this,  this.className + " muisOver"); };         //mouseout toevoegen (verwijder " muisOver")         alleInputTags[i].onmouseout = function () { veranderKlasse(this,  this.className.substring(0, this.className.length - 9)); };      }     } } //====================== Hulpfunctie voor knopMuisOver() function veranderKlasse(item, klasse) {    item.className = klasse;   return false; }//====================== <!--//====================== variabels bepalen - max, min en gemiddelde (100%) tekstgroottevar mingrootte = 1;var midgrootte = 3;var maxgrootte = 5; //====================== zoeken binnen document naar tekstgrootte controls function tekstGrootte()	{   //alert('standaard.js:in tekstgrootte');   this.tekstControls = new Array();   // bestaat tekstgrootte op deze pagina?   var tc = document.getElementById('tekstgr');   if (!tc) {      return false;   }   else {      this.plus = document.getElementById('tekstplu');      this.tekstControls[this.tekstControls.length] = new controlObjs(this,plus);      this.minus = document.getElementById('tekstmin');      this.tekstControls[this.tekstControls.length] = new controlObjs(this,minus);      // lees cookie en set tekstgrootte      if(!(getCookieVal('MinLNVFontSize') == '')){         fontWissel(getCookieVal('MinLNVFontSize'));         maat = getCookieVal('MinLNVFontSize');         this.grootte = maat.charAt(4);                   // CUSTOMIZATION CUMQUAT   		 if (maat.indexOf('maat') < 0) {   		 //alert('tried to read cookie , is not a number though');   			this.grootte = midgrootte;   		 }    		 //CUSTOMIZATION CUMQUAT	                           //check voor max of min tekstgrootte         checkOnactief(this.plus,this.minus,this.grootte);      }      // als er geen cookie is, set tekstgrootte naar gemiddeld (3)      else {         this.grootte = midgrootte;      }      this.ss = 'maat' + this.grootte;   }}//====================== object collectie en klik-functiecontrolObjs = function(tekstGrootte,control) {   this.tekstGrootte = tekstGrootte;   this.control = control;   this.richting = this.control.id;   this.richting.controlObjs = this;   this.control.controlObjs = this;   this.control.onclick = function () {      this.controlObjs.tekstControl();        return false;    }}//====================== deze functie checkt dat de tekstgrootte is niet minder dan 1 en niet groter dan 5controlObjs.prototype.checkControl = function () {   //alert(this.tekstGrootte.grootte);   if ((this.control.id == 'tekstmin') && (this.tekstGrootte.grootte < mingrootte)) {      this.tekstGrootte.grootte ++;      return false;   }   else if ((this.control.id == 'tekstplu') &&(this.tekstGrootte.grootte > maxgrootte)) {      this.tekstGrootte.grootte --;      return false;   }   else {      return true;   }}//====================== links wordt onactief als de grootste of de kleinste tekstgrootte is al in gebruikcheckOnactief = function (plus,minus,grootte) {   this.plus = plus;   this.minus = minus;   this.grootte = grootte;   // reset styles   this.plus.className = '';   this.minus.className = '';   if (this.grootte == mingrootte) {      this.minus.className = 'onactief';   }   else if (this.grootte == maxgrootte) {      this.plus.className = 'onactief';   }   return false;}//====================== fontWissel roepen als de font niet al te groot of te klein iscontrolObjs.prototype.tekstControl = function () {   if (this.richting == 'tekstplu') {      this.tekstGrootte.grootte ++;   }   else {      this.tekstGrootte.grootte --;   }   if (this.checkControl()) {      checkOnactief(this.tekstGrootte.plus,this.tekstGrootte.minus,this.tekstGrootte.grootte);      this.tekstGrootte.ss = 'maat' + this.tekstGrootte.grootte;      fontWissel(this.tekstGrootte.ss);		   }}//====================== zoeken naar stylesheet link elementen met een 'title' attribute //====================== wissel van stylesheet function fontWissel(titel) {   var i, a, main;   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {      if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {         a.disabled = true;         if(a.getAttribute("title") == titel) a.disabled = false;      }   }   setCookie("MinLNVFontSize", titel);   if(document.getElementById('t1')){ adjustFontImages(titel) };}// -- COOKIE FUNCTIONS:function getCookie (name) {     var arg = name + "=";     var alen = arg.length;     var clen = document.cookie.length;     var i = 0;     while (i < clen) {      var j = i + alen;          if (document.cookie.substring(i, j) == arg)            return getCookieVal (j);      i = document.cookie.indexOf(" ", i) + 1;          if (i == 0) break;      }     return null;}function setCookie (name, value) {     var argv = setCookie.arguments;     var argc = setCookie.arguments.length;     var expires = (argc > 2) ? argv[2] : null;     var path = (argc > 3) ? argv[3] : null;     var domain = (argc > 4) ? argv[4] : null;     var secure = (argc > 5) ? argv[5] : false;     document.cookie = name + "=" + escape (value) +    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +    ((path == null) ? "" : ("; path=" + path)) +     ((domain == null) ? "" : ("; domain=" + domain)) +       ((secure == true) ? "; secure" : "");}function getCookieVal(offset) {   var endstr = document.cookie.indexOf (";", offset);   if (endstr == -1)   endstr = document.cookie.length;   return unescape(document.cookie.substring(offset.length+1, endstr));}if(!(getCookieVal('MinLNVFontSize') == '')){   fontWissel(getCookieVal('MinLNVFontSize'));}//--><!--//====================== 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 = 0;   var w = document.body.offsetWidth;   if (w < minSize + margins) {      document.getElementById('kop-zone').style.width = minSize + "px";      document.getElementById('navigatie-zone').style.width = minSize + "px";      document.getElementById('inhoud-zone').style.width = minSize + "px";      document.getElementById('voet-zone').style.width = minSize + "px";   } else if (w > maxSize + margins) {      document.getElementById('kop-zone').style.width = maxSize + "px";      document.getElementById('navigatie-zone').style.width = maxSize + "px";      document.getElementById('inhoud-zone').style.width = maxSize + "px";      document.getElementById('voet-zone').style.width = maxSize + "px";   } else if ((w > minSize + margins) && (w <= maxSize + margins)) {      document.getElementById('kop-zone').style.width = "99%";      document.getElementById('navigatie-zone').style.width = "99%";      document.getElementById('inhoud-zone').style.width = "99%";      document.getElementById('voet-zone').style.width = "100%";   }}//====================== //====================== 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;document.write('<style type="text/css" media="screen">');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%";   }      document.write('#kop-zone { width:' + nSize + '; }');   document.write('#navigatie-zone { width:' + nSize + '; }');   document.write('#inhoud-zone { width:' + nSize + '; }');   document.write('#voet-zone { width:' + nSize + '; }');}document.write('</style>');//====================== //-->
