function images()
{
/*			if ($('.imagePage').data('pause') == 1) {
		setTimeout(images, 1000);
		return;
	}*/
	var boxHeight = $('.imagePage').css('height');
	boxHeight = parseInt(boxHeight.substr(0,boxHeight.indexOf('px')));

	var imagesList = $('.images img');
	if(imagesList.length == 0)
		return;
	imgHeight = imagesList.length * boxHeight;
	var position = $('.images').css('marginTop');
	if (position == 'auto') {
		position = 0;
	} else {
		position = -parseInt(position.substr(0,position.indexOf('px')));
	}

	if((imagesList.length - 1) * boxHeight <= position) {
		next = 0;
	} else {
		next = boxHeight + position;
	}
	$('.images').fadeOut(700, function() {
		$('.images').css('marginTop', -next+'px');
		$('.images').fadeIn(700);
	});
	setTimeout(images, 4000);
}

