$(document).ready(function() {
	var showHeight = getHighestImgHeight() + 'px';
 	$('#slideshow').innerfade({
		speed: 'slow',
		timeout: 2500,
		type: 'random',
		containerheight: showHeight 
	});
});

function getHighestImgHeight()
{
	var height = 0;
	if (document.getElementById('slideshow'))
	{
		var aImages = document.getElementById('slideshow').getElementsByTagName('img');
	
		for (var i = 0; i < aImages.length; i++) 
		{
			if (aImages[i].getAttribute('hoogte') > height) 
			{
				height = aImages[i].getAttribute('hoogte');
			}
		}
	}
	return height;
}

