window.addEvent('domready', function() {

var animacja_1 = new Fx.Morph('o_firmie', {
duration:550, 
transition: Fx.Transitions.Back.easeOut});

$('o_firmie').addEvents({
   mouseover: function(){
			animacja_1.start({
			'top':80,
			'height':200,
			'border-top':'5px solid #ffffff',
			'border-right':'5px solid #ffffff',
			'border-left':'5px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	},
	
	 mouseleave: function(){
      animacja_1.start({
			'top':100,
			'height':60,
			'border-top':'0px solid #ffffff',
			'border-right':'0px solid #ffffff',
			'border-left':'0px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	}
});

var animacja_2 = new Fx.Morph('oferta', {
duration:550, 
transition: Fx.Transitions.Back.easeOut});

$('oferta').addEvents({
   mouseenter: function(){
			animacja_2.start({
			'top':80,
			'height':200,
			'border-top':'5px solid #ffffff',
			'border-right':'5px solid #ffffff',
			'border-left':'5px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	},
	
	 mouseleave: function(){
      animacja_2.start({
			'top':100,
			'height':60,
			'border-top':'0px solid #ffffff',
			'border-right':'0px solid #ffffff',
			'border-left':'0px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	}
});

var animacja_3 = new Fx.Morph('cennik', {
duration:550, 
transition: Fx.Transitions.Back.easeOut});

$('cennik').addEvents({
   mouseenter: function(){
			animacja_3.start({
			'top':80,
			'height':200,
			'border-top':'5px solid #ffffff',
			'border-right':'5px solid #ffffff',
			'border-left':'5px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	},
	
	 mouseleave: function(){
     animacja_3.start({
			'top':100,
			'height':60,
			'border-top':'0px solid #ffffff',
			'border-right':'0px solid #ffffff',
			'border-left':'0px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	}
});

var animacja_4 = new Fx.Morph('galeria', {
duration:550, 
transition: Fx.Transitions.Back.easeOut});

$('galeria').addEvents({
   mouseenter: function(){
			animacja_4.start({
			'top':80,
			'height':200,
			'border-top':'5px solid #ffffff',
			'border-right':'5px solid #ffffff',
			'border-left':'5px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	},
	
	 mouseleave: function(){
      animacja_4.start({
			'top':100,
			'height':60,
			'border-top':'0px solid #ffffff',
			'border-right':'0px solid #ffffff',
			'border-left':'0px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	}
});

var animacja_5 = new Fx.Morph('kontakt', {
duration:550, 
transition: Fx.Transitions.Back.easeOut});

$('kontakt').addEvents({
   mouseenter: function(){
			animacja_5.start({
			'top':80,
			'height':200,
			'border-top':'5px solid #ffffff',
			'border-right':'5px solid #ffffff',
			'border-left':'5px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	},
	
	 mouseleave: function(){
     animacja_5.start({
			'top':100,
			'height':60,
			'border-top':'0px solid #ffffff',
			'border-right':'0px solid #ffffff',
			'border-left':'0px solid #ffffff',
			'border-bottom':'8px solid #ffffff'
		});
	}
});

});
