$(function() {
	$('.bottom-wpzone').each(function() {
		var me = $(this);
		
		if (me.find('.ms-SPZone').length == 0) {
			var cells = me.find('table:first tr:first > td:nth-child(odd)');
			cells.css('width',Math.ceil(100 / cells.length) + '%');
			
			cells.eq(0).addClass('box-first');
			
			if (cells.length > 1) {
				cells.eq(cells.length-1).addClass('box-last');
			}
			
			me.find('table:first tr:first > td:nth-child(even)').addClass('box-separator');
			me.find('.ms-spzonecaption').parents('td:first').css('display','none');
		}
		
		if (me.find('table.ms-SPZone').length > 0) {
			me.css('overflow','scroll');
		}
	});
});

