window.addEvent('domready', function() {	
	/* Calendrier */
	new vlaDatePicker('date_arrivee', { openWith: 'Arnaud', defaultView: 'month', style: 'apple_widget', offset: { y: 3, x: 1 }, separateInput: { day: 'day', month: 'month', year: 'year' }, prefillDate: false });			
	
	/* Coins arrondis */
	if($('top10')) {
		var cadre1Corners = new corners($('top10'), {'className':'cadre1'});
	}
	
	/* Suppression des boutons OK et initialisation du select */
	if($('bouton_RG')) {
		$('bouton_RG').tween('display', 'none');
		$$('#region option')[0].set('selected', 'selected');
	}
	if($('bouton_RC')) {
		$('bouton_RC').tween('display', 'none');
		$$('#camping option')[0].set('selected', 'selected');
	}
	if($('bouton_VV')) {
		$('bouton_VV').tween('display', 'none');
		$$('#select_vv option')[0].set('selected', 'selected');
	}
	
	/* Autovalidation des formulaires */
	$('region').addEvent('change', function() {
		$('rechercheG').submit();
	});
	$('camping').addEvent('change', function() {
		$('rechercheC').submit();
	});
	
	/* SqueezeBox */
	SqueezeBox.assign($$('a.boxed'), {
		parse: 'rel'
	});
	SqueezeBox.assign2($$('option.boxed'), {
		parse: 'rel'
	});
	SqueezeBox.assign($$('a[rel=boxed]'));
	
});	