/*
 * custom.js
 * requiert jQuery - http://jquery.com
 */

$(document).ready(function() {
	
	// Hauteur colonnes syndication
	var newsHeight = $('#news').height();
	var homeHeight = $('#homeSummary').height();
	if (homeHeight > newsHeight) {
		$('#news > div').height(homeHeight);
	}
	
	// Article : bloc image accroche
	var headerHeight = $('#docHeader').height();
	var imageHeight  = $('#docImage').height();
	var imagePadding = parseInt($('#docImage').css('padding-top'));
	if (headerHeight > imageHeight) {
		var pad = (headerHeight - imageHeight + imagePadding) / 2;
		$('#docImage').css({'padding-top': pad, 'padding-bottom': pad});
	}
	
});
