var slideSpeed = 250;


	$(document).ready(function(){
		initFaqModule();
		initColor();
	});
	
	function initFaqModule(){
		$(".faqQuestion").click(function(e){
			e.preventDefault();
			$(this).siblings(".faqAnswer").slideToggle(slideSpeed);
			$(this).parent().siblings().children(".faqAnswer").slideUp(slideSpeed);
		});
	}
	
	function initColor(){
		switch (cat)
		{
			case "oOpleiden":		switchColor("green"); break;
			case "oBelonen":		switchColor("red"); break;
		}
	}
	
	function switchColor(color)
	{
		$("#wrapper").removeClass("grey");
		$("#wrapper").addClass(color);
		
		$(".nav").addClass(color);
		
		$("."+color+"-block").find("slide").css({
			'display' : 'block !important'
		});
	}
