
$(document).ready(function()
{

	$('a._blank').click(function()
	{
		window.open(this.href);
		return false;
	});
	/* 
		css append nie werken in IE, daarom maar met JS.
	*/
	
	if($.browser.msie && jQuery.browser.version.substr(0,1) <= "7")
	{
		$('#navigation ul li a:not(:last)').append(" .");		
		
		$('#specialmenu ul li a:not(:last)').append(" .");
		
		$('#submenu ul li a').prepend(". ");
		
		$('#page h2').append(" / ");
		
	}




	/* 
		Cycle... rouleren van banners
	*/
	var cycle_options_setA = {

		fx: 'fade',
		timeout: 4000,
		speed: 800
	};
	
	$("#a4metvaart-visual .setA").cycle(cycle_options_setA);
	
	var cycle_options_setB = {

		fx: 'fade',
		timeout: 5000,
		speed: 800
	};
	
	$("#a4metvaart-visual .setB").cycle(cycle_options_setB);
	
	var cycle_options_setC = {

		fx: 'fade',
		timeout: 3000,
		speed: 800
	};
	
	$("#a4metvaart-visual .setC").cycle(cycle_options_setC);

	
	/* 
		slide down, answer by FAQ page and technische begrippen.
	*/
	
	
	$(".faq .list h4").click(
		
		function ()
		{	
		
			if($(this).parent().hasClass("selected"))//&& $(this).hasClass("selected")
			{
				
				$(this).parent().removeClass("selected").children("p").hide();
			
				wc('item closed');
				
			}
			else
			{
			
				$(this).parent().addClass("selected").children("p").show();
				
				wc('item open');
				
			}
		}
	
	);
	
	
});

