var prvObj;
var tmPopup;
var prvLnk;

function ToonDiv(obj, lnk) {

    //show or hide content
    if ((prvObj == obj) && (document.getElementById(prvObj).style.display == "block")) {
         document.getElementById(prvObj).style.display = "none";
         prvLnk.innerHTML = "meer info"
    } else {
        try {
            document.getElementById(prvObj).style.display = "none";
            prvLnk.innerHTML = "meer info"
            clearTimeout(tmPopup);
        } catch(ex) {}
        document.getElementById(obj).style.display = "block";
        lnk.innerHTML = "Sluiten"
        prvObj = obj;
        prvLnk = lnk;
    }
    
    return false;
}
function VerbergDiv() {
    tmPopup = setTimeout(HidePopup, 500);
}
function HidePopup() {
    document.getElementById(prvObj).style.display = "none";
    clearTimeout(tmPopup);
    return false;
}
function HidePopup2() {
    document.getElementById(prvObj).style.display = "none";
    prvLnk.innerHTML = "meer info"
    clearTimeout(tmPopup);
    return false;
}
function KeepPopup() {
    clearTimeout(tmPopup);
}


function ToonDiv2(obj) {
    //show or hide content
    if ((prvObj == obj) && (document.getElementById(prvObj).style.display == "block")) {
         document.getElementById(prvObj).style.display = "none";
    } else {
        try {
            document.getElementById(prvObj).style.display = "none";
            clearTimeout(tmPopup);
        } catch(ex) {}
        document.getElementById(obj).style.display = "block";
        prvObj = obj;
    }
    
    return false;
}