//------------- Abrir janela pop up ------
// janela('teste.html','janela','width="400", height="500"');
//-------------------------------------------
function janela(URL,nome,opcao) { 
  window.open(URL,nome,opcao);
}


function fancat_click( e ) {
    if( e.target ) {
        src = e.target;
    }
    else {
        src = window.event.srcElement;
    }

    srcList = src.parentNode;
    childList = null;

    for( i = 0; i < srcList.childNodes.length; i++ ) {
        if( srcList.childNodes[i].nodeName.toLowerCase() == 'ul' ) {
            childList = srcList.childNodes[i];
        }
    }

    if( childList != null ) {
        if( src.getAttribute( "rel" ) == "hide" ) {
            childList.style.display = "none";
            src.setAttribute("rel","show");
            src.src = fancat_img_url + "expand.gif"
        }
        else {
            childList.style.display = "";
            src.setAttribute("rel","hide");
            src.src = fancat_img_url + "collapse.gif"
        }
    }

    if( e.preventDefault ) {
        e.preventDefault();
    }

    return false;
}
