
var iCurIndex1 = -1;
var iCurIndex2 = -1;

function setMenu2(iIndex)
{
    try
    {
        top.untitled_4.Menu_OnPageLoadHandler(iCurIndex2);
    }
    catch(E)
    {
        window.setTimeout('setMenu2(' + iIndex + ');', 250);
    }
}

function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel)
{
    var iIndex1 = -1;
    var iIndex2 = -1;

    if(strMenuName == 'Menü Deutsch')
    {
        for(var i = 0; i < LCSiteMenus.length; i++)
        {
            if(LCSiteMenus[i][0] == 0 && LCSiteMenus[i][3] == strMenuName)
            {
                var bCountIndex2 = true;

                for(var j = i + 1 + iMenuItemIndex; j > i; j--)
                {
                    if(LCSiteMenus[j][0] == 1)
                    {
                        bCountIndex2 = false;
                        iIndex1++;
                    }
                    else if(bCountIndex2)
                    {
                        iIndex2++;
                    }
                }

                break;
            }
        }
    }

    iCurIndex2 = iIndex2;
        if(iIndex1 != iCurIndex1)
        {
            iCurIndex1 = iIndex1;
            top.bannerFrame.lcGraphTabHandleClick(iCurIndex1 + 1, false);
            window.open('http://www.ejets.at/bannerFrame_ger.htm', 'bannerFrame');
        }
        else
        {
            setMenu2(iCurIndex2);

        }

    if(strActionBannerNumber != strCurActionBanner)
    {
        strCurActionBanner = strActionBannerNumber;
    }

}


