function productHeaderResize() {

/*
	var divs = document.getElementsByTagName('div');
	var headers = new Array();
	var dheaders= new Array();
	var pheaders= new Array();
	var x;
	var y = 0;

	for ( x = 0; x < divs.length; x++ ) {
		if ( divs[x].className == 'deal_blue' || divs[x].className == 'deal_yellow' ) {
			dheaders[dheaders.length] = divs[x];
		}
		else if( divs[x].className=='header_main'){
			headers[y] = divs[x];
			y++;
		}
	}
	
	pheaders=(document.all)?dheaders:headers;

	// Row 1
	var maxHeight = 0;
	var paddingTop = 0;
	var paddingBottom = 0;
	var minHeight = 50;
	for ( x = 0; x < 4 && x < headers.length; x++ ) {	

		if ( $(headers[x]).height() > maxHeight ) {
			maxHeight = $(headers[x]).height();
			
		}
	}
	if(maxHeight<30)maxHeight=30;
	paddingTop = Math.round((minHeight - maxHeight) / 2,0);
	paddingBottom = Math.round((minHeight - maxHeight) / 2,0);
	
	if ( paddingTop < 0 ) {
		paddingTop = 0;
	}
	if ( paddingBottom < 0 ) {
		paddingBottom = 0;
	}
	for ( x = 0; x < 4 && x < pheaders.length; x++ ) {
		pheaders[x].style.height = maxHeight + 'px';
		pheaders[x].style.paddingTop = paddingTop + 'px';
		pheaders[x].style.paddingBottom = paddingBottom + 'px';
	}

	// Row 2
	var maxHeight = 0;
	for ( x = 4; x < 8 && x < headers.length; x++ ) {
		if ( $(headers[x]).height() > maxHeight ) {
			maxHeight = $(headers[x]).height();
		}
	}
	
	paddingTop = Math.round((minHeight - maxHeight) / 2,0);
	paddingBottom = Math.round((minHeight - maxHeight) / 2,0);
	if ( paddingTop < 0 ) {
		paddingTop = 0;
	}
	if ( paddingBottom < 0 ) {
		paddingBottom = 0;
	}
	for ( x = 4; x < 8 && x < pheaders.length; x++ ) {
		pheaders[x].style.height = maxHeight + 'px';
		pheaders[x].style.paddingTop = paddingTop + 'px';
		pheaders[x].style.paddingBottom = paddingBottom + 'px';
	}

	// Row 3
	var maxHeight = 0;
	for ( x = 8; x < 12 && x < headers.length; x++ ) {
		if ( $(headers[x]).height() > maxHeight ) {
			maxHeight = $(headers[x]).height();
		}
	}
	
	if(maxHeight<30)maxHeight=30;
	paddingTop = Math.round((minHeight - maxHeight) / 2,0);
	paddingBottom = Math.round((minHeight - maxHeight) / 2,0);
	if ( paddingTop < 0 ) {
		paddingTop = 0;
	}
	if ( paddingBottom < 0 ) {
		paddingBottom = 0;
	}
	for ( x = 8; x < 12 && x < pheaders.length; x++ ) {
		pheaders[x].style.height = maxHeight + 'px';
		pheaders[x].style.paddingTop = paddingTop + 'px';
		pheaders[x].style.paddingBottom = paddingBottom + 'px';
	}
	*/
	var height = 0;

	$.each($('.tile_centre_wrap'), function() {
		
		if ($(this).height()>height) {
			height = $(this).height();
		};
		
	
		
	});
	
	$('.tile_centre_wrap').height(height);

	//classes
	$.each($('.tile_deal'), function() {
	//	$(this).css("background-color","red");
		
		var tag = this.getElementsByTagName("p");
		
		
		
		var h = $(tag[0]).height();
		
		$(tag[0]).css("padding-top", (($(this).height()-h)/2)-1 );
		$(tag[0]).css("padding-bottom", ($(this).height()-h)/2 );
		
	});
	
		//classes
	$.each($('.tile_product'), function() {
	//	$(this).css("background-color","red");
		
		var tag = this.getElementsByTagName("p");
		
		
		
		var h = $(tag[0]).height();
		
		$(tag[0]).css("padding-top", ($(this).height()-h)/2 );
		$(tag[0]).css("padding-bottom", ($(this).height()-h)/2 );
		
	});

}
