function switch_info(){
    try{
        el = document.getElementById('premium_aantal_info');
        doswitch(el);
        
        if (el.style.display == 'none'){
            document.getElementById('premium_aantal_info_h').innerHTML = 'meer info...';  
        } else {
            document.getElementById('premium_aantal_info_h').innerHTML = '&nbsp;';
        }  
        
        
    } catch(e){
        debug(e);
    }
}

function switch_ambassadeur(){
    try{
        el = document.getElementById('ambassadeur_stem');
        doswitch(el);

        info_el = document.getElementById('ambassadeur_switch');
        if (el.style.display == 'block'){
            info_el.innerHTML = '';
        }

    } catch(e){
        debug(e);
    }



}


function doswitch(el){
    try{
        if (el.style.display == 'none'){
            el.style.display = 'block';
            // document.getElementById('premium_aantal_info_h').innerHTML = '&nbsp;';
        } else {
            el.style.display = 'none';
            // document.getElementById('premium_aantal_info_h').innerHTML = 'meer info...';
        }
    } catch(e){
        debug(e);
    }
}

function initDonatie(){
    if(0){
        // meer informatie over blusdeken donatie
        try{
            info_el = document.getElementById('premium_aantal_info');
            info_el.style.display = 'none';
            info_el.onclick = switch_info;
            
            infoh_el = document.getElementById('premium_aantal_info_h');
            infoh_el.innerHTML = 'meer info...';
            infoh_el.onclick = switch_info;
        } catch(e){
            debug(e);
        }
    } // end if 0

    // ambassadeur stem
    if(0){
        try{
            info_el = document.getElementById('ambassadeur_switch');
            info_el.onclick = switch_ambassadeur;
            info_el.style.textDecoration = 'underline';
            info_h_el =  document.getElementById('ambassadeur_stem');
            
            // toon stem als checked
            is_selected = false;
            inputs      = info_h_el.getElementsByTagName('input');
            for (i = 0; i < inputs.length ; i++){
                input_el = inputs[i];
                if (input_el.checked){
                    is_selected = true;
                }
            }
            if (is_selected == false){
                info_h_el.style.display = 'none';
            }else{
                info_el.innerHTML = '';
            }
        } catch(e){
            debug(e);
        }
    }
}

addLoadEvent(initDonatie);
