// when the DOM is ready...
$(document).ready(function () {
	
	/*
	* Default easing method
	* options are: linear, easeOutBounce, easeInOutQuart, easeInOutCirc 
	*/
	var method = "easeInOutQuart";
	
	// current position of the winkelwagen , used for scroll function
	var pos = $("#winkelmandje").position();
	
	// Function to select the easing method
//	$("#easing_select").change(function(){
//		var selected_easing = $('select#easing_select option:selected').val();  
//	
//		switch(selected_easing){
//			case "Linear":
//				method = "linear";
//				break;
//			case "Bounce":
//				method = "easeOutBounce";
//				break;
//			case "Quart":
//				method = "easeInOutQuart";
//				break;
//			case "Circ":
//				method = "easeInOutCirc";
//				break;
//		}	
//	});
	
	// function that enables the slideup and down on click
	$(".more_link").click(function(){
		var display = $(this).parent().parent().parent().find(".faq_answer_more").css("display");
		
		if(display == "none"){			
			$(this).parent().parent().parent().find(".faq_answer_more").slideDown(300,method);
		}else{
			$(this).parent().parent().parent().find(".faq_answer_more").slideUp(300,method);			
		}	
	});	
	
	// scroll function for winkelwagen
//	$(window).scroll(function()
//	{
//  		if($(window).scrollTop() > pos.top){
//	  		$('#winkelmandje').css({'position': 'fixed', 'top': '10px'});
//	  	}else{
//	  		$('#winkelmandje').css({'position': 'relative', 'top': '0'});
//	  	}
//  	});
});
