$(document).ready(function() {
	
	setLinkBoxHeights();
	
});

function setLinkBoxHeights() {
	var maxHeight = 0;
	$("#home_linkboxes > div").each( function() {
	
		var height = $(this).height();
		if( height > maxHeight ) {

			maxHeight = height;
		
		}
	
	});
	
	$("#home_linkboxes > div").css("height",maxHeight );
}


function linkboxHeights() {
	
	if( $("#header-inner").width() < 480 ) {
		//if mobile:
		
		$("#home_linkboxes > div").each( function() {
			$(this).removeAttr("style");
		});

	}
	else {
		setLinkBoxHeights();
	}
	
}
