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';
	}

}
