window.addEvent('domready', function() {
	var list = $$('#navmenu a');
	list.each( function(element) {		
		var pulse = new Fx.Styles(element, {duration:500, wait:false});
		element.addEvent('mouseenter', function () {
			if (!this.getParent().hasClass('current')) {
				pulse.start({
				    'color': '#fff',
				    'background-color': '#555'
				});
			}
		});
		element.addEvent('mouseleave', function () {
			if (!this.getParent().hasClass('current')) {
				pulse.start({
				   'color': '#2a3a61',
				    'background-color': '#888'
				});
			}
		});
	});
});
