		function MoveGallery(direction)
		{
			var time = 150;
			for (i = 50; i < time + 50; i++)
			{
				setTimeout ("mg_left(" + direction + ");", i * i / 40)
			}
		}
		function mg_left(direction)
		{
			var new_position = document.getElementById('gallery').offsetTop + 1 * direction;
			if (new_position <= 0 && new_position >= 426 - document.getElementById('gallery').clientHeight)
			{
				
				document.getElementById('gallery').style.top = new_position + 'px';
			}
		}

