function openInNewWindow(theURL,winName,features)
{
	var featuresEx = features + ',height=' + screen.availHeight + ' , width=' +screen.availWidth;
	w = window.open(theURL,winName,featuresEx);
	w.focus();
}

var timer = 5000; <!--Millisekunden-->
var index = 0;
		
function ChangePicture(bilder, maxWidth)
{
	if (index == bilder.length - 1)
	{
		index = 0;
	}
	else
 	{
 		index++;
	}
	if (maxWidth == 0)
		document.all.Bild.innerHTML = '<img src="' + bilder[index] + '" border="1">';
	else
		document.all.Bild.innerHTML = '<img src="' + bilder[index] + '" border="1" width="' + maxWidth + '">';
	setTimeout("ChangePicture(bilder, maxWidth)", timer);
}
	
function ShowPicture(bilder, maxWidth)
{
	if (maxWidth == 0)
		document.all.Bild.innerHTML = '<img src="' + bilder[index] + '" border="1">';
	else
		document.all.Bild.innerHTML = '<img src="' + bilder[index] + '" border="1" width="' + maxWidth + '">';
	ChangePicture(bilder, maxWidth);
}
