$(document).ready(function() {


	$("div.hmid").children().each(function(){
	
		hthis = $(this).height();
		hparent = $(this).parent().height();
		if(hthis < hparent){
		padtop = (hparent - hthis)/2;
		hparent = hparent - padtop;}		
		$(this).parent().css("padding-top", padtop);
		$(this).parent().css("height", hparent);
		
	});
	
	
	
	
} );