var query = new Object();
	window.location.search.replace(
	new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ),
		function( $0, $1, $2, $3 ){
			query[ $1 ] = $3;
		}
	);
	easing = query['e'] || 'Circ';
	
	function loadEasing(e) {
		location.href = location.pathname+'?e='+e;
	}
	
	function setEasing(e) {
		loadLamps(e);
	}

// for dynamic easing changes		
	function loadLamps(easing) {
		$('#lavaLampBasicImage').lavaLamp({
			fx: 'easeIn'+easing,
			speed: 800
		});

		$('#lavaLampVariableImage').lavaLamp({
			fx: 'easeOut'+easing,
			speed: 800,
			linum: 1
		});

		$('#lavaLampFun').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1400
		});

		$('#lavaLampBorderOnly').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1400
		});

		$('#lavaLampVertical').lavaLamp({
			fx: 'easeOut'+easing,
			speed: 1000,
			click: function() {return false;}
		});
	}
	
// jquery initialize:
	$(function() {
			   
		loadLamps(easing);
		
		$('select#easing option[value='+easing+']').attr('selected','selected');
		$('.easingLabel').text(easing);
	});
	function verif_vide(){
		if ($('#hebergement').val() == ''){
			$('#message_search').html("S&eacute;lectionnez un mot");
			}else{
				$(".recherche_form").submit();
				}
		}

