var zindex = 1000;
var diashow = 1;
var current = 1;
var browsercheck = navigator.appVersion;

function goto_bild (bild)
{
	diashow = 2;
	disp_bild(bild);
}

function disp_bild(bild)
{
	zindex += 1000;

	if (browsercheck.indexOf("MSIE") != -1){document.getElementById('inhalt_bilder_html').filters.blendTrans.Apply();}
	if (document.getElementById)
	{
		document.getElementById(bild).style.position = 'absolute';
		document.getElementById(bild).style.top = 0;
//		document.getElementById(bild).style.left = 0;
		document.getElementById(bild).style.zIndex = zindex;
	}
	else if (document.all && !document.getElementById)
	{
		document.images[bild].style.position = 'absolute';
		document.images[bild].style.top = 0;
//		document.images[bild].style.left = 0;
		document.images[bild].style.zIndex = zindex;
	}
	if (browsercheck.indexOf("MSIE") != -1){document.getElementById('inhalt_bilder_html').filters.blendTrans.Play();}
}

function diashow_go()
{
	if (diashow == 1)
	{
		if (current < bilder_count)
		{
			current += 1;
		}
		else
		{
			current = 1; 
		}
		
		disp_bild('bild'+current);
		window.setTimeout("diashow_go()", 4000);
	}
}

