<!--
var ver = 0;

function doInit() {
    var ua = window.navigator.userAgent;
    var msie = ua.indexOf ( "MSIE " )
    if ( msie > 0 )        // si el navegador es IE le pido la version
        ver = parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) );
    
}

function collapseChildren(parentDiv) {
    var i;
    var div = document.all.tags("SPAN");

    for (i=0; i<div.length; i++) {
        if (div(i).sourceIndex < parentDiv.sourceIndex)
            continue;
        if (parentDiv.contains(div(i)) != true)
            return;
        if (div(i).className == "Outline")
            div(i).style.display = "none";
    }
}

function ExpandCollapse()
{
    if (ver < 4) return;
    var targetElement, parentDiv;
    i = window.event.srcElement.sourceIndex;
    // está el link embutido en un DIV?
    for (parentDiv = window.event.srcElement.parentElement; parentDiv!=null; parentDiv = parentDiv.parentElement) {
        if (parentDiv.tagName=="SPAN") {
            j=1;
            break;
        }
        if (parentDiv.tagName=="BODY") {
           for (j=1; (i+j) < document.all.length && document.all(i+j).tagName=="BR"; j++);
            j+=2;
            break;
        }
    }
    if (parentDiv==null) {
       for (j=1; (i+j) < document.all.length && document.all(i+j).tagName=="BR"; j++);
        j+=2;
        parentDiv = document.body;
    }

    //me voy a asegurar que el elemento no está "off page" (lo que hago es testear el ultimo link)
    if ( ((i+j)<document.all.length)  && (document.all(i+j).tagName == "SPAN")) {

        if ( parentDiv.contains(document.all(i+j))==true 
            &&  (document.all(i+j).className == "Outline") ) {
            targetElement = document.all(i+j);
            if (targetElement.style.display == "none")
                targetElement.style.display = "";
            else {
                targetElement.style.display = "none";
                collapseChildren(targetElement);
            }
        } 
    }

    window.event.cancelBubble = true;
}
//-->