function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            oldonload();
            func();
        }
    }
}

function hideIt() {
    if (!document.getElementById) return false;
    if (!document.getElementById("mask")) return false;
    var mask = document.getElementById("mask");
    if (mask.style.visibility != 'hidden') {
        mask.style.visibility = 'hidden';
    }
}

function showIt() {
    if (!document.getElementById) return false;
    if (!document.getElementById("mask")) return false;
    var mask = document.getElementById("mask");
    if (mask.style.visibility != 'visible') {
        mask.style.visibility = 'visible';
    }
    /*
    enoughalready = setTimeout("hideIt()", 10000);
    */
}

addLoadEvent(showIt);
