hangeHandler()
{
    var strImgUrl = lc_strImgUrl;

    try
    {
        if(top.actionimageFrame){top.actionimageFrame.document.getElementById('actionimage').src=strImgUrl; } else { top.contentFrame.actionimageFrame.document.getElementById('actionimage').src=strImgUrl; }
    }
    catch(ex)
    {
        window.setTimeout('onLcContentPageLoaded_realImageChangeHandler()', 100);
        return;
    }
}

function onLcContentPageLoaded_imageChangeHandler(strImgUrl)
{
    lc_strImgUrl = strImgUrl;
    onLcContentPageLoaded_realImageChangeHandler();
}

var lc_strBannerID = '';
var strCurrentBannerID = '';

function onLcContentPageLoaded_realBannerChangeHandler()
{
    try
    {
        if(strCurrentBannerID != lc_strBannerID)
        {
            if(lc_strBannerID.length > 0)
            {
                window.open('http://www.gasthof-grabenbauer.at/_lccms_/banners/' + lc_strBannerID + '/bannerinclude.htm', 'actionbannerFrame1');
            }
            else
            {
                window.open('http://www.gasthof-grabenbauer.at/actionbannerFrame1.htm', 'actionbannerFrame1');
            }


            strCurrentBannerID = lc_strBannerID;
        }
    }
    catch(ex)
    {
        window.setTimeout('onLcContentPageLoaded_realBannerChangeHandler()', 100);
    }
}

function onLcContentPageLoaded_bannerChangeHandler(strBannerID)
{
    lc_strBannerID = strBannerID;
    onLcContentPageLoaded_realBannerChangeHandler();
}

function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel,strAltText)
{

    var bIsStartPage = (strMenuName == 'Menü Deutsch' && iMenuItemIndex == 0);
    if(bIsStartPage != bCurrentIsStartPage)
    {
        if(bIsStartPage)
        {
            top.contentFrame.document.getElementById('startbanner').style.visibility = 'visible';
            top.contentFrame.document.getElementById('actionimageFrame').style.visibility = 'hidden';
            top.contentFrame.document.getElementById('actionbannerFrame').style.visibility = 'hidden';
            window.open('http://www.gasthof-grabenbauer.at/startbannerFrame.htm', 'startbannerFrame');
        }
        else
        {
            top.contentFrame.document.getElementById('actionimageFrame').style.visibility = 'visible';
            top.contentFrame.document.getElementById('actionbannerFrame').style.visibility = 'visible';
            top.contentFrame.document.getElementById('startbanner').style.visibility = 'hidden';
        }

        bCurrentIsStartPage = bIsStartPage;
    }

    lc_iMenuItemIndex=iMenuItemIndex;
    lc_strMenuName=strMenuName;

    if (strMenuName != 'Menü Deutsch')
    {
	lc_iMenuItemIndex = -1;
    }


    setMenu(lc_iMenuItemIndex);


}

function setMenu(iIndex, iTry)
{
    if(typeof(iTry) == 'undefined')
    {
        iTry = 1;
    }

    try
    {
        top.contentFrame.menuFrame.objMenu.selectItem(iIndex);
    }
    catch(E)
    {
        if(iTry < 10)
        {
            window.setTimeout('setMenu(' + iIndex + ', ' + (iTry + 1) + ');', 250);
        }
    }
}

