add: if ( typeof localVariable != 'object' ) continue;  
context: function ezpopmenu_doItemSubstitution( menuID, menuHeader ){    // Do URL replace for all items in that menu    for ( var i in menuArray[menuID]['elements'] )    {        var hrefElement = document.getElementById( i );        if ( !hrefElement )        {            continue;        }        // href replacement        var replaceString = menuArray[menuID]['elements'][i]['url'];        if ( replaceString )        {            // loop though substitute values and substitute for each of them	       for ( var substItem in CurrentSubstituteValues )            {                if ( typeof CurrentSubstituteValues[substItem] != 'object' )                {                    replaceString = replaceString.replace( substItem, CurrentSubstituteValues[substItem] );                }            }	       hrefElement.setAttribute( "href", replaceString );        }        // dynamic generation        var loopingVariable = menuArray[menuID]['elements'][i]['variable'];        if ( loopingVariable )        {            var content = '';            for ( var localVariableIndex in CurrentSubstituteValues[loopingVariable] )            {                var localVariable = CurrentSubstituteValues[loopingVariable][localVariableIndex];                var partialContent = menuArray[menuID]['elements'][i]['content'];                for ( var substItem in CurrentSubstituteValues )                {                    if ( typeof CurrentSubstituteValues[substItem] != 'object' )                    {                        partialContent = partialContent.replace( substItem, CurrentSubstituteValues[substItem] );                    }                }                for ( var localItem in localVariable )                {                    partialContent = partialContent.replace( '%' + localItem + '%', localVariable[localItem] );                }                content += partialContent;            }            hrefElement.innerHTML = content;        }        // enabled/disabled        if( ( typeof( menuArray[menuID]['elements'][i]['disabled_class'] ) != 'undefined' &&              ( ( typeof( menuArray[menuID]['elements'][i]['disabled_for'] ) != 'undefined' &&                  menuArray[menuID]['elements'][i]['disabled_for'][CurrentDisableID] == 'yes' ) ) ||              ( CurrentDisableMenuID && hrefElement.id == CurrentDisableMenuID ) ) )        {            hrefElement.className = menuArray[menuID]['elements'][i]['disabled_class'];        }        else if ( typeof( menuArray[menuID]['elements'][i]['disabled_class'] ) != 'undefined' &&                  hrefElement.className == menuArray[menuID]['elements'][i]['disabled_class'] )        {            // Restore className            hrefElement.className = DefaultClassName;        }    }    // set header    if ( menuHeader && typeof( menuArray[menuID]['headerID'] ) != 'undefined' )    {        var header = document.getElementById( menuArray[menuID]['headerID'] );        if ( header ) header.innerHTML = menuHeader;    }}
meta: 2541	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2541/9bc9f4a6301d3776f2d674a8ee3e2d057aa5ede0/ezpopupmenu.js/clean/design/standard/javascript/popupmenu/ezpopupmenu.js