function setBehavior( )
{
	/*
	$('.block').each( function(index, Element){		
		Element.mouseenter( function() {
			$(this).children('.text').animate( {
				top: 0
			}, 50);
		});
		Element.mouseleave( function() {
			$(this).children('.text').animate( {
				top: 300
			}, 50);
		});
	});
	*/
	$('.block').mouseenter( function() {
		$(this).children('.text').animate( {
			top: 0
		}, 100);
	});
	$('.block').mouseleave( function() {
		$(this).children('.text').animate( {
			top: 300
		}, 300);
	});
	
}

$(document).ready(function()
{
	setBehavior( );
});