var strCurrentDefaultActionText = '';


function setActionText(strURL, iTry)
{
    if(typeof(iTry) == 'undefined')
    {
        iTry = 1;
    }

    try
    {
        if(strURL.length > 0)
        {
            window.open('http://www.e-benko.at/_lccms_/menuitemactions/actiontexts/' + strURL + '.htm', 'actionFrame');
        }
        else
        {
             window.open('http://www.e-benko.at/actionFrame.htm', 'actionFrame');

        }
    }
    catch(E)
    {
        if(iTry < 10)
        {
            window.setTimeout('setActionText("' + strURL + '", ' + (iTry + 1) + ')', 250);
        }
    }
}

function setActiveMenu(iIndex, iTry)
{
    if(typeof(iTry) == 'undefined')
    {
        iTry = 1;
    }

    try
    {
        top.subMenuFrame.Menu_OnPageLoadHandler(iIndex);
    }
    catch(E)
    {
        if(iTry < 10)
        {
            window.setTimeout('setActiveMenu(' + iIndex + ', ' + (iTry + 1) + ')', 250);
        }
    }
}


function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel)
{
    setActionText(strActionLongtextUrl);

 /*   var iMenu = -1;

    if(strMenuName == 'Menü Deutsch' && iMenuItemLevel > 1)
    {
        for(var i = 0; i < LCSiteMenus.length; i++)
        {
            if(LCSiteMenus[i][0] == 0 && LCSiteMenus[i][3] == strMenuName)
            {
                for(j = i + 1 + iMenuItemIndex; j > i; j--)
                {
                    if(LCSiteMenus[j][0] == 1)
                    {
                        break;
                    }

                    iMenu++;
                }


                break;
            }
        }
      }

      setActiveMenu(iMenu);*/
}

