$(document).ready(function()
{
	// --- right menu click toggle
	/*
	$('.r_btn').toggle(function()
	{
		var ID = $(this).attr('id').substr(6);
		
		$(this).css(
		{
			'background': 'url("'+ROOT_PATH+'image/btn/btn_'+ID+'_out.jpg") no-repeat'
		}).animate({'height' : '96px'}, 200).attr('rel', 'ready').find('p').show();
		
	}, function()
	{
		var ID = $(this).attr('id').substr(6);
		
		$(this).css(
		{
			'background': 'url("'+ROOT_PATH+'image/btn/btn_'+ID+'_off.jpg") no-repeat'
		}).animate({'height' : '0px'}, 200).attr('rel', '').find('p').hide();
	});
	*/
	
	$('ul#rightnav3 li a').toggle(function()
	{
		$('ul#rightnav3 li').each(function()
		{
			var lid = $(this).attr('id').substr(3);
			
			$(this).animate({'height': '56px'}, 200);
			$(this).find('div').fadeOut(100);
			$(this).find('a').css('background', 'url("'+ROOT_PATH+'image/btn/btn_'+lid+'_off.jpg")');
		});
		
		var id = $(this).attr('id').substr(4);
		
		$('#btn_'+id).css('background', 'none');
		
		$('#li_'+id).animate({'height': '151px'}, 200);
		
		$('#div_'+id).fadeIn(100);
	},function()
	{
		var id = $(this).attr('id').substr(4);
		
		$('#li_'+id).animate({'height': '56px'}, 100);
		$('#btn_'+id).css('background', 'url("'+ROOT_PATH+'image/btn/btn_'+id+'_off.jpg")');
		
		$('#div_'+id).fadeOut(100);
	});
	
	$('ul#rightnav3 li div span').click(function(){ window.location = ROOT_PATH+'mogelijkheden/'; });
	
	
});