$(function () {
	var blockContainers = $('div.blocks > div');

	blockContainers.css({'background-color:' : 'red'});
	
	if(blockContainers.length >0 && (blockContainers[0].id == 'tip01')) {
		blockContainers.hide().filter(':first').show();
	}
	else {
		blockContainers.hide();
	}
	
	$('div.blocks ul.items a').click(function () {
		blockContainers.hide();
		blockContainers.filter(this.hash).show();
		return false;
	}).filter(':first').click();

	// FAQ does not show an answer onLoad but waits for user interaction.
	$('div.blocks ul.qa a').click(function () {
		blockContainers.hide();
		blockContainers.filter(this.hash).show();
		return false;
	});

	// Make the clicked element bold
	$('div.blocks ul li a').click(function () {
		$('div.blocks ul li').removeClass();
		$(this.parentNode).addClass('selected');
	});
});
