var lc_strImgUrl = '';

function onLcContentPageLoaded_realImageChangeHandler()
{
    var strImgUrl = lc_strImgUrl;

    try
    {
        if(top.contentFrame){top.contentFrame.document.getElementById('actionimage').src=strImgUrl; } else { top.contentFrame.contentFrame.document.getElementById('actionimage').src=strImgUrl; }
    }
    catch(ex)
    {
        window.setTimeout('onLcContentPageLoaded_realImageChangeHandler()', 100);
        return;
    }
}

function onLcContentPageLoaded_imageChangeHandler(strImgUrl)
{
    lc_strImgUrl = strImgUrl;
    onLcContentPageLoaded_realImageChangeHandler();
}

function setMenu(iIndex, iTry)
{
	if(typeof(iTry) == 'undefined')
	{
		iTry = 1;
	}
	
	try
	{
		top.menu.objMenu.selectItem(iIndex);
	}
	catch(E)
	{
		if(iTry < 10)
		{
			window.setTimeout('setMenu(' + iIndex + ', ' + (iTry + 1) + ');', 250);
		}
	}
}



function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel)
{
	var iIndex = -1;
	if(strMenuName == 'MenDeutsch' || strMenuName == 'MenEnglisch')
	{
		iIndex = iMenuItemIndex;
	}
	setMenu(iIndex);
	
}
