/*function showhide_start(bIsStartPage)
{
    try
    {
    top.HeaderFrame.document.body.style.backgroundImage = (bIsStartPage ? 'url(images/d_HeaderFrameStart.png)' : 'url(images/d_HeaderFrame.png)');
}
catch(E)
{
    window.setTimeout('showhide_start(' + bIsStartPage + ');', 250);
}

}*/

function selectMenuItem(iIndex)
{
    try
    {
        top.HeaderFrame.objMenu.selectItem(iIndex);

    }
    catch(E)
    {
        window.setTimeout('selectMenuItem(' + iIndex + ');', 250);
    }
}

function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel)
{
   /* var bShowPrintPage = true;

    for(var i = 0; i < LCSiteMenus.length; i++)
    {
        if(LCSiteMenus[i][0] == 0 && LCSiteMenus[i][3] == strMenuName)
        {
            if(LCSiteMenus[i + iMenuItemIndex + 1][4].indexOf('_mibol_PrintDoc:0_mibol2_') > -1)
            {
                bShowPrintPage = false;
            }

            break;
        }
    }

    top.HeaderFrame.document.getElementById('printPage').style.visibility = (bShowPrintPage ? 'visible' : 'hidden');
*/
/*          if(strMenuName == 'Menü JBS' || strMenuName == 'Menü 2 JBS')
        {
            try
            {
                var strURL = top.contentFrame.bodyFrame.document.location.href;
                if(strURL.indexOf('?LANG=ger') > -1 || strURL.indexOf('&LANG=feu') > -1)
                {
                    window.open('http://www.jbs-brandschutz.at/index.htm?SHOW_URL=' + strHref, '_top');
                    return;
                }
            }
            catch(E)
            {
            }
        }
    }

    if(displayMenu != 'ger')
    {
        if(strMenuName == 'Menü Jamal' || strMenuName == 'Menü 2 Jamal')
        {
            try
            {
                var strURL = top.contentFrame.bodyFrame.document.location.href;
                if(strURL.indexOf('?LANG=ger') > -1 || strURL.indexOf('&LANG=ger') > -1)
                {
                    window.open('http://www.jbs-brandschutz.at/index.htm?SHOW_URL=' + strHref, '_top');
                    return;
                }
            }
            catch(E)
            {
            }
        }
    }*/

    var iIndex=-1;
    if(strMenuName=='Menü JBS' && displayMenu == 'ger')
    {
        iIndex=iMenuItemIndex;
    }

    if(iIndex > -1 || strMenuName == 'Menü 2 JBS')
    {
        selectMenuItem(iIndex);
    }

        //var bIsStartPage = ((strMenuName == 'Menü JBS' && displayMenu == 'ger') && iMenuItemIndex == 0);

  //  showhide_start(bIsStartPage);

}
