var equalHeightColumns = function(columns) {
  var maxHeight = 0;
	columns.each(function() {
		maxHeight = ($(this).height() > maxHeight) ? $(this).height() : maxHeight;
	});
	columns.height(maxHeight);
};

var blockLinks = function(modules) {
  modules.each(function() {
		var link = $('<div>').append($(this).find('a:first').clone()).find('a');
		link.html('')
	
		$(this).find('a').each(function() {
			$(this).replaceWith($(this).html());
		});
		
		var content = $('<div>').append($(this).children().clone()).remove();
		link.addClass($(this).attr('class')).append(content.children());
		//link.attr('data-type', $(this).attr('data-type'));
		
		//$(this).html('').append(link.append(content));
		$(this).replaceWith(link);
	});
};

jQuery(function($) {  
  var modules = $('ul.educations').find('.module.education');
  blockLinks(modules);
});
