rem:  gItemClickAction  = itemClickAction; 
context: function ezcst_initializeMenuState( additionalNodesList, menuNodeID, itemClickAction, autoopenCurrentNode ){    var menu          = ezjslib_getHTMLNodeById( menuNodeID );    var currentNodeID = additionalNodesList.pop();           // remove current node;    gItemClickAction  = itemClickAction;    if ( menu != null )    {        // restore unfolded nodes ids from cookies        ezcst_cookie_restoreUnfoldedNodesList();        // add path to current node to unfolded nodes list        ezcst_cookie_addNodesList( additionalNodesList );        var rootNode = ezjslib_getHTMLChildNodeByTag( menu, "li" );        if ( rootNode != null )        {            // remember id of Root Node.            gRootNodeID = rootNode.getAttribute( "id" );            // Fold all 'container' nodes.            ezcst_foldUnfoldSubtree( rootNode, false, true, false, false, false );            // Remove [-]/[+] text of root node.            var root_link_node = ezjslib_getHTMLChildNodeByTag( rootNode, "a" );            ezjslib_removeHTMLChildTextNode( root_link_node );            if ( ezcst_getUnfoldedNodesListSize() > 0 )            {                // unfolde nodes which are stored in gUnfoldedNodesList                ezcst_restoreMenuState( rootNode );            }            else            {                // reset to default view                // probably we never get into this "else".                ezcst_resetMenuState  ( rootNode );            }            // Highlight current node            var currentNode = ezjslib_getHTMLNodeById( currentNodeID );            ezjslib_setHTMLNodeClassStyle( currentNode, EZCST_HIGHLIGHTED_NODE_CLASS_NAME );            if( autoopenCurrentNode == "enabled" )            {                // unfold current node.                ezcst_foldUnfold( currentNode, true, false, false, true );            }        }        // show menu        menu.style.display="";    }}
meta: 6483	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6483/7d0736c981018a162f7e049ca2ecabafdb547b05/contentstructuremenu.js/buggy/design/standard/javascript/contentstructuremenu/contentstructuremenu.js