window.addEvent('domready', function() 
{
	
		for(var i=1; i <= 4; i++)
		{
			var el = $('lnk'+i);	
			AddEvent2Item(el, i);
		}
	
	
});

var stoptweens = false;
function AddEvent2Item(myitem, i)
{
		var topx = '30px';
		if(i==1)
			topx = '32px';
		
		if(myitem.getStyle('padding-top') == "0px")
		{		
			myitem.addEvents({
				'mouseenter': function(){
					
					mytween(this, topx);
								
				},
				'mouseleave': function(){
					
					mytween(this, '0px');
										
				},
				'click': function(){					
					mytween(this, topx);
					stoptweens = true;
				}
			});
		}
}

function mytween(el1, to)
{
		if(!stoptweens)
		{
			el1.set('tween', {
							duration: 1000,
							transition: Fx.Transitions.Quint.easeOut
			}).tween('padding-top', to);
		}
}

