function randomQuote() {
	quotes = new Array(6);
	quotes[0] = "Te vinden <br>\n zoals een woord voor een gedicht <br>\n je invalt zonder dat je hebt gezocht. <br>\n";
	quotes[1] = "Melancholie is niets dan bij <br>\n laag tij droogvallend verdriet. <br>\n";
	quotes[2] = "Dichten is niet jezelf uiten, <br>\n maar handje contantje <br>\n de wereld innen. <br>\n";
	quotes[3] = "Verstand hebben van <br>\n lijkt de zekerste weg naar <br>\n omlaag, van geen antwoord <br>\n terug naar geen vraag. <br>\n";
	quotes[4] = "Thuiskomen houdt ons steeds <br>\n gaande, maar thuis zijn <br>\n dat houdt ons af. <br>\n";
	quotes[5] = "Wat we al wisten bleek waar <br>\n het was er altijd geweest <br>\n maar steevast niet daar. <br>\n";
	i = Math.floor(Math.random()*quotes.length);
	$('#quote').html(quotes[i]);
}

function colorPreview() {
	color = $('#cms_settings_select').val();
	$('#color_preview').css('background-color', color)
	$('#color_preview').html(color);
}

function updatePrivileges(i) {
	if(i == 0) {
		$('#privileges_0').attr('checked', true);
	}
	if(i == 2) {
		$('#privileges_2').attr('checked', true);
	}
}

function updatePageTitle() {
	kop = $('#paginakop').val();
	$('#paginatitel').val(kop);
}

/*$(document).ready(function() {
	var whitespace = 0;
	var ch = 0;
	var h = $('#content').height();
	$('#content').find('*').each(function() {
		whitespace += $(this).outerHeight(true);
		ch += $(this).height(true);
		whitespace -= $(this).height();
	});
	alert(ch);
	pageHeight = $('#content').outerHeight(true);
	$('#holes').height(pageHeight);
	$('#content').height(ch);
});*/

$(document).ready(function() {
	$('#holes').css('height', function() {
		desiredHeight = $('#page').css('height');
		return desiredHeight; });
});
