(function($) {
	function equalHeights() {
		if ($('.latest-publications').length > 0) {
			$('.publications .publication').css('height', null);
			$('.latest-publications .publication').each(function(index) {
				var rightElement = $('.greatest-publications .publication').get(index);
				if (rightElement) {
					$(this).height(Math.max($(this).height(), $(rightElement).height()));
					$(rightElement).height(Math.max($(this).height(), $(rightElement).height()));
				}
			});
		}
	}
	function trackDownloads() {
		$('.download a').attr('onclick', 'pageTracker._trackPageview("'+ $('.download a').attr('href') +'");');
	}
	$(document).ready(function() {
		$('a.FontSizeInc').bind('click', function() {
			equalHeights();
		});
		$('a.FontSizeDec').bind('click', function() {
			equalHeights();
		});
		equalHeights();
		trackDownloads();
	});
})(jQuery);
