jQuery(document).ready(function(){	
	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);  
});

$(function() {
	$('input.datepicker').datepicker({
		numberOfMonths: 3,
		showButtonPanel: true,
		dateFormat: 'dd-mm-yy',
		changeMonth: true, 
		changeYear: true,
		showOn: 'both',
		buttonImage: 'images/calendar.gif',
		buttonImageOnly: true
	});
});

jQuery(document).ready(function() {
  $('div.accordion:eq(0)> div').hide();
  $('div.accordion:eq(0)> div.zoekboxactive').show();
  $('div.accordion:eq(0)> h3').click(function() {
    $(this).next().slideToggle('fast');
	$(this).toggleClass('active');
  });
});

jQuery(document).ready(function() {
  $('div.accordionroom:eq(0)> div').hide();
  $('div.accordionroom:eq(0)> div.zoekboxactive').show();
  $('div.accordionroom:eq(0)> h3').click(function() {
    $(this).next().slideToggle('fast');
	$(this).toggleClass('active');
  });
});

$(function() {
	$("#land_show").autocomplete({
		source: "./selectland.php?soort="+soort+"&aanbieders="+aanbieders,
		minLength: 0,
		select: function(event, ui) {
			$('#land').val(ui.item.id);
			$('#land_show').val(ui.item.value);
		}
	});
	
	$("#aanbieder_show").autocomplete({
		source: "./selectaanbieders.php?soort="+soort+"&land="+land,
		minLength: 0,
		select: function(event, ui) {
			$('#aanbieder').val(ui.item.id);
			$('#aanbieder_show').val(ui.item.value);
		}
	});
			
});

function go(loc) {
window.location.href = loc;
}
