$(document).ready(function() {


	var contentHeight = $('#wrapper').height();
	var wrapperHeight = $('#wrapper .content-inner').height();

	if (contentHeight < wrapperHeight) {
					
		$('#content').height(wrapperHeight+66);
		$('#wrapper').height(wrapperHeight+173);
	
	};
	
	if (contentHeight > wrapperHeight) {
		
		$('#wrapper .content-inner').height(contentHeight-174);
		
	}
	
	
	
	
	
	$('#header ul.vlaggen li a').hover(function(){
		$(this).stop().fadeTo(400,1);
	},function(){
		$(this).stop().fadeTo(400,0.6);
	});
	
	
	if (window.PIE) {
	$('.rounded').each(function() {
		PIE.attach(this);
	});
}
});

$(window).resize(function() {
	var contentHeight = $('#wrapper').height();
	var wrapperHeight = $('#wrapper .content-inner').height();
	if (contentHeight < wrapperHeight) {
		
		
	$('#content').height(wrapperHeight+66);
	$('#wrapper').height(wrapperHeight+173);
	
	};
	
	if (contentHeight > wrapperHeight) {
		
		$('#wrapper .content-inner').height(contentHeight-174);
		
	}
	
});

