function setNewsBg(iTry)
{
	if(typeof(iTry) == 'undefined')
	{
		iTry = 1;
	}
	
	try
	{
		top.contentFrame.newsFrame.News.document.body.style.backgroundImage= 'url("../../images/d_newsFrame.gif")';
	}
	catch(E)
	{
		if(iTry < 10)
		{
			window.setTimeout('setNewsBg(' + (iTry + 1) + ');', 250);
		}
	}
}


function setMenu(iIndex, iTry)
{
	if(typeof(iTry) == 'undefined')
	{
		iTry = 1;
	}
	
	try
	{
		top.menuFrame.objMenu.selectItem(iIndex);
	}
	catch(E)
	{
		if(iTry < 10)
		{
			window.setTimeout('setMenu(' + iIndex + ', ' + (iTry + 1) + ');', 250);
		}
	}
}

var bCurNewsBg = false;

function onLcContentPageLoaded_completeHandler(strActionImageUrl, strActionBannerNumber, strActionHeadlineText, strActionLongtextUrl, iMenuItemIndex, strMenuName, iMenuItemLevel)
{
		setNewsBg();
		if(strMenuName == 'Menü Deutsch')
		{
			setMenu(iMenuItemIndex);
		}
		else
		{
			setMenu(-1);
		}

		setNewsBg();

}
