
$(document).ready(function(){
						   
	$('.fancybox').fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 
	
	$('a[@rel=external]').attr('target', '_blank');
	$('.blank').attr('target','_blank');
	
	
	/* PARTY SAMENSTELLEN */
	
	$('#thema').change(function(){
		var id = $(this).val();
		window.location="/party-samenstellen.php?subaction=showfull&id="+id+"#content";
	});


	 // bereken totale prijs van opties en product
	$('#boeken_form select.recalculate').change(function () {
		makeSum();
	});
	
	function makeSum()
	{
		var totaal = parseInt(0);
		
		$('#boeken_form select.fld option:selected').each(function () {
			var p= $(this).attr("title");
			totaal = parseInt(p)+parseInt(totaal);
			$(this).parents("td").next().text(p + ",-");
		});
		
		$("#totaal").text(totaal + ",-");
		$("input.totaal").val(totaal + ",-");		
	}
	
	makeSum();
	
});	
