$(document).ready(
	function()
	{
		$('input.placeholder,select.placeholder,textarea.placeholder').each(
			function()
			{
				var label = $(this).prev('label');
				label.hide();

				$(this).attr('placeholder', label.text()).placeholderLabel();
			}
			);
	
		$('.jqzoom').each(
			function()
			{
				$(this).jqzoom(
					{
						zoomWidth: 400,
						zoomHeight: 300,
						title: false,
						lens: false
					}
					);
			}
			);

		var homeCollections = $('.home-collection');
		
		if(homeCollections.size() > 0)
		{
			var maxHeight = 0;
			
			homeCollections.each(
				function()
				{
					maxHeight = Math.max(maxHeight, $(this).height());
				}
				);
			
			homeCollections.css('height', maxHeight + 'px');
		}

		$('.product-line-item').each(
			function()
			{
				var maxHeight = 0;
				
				$('> div', this).each(
					function()
					{
						maxHeight = Math.max(maxHeight, $(this).height());
					}
					);
				
				$('.product-line-item-details, .product-line-item-basketarea', this).css('height', maxHeight + 'px');
			}
			);

		$('.alternative-products, .shop-page-split, .shop-customerdetail-frame').each(
			function()
			{
				var maxHeight = 0;
				
				$('> div', this).each(
					function()
					{
						maxHeight = Math.max(maxHeight, $(this).height());
					}
					);
				
				$('> div', this).css('height', maxHeight + 'px');
			}
			);
	}
	);
