window.addEvent('domready', function() {
var szNormal = 70, szFull   = 80;
var buttons = $$(".btn-header");
var fx = new Fx.Elements(buttons, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
	buttons.each(function(button, i) {
	button.addEvent("mouseenter", function(event) {
		var o = {};
		o[i] = {height: [button.getStyle("height").toInt(), szFull]}
		buttons.each(function(other, j) {
			if(i != j) {
				var h = other.getStyle("height").toInt();
				if(h != szNormal) o[j] = {height: [h, szNormal]};
			}
		});
		fx.start(o);
	});
	button.addEvent("mouseleave", function(event) {
		var o = {};
		o[i] = {height: [button.getStyle("height").toInt(), szNormal]}
		fx.start(o);
	});
	
});
	$('newsletterform').addEvent('submit', function(e) {
		if (jcap()==true){
		new Event(e).stop();
		var nl = $('newsletterform-container');
		url = "http://www.sport85.it/feelnatural/asset/newsletter.php";
		newsletterform = new Ajax(url, {
			method: 'POST',
			data: this,
			update: nl,
			onComplete: function(){
				var fx = new Fx.Style(nl, 'background-color', {
					duration: 800,
					transition: Fx.Transitions.Quad.easeOut
				}).start('#e2e2e2', '#fff');
				}}).request();
		}else{
			return false;
		}
	});
 
});








