﻿
function setVisibility(id, visibility) {
    var id1 = 'prod' + id;
    
    if (document.getElementById(id1) != null) {
        document.getElementById(id1).style.display = '';

        sIFR.replace(myriadpro, {
            selector: 'h1',
            css: '.sIFR-root {background-color: transparent; color: #000000; }',
            wmode: 'transparent'
        });

        sIFR.replace(myriadpro, {
            selector: 'h2',
            css: '.sIFR-root {background-color: transparent; color: #000000; }',
            wmode: 'transparent'
        });
    }
    if (document.getElementById('intro') != null) {
        document.getElementById('intro').style.display = 'none';
    }
    
}

function resetVisibility() {
    var producten = 6;

    for (var i = 0; i <= producten; i++) {
        var id1 = 'prod' + i;

        if (document.getElementById(id1) != null) {
            document.getElementById(id1).style.display = 'none';
        }

    }
    if (document.getElementById('intro') != null) {
        document.getElementById('intro').style.display = '';
    }
}