
window.onerror = handleError;

function handleError() {
    return true;
}

function push() {
    var sub = this.length;
    for (var i = 0; i < push.arguments.length; ++i) {
        this[sub] = push.arguments[i];
        sub++;
    }
}

function pop() {
    var lastElement = this[this.length - 1];
    this.length--;
    return lastElement;
}

if (Array.prototype && !Array.prototype.push) {
    Array.prototype.push = push;
    Array.prototype.pop = pop;
}

var stack = new Array();
var timer = 0;

function over(id, level) {
    window.clearTimeout(timer);
    while (stack.length > level) {
        stack.pop().style.visibility = 'hidden';
    }
    if (id != '-') {
        var x = document.getElementById(id);
        x.style.visibility = 'visible';
        stack.push(x);
    }
}

function out() {
    if (window.opera) {
        timer = window.setTimeout("over('-', 0)", 10000);
    } else {
        timer = window.setTimeout("over('-', 0)", 1000);
    }
}