/* Cufon */
Cufon.replace(['h1','h2','h3','h4','h5','h6','blockquote','#nav li a','#footer #sitemap div ul li a.title','th','.twitter'],
{
    hover: true
});

/* jQuery functions */
$(function()
{
	var informationHeight = $(".uitgelicht").height();
	var imageHeight = $(".uitgelicht-image img").height();
	if ( imageHeight >= informationHeight )
	{
		// afbeelding is groter dan de content, afbeelding naar ratio verkleinen en de div breedtes aanpassen
		$(".uitgelicht-image").height(informationHeight);
		$(".uitgelicht-image img").attr('height', informationHeight - 40);
		$(".uitgelicht-image img").css('paddingTop', '20px');
		var imageWidth = $(".uitgelicht-image img").width();
		$(".uitgelicht-image").width( imageWidth + 20 );
		$(".uitgelicht .inner").width( 880 - ( imageWidth + 20 ) );
	}
	else
	{
		// afbeelding is kleiner dan de content, afbeelding in het midden plaatsen
		$(".uitgelicht-image img").css( 'marginTop', ( informationHeight - imageHeight ) / 2 + 'px' );
	}
	var footer = $("#footer").height();
	$("#footer").css('margin', '-' + footer + 'px auto 0px');
	$("#main").css('paddingBottom', footer + 'px');
	$('table tbody tr:even').css('backgroundColor' , '#F9F9F9'); 
});
