function highlight(imgArray, counter) 
{
	var images = imgArray.split(",");
	//document.getElementById("test").innerHTML = FadeingImg[counter];
	
	var teaserImg = document.getElementById(images[counter]);

	if (teaserImg.style.MozOpacity > 0)
	{
		teaserImg.style.MozOpacity = parseFloat(teaserImg.style.MozOpacity) - 0.05;
		setTimeout("highlight('" + imgArray + "','"+counter+"')", 100);
	}
	else if (teaserImg.filters && teaserImg.filters.alpha.opacity > 0)
	{
		teaserImg.filters.alpha.opacity -= 5;
		setTimeout("highlight('" + imgArray + "','"+counter+"')", 100);
	}
	else if(teaserImg.style.MozOpacity == 0 || teaserImg.filters.alpha.opacity == 0)
	{
		counter++;
		if(counter < images.length-1)
		{
			setTimeout("highlight('" + imgArray + "','"+counter+"')", 4000);
		}
		else 
		{
			setTimeout("rehighlight('" + imgArray + "','"+counter+"')", 4000);
		
		}
	}
}

function rehighlight(imgArray, counter) 
{

	var images = imgArray.split(",");
	var teaserImg = document.getElementById(images[eval(counter-1)]);
	//document.getElementById("test").innerHTML = images[0];
	if (teaserImg.style.MozOpacity < 1.0)
	{
		teaserImg.style.MozOpacity = parseFloat(teaserImg.style.MozOpacity) + 0.05;
		setTimeout("rehighlight('" + imgArray + "','"+counter+"')", 100);
	}
	else if (teaserImg.filters && teaserImg.filters.alpha.opacity < 100)
	{
		teaserImg.filters.alpha.opacity += 5;
		setTimeout("rehighlight('" + imgArray + "','"+counter+"')", 100);
	}
	else if(teaserImg.style.MozOpacity == 1.0 || teaserImg.filters.alpha.opacity == 100)
	{
		counter--;
		if(counter >= 1)
		{
			setTimeout("rehighlight('" + imgArray + "','"+counter+"')", 4000);
			
		}
		else 
		{
			setTimeout("highlight('" + imgArray + "','"+counter+"')", 4000);
		
		}
	}
}