
	$(document).ready(function(){
	
		$('.btn_reserveren').click(function()
		{
			$('#frm_reserveren').lightbox_me({
				centered: true,
				closeClick: false
			});
			return false;
		});
		
		
/*
		$('#frm_reserveren').hide().submit(function()
		{
			$(this).find('input[type=text][value=]').parent().find('label span.error').show();
			$(this).find('input[type=text][value!=]').parent().find('label span.error').hide();
			
			if ($(this).find('input[type=text][value=]').length)
			{
				return false;
			}
			else
			{
				var frmdata = $(this).serializeArray();
				
				$.ajax({
					url: '/ajax/reserveren.php',
					type: 'post',
					data: frmdata,
					success: function(response) {
					    
					    if (response == 'success') {
                            // please return true or false and build if else statement below
							$('#frm_reserveren').find('ol').hide();
							$('#frm_reserveren').find('.thankyou').show();
						}
						
					}					
				});

				return false;
			}
		});
*/
		
		$('#products .product .vsl ul li a').click(function()
		{
			$(this).closest('ul').find('li').removeClass('active');
			$(this).parent().addClass('active');
			$(this).closest('.vsl').find('.image').attr('src', $(this).attr('href'));
			return false;
		});
	});