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

function loadEasing(e) {
	location.href = location.pathname+'?e='+e;
}

function setEasing(e) {
	loadLamps(e);
}

// for dynamic easing changes		
	function loadLamps(easing) {
		$('#menuHome').lavaLamp({
			fx: 'easeInOut'+easing,
			speed: 1000,
			returnHome: true,
			homeLeft: -100,
			homeTop: -25,
			homeWidth:700,
			homeHeight:10
		});

	}

// jquery initialize:
	$(function() {
		$('#menu').lavaLamp({fx: 'swing', speed: 333});
		loadLamps(easing);
		
		$('select#easing option[value='+easing+']').attr('selected','selected');
		$('.easingLabel').text(easing);
	});
//console.log();