 for ( var substItem in CurrentSubstituteValues ) { if ( typeof CurrentSubstituteValues[substItem] != 'object' ) { replaceString = replaceString.replace( substItem, CurrentSubstituteValues[substItem] ); } }  hrefElement.setAttribute( "href", replaceString ); 
replaceString = ezpopup_substituteString( replaceString, CurrentSubstituteValues ); hrefElement.setAttribute( "href", replaceString ); 
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];                if ( typeof localVariable != 'object' )                    continue;                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;    }}
10272	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10272/22200071b8aa1f4f6c939c71e989403c246d25b7/ezpopupmenu.js/clean/design/standard/javascript/popupmenu/ezpopupmenu.js