﻿// JScript File

            var state = 'none'; 
            var aantalblocks = 7;   /*let op: ook stylesheet aanpassen*/
            var layer;
 
            function showhide(showlayer)
            { 
                for (var x = 1; x <= aantalblocks; x++)
                //eerst alle blocks invisible maken
                {
                    layer = "deel" + x;
                    if (layer == showlayer) {
                        state = 'block';
                    }
                    else {
                        state = 'none';
                    }
                    //alert(layer_ref);
                    if (document.all) { //IS IE 4 or 5 (or 6 beta) 
                        eval( "document.all." + layer + ".style.display = state"); 
                    } 
                    if (document.layers) { //IS NETSCAPE 4 or below 
                        document.layers[layer].display = state; 
                    } 
                    if (document.getElementById &&!document.all) { 
                        hza = document.getElementById(layer); 
                        hza.style.display = state; 
                    }
                }    
            } 

