var UitjesPicture = new Array ();
var UitjesPictureIndex = 0;
var UitjesPictureInterval;

function UitjesRegisterPicture (url)
{
	if (url.length > 0)
	{
		var index = UitjesPicture.length;
		UitjesPicture[index] = new Image ();
		UitjesPicture[index].src = url;
	}
}

function UitjesInitPicture ()
{
	Event.observe (window, "load", function () {
		UitjesPictureInterval = setInterval ("UitjesShowPicture ()", 5000);
	});
}

function UitjesShowPicture ()
{
	var Object = document.getElementById ("UitjesPictureObject");
	if (typeof (Object) == "object")
	{
		if (UitjesShowPicture.arguments.length > 0)
		{
			UitjesPictureIndex = UitjesShowPicture.arguments[0] - 1;
			clearInterval (UitjesPictureInterval);
		}
		else
		{
			UitjesPictureIndex = UitjesPictureIndex + 1;
			if (UitjesPictureIndex > (UitjesPicture.length - 1))
			{
				UitjesPictureIndex = 0;
			}
		}
		if (document.all)
		{
			Object.style.filter = "blendTrans(duration=2)";
			Object.filters.blendTrans.Apply ();
		}
		Object.src = UitjesPicture[UitjesPictureIndex].src;
		if (document.all)
		{
			Object.filters.blendTrans.Play ();
		}
	}
}

function UitjesPrint (url)
{
	var width = 600;
	var height = 800;

	var top = (screen.height - height) / 2;
	var left = (screen.width - width) / 2;

	var windowObject = window.open (url, "print", "scrollbars=yes," + "top=" + top + ",left=" + left + ",width=" + width + ",height=" + height);
}