



	function nextSpot()
	{
		$('#spotlight div:visible').fadeOut('slow', function()
		{
			if( $(this).next().attr('id') != null )
			{
				$(this).next().fadeIn();
			}
			else
			{
				$('#spotlight div:first').fadeIn();
			}
		});
	}
	
	
	function rememberLogin( u, p )
	{
		$.cookie('zworp', u + ':' + p , {expires: 7});
	}
	
	function forgetLogin()
	{
		$.cookie('zworp', null );
	}
		
		
	$(document).ready(function()
	{
		// voor de nieuwsitems
		$('div.nieuwsitem, div.agendaitem').hover(function()
		{
			$(this).addClass('hover');
			
		},function()
		{
			$(this).removeClass('hover');
		});
		
		$('.nieuwsitem').click(function()
		{
			window.location.href = $(this).find('.link a').attr('href') ;
		});
		
		$('.agendaitem').click(function()
		{
			window.location.href = $(this).find('p a').attr('href') ;
		});
		
		// rel external
		$('a[rel="external"]').click(function()
		{
			window.open( $(this).attr('href') );
			return false;
		});
		
	});
