var browsercheck = navigator.appVersion;

function fotoleiste_gotobild(fotoleiste_bild)
{
	if (fotoleiste_bild < fotoleiste_max-1)
	{
		fotoleiste_preload=fotoleiste_bild+1;
	}
	else
	{
		fotoleiste_preload=1;
	}
	
	if (document.getElementById)
	{
		if (browsercheck.indexOf("MSIE") != -1){document.getElementById('layout_bilder_src').filters.blendTrans.Apply();}
		document.getElementById('layout_bilder_src').src = bilder[fotoleiste_bild].src;
		if (browsercheck.indexOf("MSIE") != -1){document.getElementById('layout_bilder_src').filters.blendTrans.Play();}
	}
	else if (document.all && !document.getElementById)
	{
		if (browsercheck.indexOf("MSIE") != -1){document.images['layout_bilder_src'].filters.blendTrans.Apply();}
		document.images['layout_bilder_src'].src = bilder[fotoleiste_bild].src;
		if (browsercheck.indexOf("MSIE") != -1){document.images['layout_bilder_src'].filters.blendTrans.Play();}
	}
}

function fotoleiste_diashow()
{
	fotoleiste_current = fotoleiste_current + 1;
	if (fotoleiste_current >= fotoleiste_max)
	{
		fotoleiste_current = 1;
	}
	fotoleiste_gotobild(fotoleiste_current);
	window.setTimeout("fotoleiste_diashow()", 4000);
}

