window.addEvent('domready', function(){
	$$('ul#menu a').each(function(el) {
		Object.extend(el,{'elfx':null,'elpl':parseInt(el.getStyle('padding-left'))});
		el.elfx = el.effects({ duration: 400, wait: false });
		el.addEvent('mouseenter', function(){
			this.elfx.start({'padding-left': [10, 25], 'opacity': [0.6, 1]});
		});
		el.addEvent('mouseleave', function(){
			this.elfx.start({'padding-left': [25, 10], 'opacity': [1, 0.6]});
		});
	});
	yellowfx = $('yellowbar').effects({wait: false});
	$('yellowbar').addEvent('mouseenter', function() {
			yellowfx.options.duration=600;
			yellowfx.options.transition=Fx.Transitions.sineInOut;
			yellowfx.start({height: 380});
		});
	$('yellowbar').addEvent('mouseleave', function() {
			yellowfx.options.duration=1000;
			yellowfx.options.transition=Fx.Transitions.elasticOut;
			yellowfx.start({height: 480});
		});
	bluefx = $('bluebar').effects({wait: false});
	$('bluebar').addEvent('mouseenter', function() {
			bluefx.options.duration=600;
			bluefx.options.transition=Fx.Transitions.sineInOut;
			bluefx.start({height: 335});
		});
	$('bluebar').addEvent('mouseleave', function() {
			bluefx.options.duration=1000;
			bluefx.options.transition=Fx.Transitions.elasticOut;
			bluefx.start({height: 435});
		});
	redfx = $('redbar').effects({wait: false});
	$('redbar').addEvent('mouseenter', function() {
			redfx.options.duration=600;
			redfx.options.transition=Fx.Transitions.sineInOut;
			redfx.start({height: 400});
		});
	$('redbar').addEvent('mouseleave', function() {
			redfx.options.duration=1000;
			redfx.options.transition=Fx.Transitions.elasticOut;
			redfx.start({height: 500});
		});
});
