$(document).ready(function(){
		
	$('#menu ul li').hover(function () {
				
		
		if($(this).find('.submenu'))
		{
			$(this).find('.submenu').show();

			$(this).attr('oldclass',$(this).attr('class')).attr('class','active');
		}
		
	},function () {
		
		if($(this).find('.submenu'))
		{
			$(this).find('.submenu').hide();
		
			$(this).attr('class',$(this).attr('oldclass'));
		}
	});
	
	$('#emailSignup').click(function () {
		jPrompt('E-mail adres:', '', 'Inschrijven nieuwsbrief', function(r) {
			
			if(r) 
			{
				jAlert('Bedankt voor de aanmelding, je ontvangt een e-mail met daarin de activatie link.', 'Bedankt');
				
				$.post("/", { email: r,newsletter: 'signup' } );
			}
			
		});
		
		return false;
	});
	
	
	//$("div.photos div.photo a").fancybox();
	
	$(".moviebox").fancybox({
		'frameWidth'	: 960,
		'frameHeight'	: 540
		
	});
	
	$("div.photos div.photo a").colorbox({slideshow:true});
	
	
	$().bind('cbox_complete', function(){ 
	    //if($("#cboxTitle").html() == ""){ 
	        $("#cboxTitle").hide(); 
	   // }
	});
	

	
});
