startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("navigation-menu");
        for (i=0; i<navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI") {
                node.onmouseover=function() {
                    this.className+=" over";
                }
                node.onmouseout=function() {
                    this.className=this.className.replace(" over", "");
                }
            }
        }
    }
}


function hide(id, d) {
    var el = getByID(id, d);
    if (!el) return;
    el.style.display = 'none';
}

function getByID(n, d) {
    if (!d) d = document;
    if (d.getElementById)
        return d.getElementById(n);
    else if (d.all)
        return d.all[n];
}

//window.onload=startList;

function show(id, d, style) {
    var el = getByID(id, d);
    if (!el) return;
    el.style.display = style ? style : 'block';
    /* hack */
    if ( DOM.hasClassName( el, "autolayout-height-parent" ) )
        DOM.setHeight( el, finiteInt( el.parentNode.clientHeight ) );
}

function hide(id, d) {
    var el = getByID(id, d);
    if (!el) return;
    el.style.display = 'none';
}

function changeClass(id, theClass) {
	var element = document.getElementById(id);
	element.className = theClass;
}

//funciones utiles
function pause(millisecondi){
    var now = new Date();
    var exitTime = now.getTime() + millisecondi;
    while(true){
        now = new Date();
        if(now.getTime()>exitTime) return;
    }
}
