function showhide_news(bIsStartPage/*, strPagePath*/)
{
    try
    {
    top.HeaderFrame.document.getElementById('news').style.visibility = (bIsStartPage ? 'visible' : 'hidden');
    //top.HeaderFrame.document.getElementById('pagepath').innerHTML = strPagePath;
    //top.PoweredbyFrame.document.getElementById('poweredby').style.visibility = (bIsStartPage ? 'hidden' : 'visible');
}
catch(E)
{
    //window.setTimeout('showhide_news(' + bIsStartPage + ', "' + strPagePath + '");', 250);
    window.setTimeout('showhide_news(' + 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(displayMenu != 'feu')
    {
        if(strMenuName == 'Menü Feucom' || strMenuName == 'Menü 2 Feucom')
        {
            try
            {
                var strURL = top.contentFrame.bodyFrame.document.location.href;
                if(strURL.indexOf('?LANG=feu') > -1 || strURL.indexOf('&LANG=feu') > -1)
                {
                    window.open('http://www.jamal.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.jamal.at/index.htm?SHOW_URL=' + strHref, '_top');
                    return;
                }
            }
            catch(E)
            {
            }
        }
    }

    var iIndex=-1;
    if((strMenuName=='Menü Jamal' && displayMenu == 'ger') || (strMenuName=='Menü Feucom' && displayMenu == 'feu'))
    {
        iIndex=iMenuItemIndex;
    }

    if(iIndex > -1 || strMenuName == 'Menü 2 Jamal' || strMenuName == 'Menü 2 Feucom')
    {
        selectMenuItem(iIndex);
    }

    var bIsStartPage = (((strMenuName == 'Menü Jamal' && displayMenu == 'ger') || (strMenuName == 'Menü Feucom' && displayMenu == 'feu')) && iMenuItemIndex == 0);

    showhide_news(bIsStartPage);
}

